Set cascade to ALL for Rider and Preferences
This commit is contained in:
parent
321630053d
commit
3c389721bd
@ -26,8 +26,7 @@ public class Rider extends PlatformUser implements IRider {
|
||||
@Column(name = M_RIDER_BANK_CODE)
|
||||
private String bankCode;
|
||||
|
||||
@OneToOne(targetEntity = Preferences.class, optional = false)
|
||||
@Cascade(org.hibernate.annotations.CascadeType.ALL)
|
||||
@OneToOne(targetEntity = Preferences.class, optional = false, cascade = CascadeType.ALL)
|
||||
@JoinColumn(name = I_PREFERENCES, unique = true)
|
||||
private IPreferences preferences;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user