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