Within an entity, I cannot create two @ManyToOne relationships to two
separate entities of the same class. In my code I have an entity with
'person' and 'otherPerson' fields annotated like this example:
@Entity
public class Contact {
private Person person;
private Person otherPerson;
...snip...
@ManyToOne
public Person getPerson() {
return person;
}
...snip...
@ManyToOne
public Person getOtherPerson() {
return otherPerson;
}
...snip...
}
When persisting I can only see 'person_id' attributes in the SimpleDB
domain for the entity. I would instead expect to see a 'person_id' and
'other_person_id' attribute for each entity in SimpleDB.
I am using SimpleJPA 0.7-alpha.
Original issue reported on code.google.com by diggory....@googlemail.com on 28 Feb 2009 at 7:42
Original issue reported on code.google.com by
diggory....@googlemail.com
on 28 Feb 2009 at 7:42