-
Enhancement
-
Resolution: Done
-
Major
-
None
-
None
-
None
The PersistencePlugin currently generates OneToOne relationships like this:
@OneToOne
private Profile profile;
public Profile getProfile()
{ return this.profile; }public void setProfile(final Profile profile)
{ this.profile = profile; }...and...
@OneToOne
private Customer customer;
public Customer getCustomer()
{ return this.customer; }public void setCustomer(final Customer customer) { this.customer = customer; }
Ideally one side of the relationship should be marked as the 'inverse':
@OneToOne(mappedBy="profile")
private Customer customer;
public Customer getCustomer() { return this.customer; }
public void setCustomer(final Customer customer)
{ this.customer = customer; }