Make Rider <-> Preferences unidirectional
This commit is contained in:
parent
c2988d5a8e
commit
87ffe9dc51
@ -15,13 +15,9 @@ public class Preferences implements IPreferences {
|
|||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@ElementCollection(fetch = FetchType.LAZY)
|
@ElementCollection(fetch = FetchType.LAZY)
|
||||||
@OrderColumn
|
|
||||||
@JoinTable(name = J_PREFERENCES_DATA)
|
@JoinTable(name = J_PREFERENCES_DATA)
|
||||||
private Map<String, String> data = new HashMap<>();
|
private Map<String, String> data = new HashMap<>();
|
||||||
|
|
||||||
@OneToOne(targetEntity = Rider.class, fetch = FetchType.LAZY)
|
|
||||||
private IRider rider;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user