Persistence with Relationship Classes -
06-03-2006
, 10:56 AM
I'm trying persist objects that yours class have relationship, when I
do the comand put an Exception is returned to me:
java.lang.IllegalArgumentException: References to entities are not
allowed: vo.Friend
I had two classes, People and Friend, the relationship is: One People
has one Friend.
How can I do to persist this objects with relationship?
Re: Persistence with Relationship Classes -
06-05-2006
, 08:27 AM
Hi Haas,
Haas wrote:
Quote:
How can I do to persist this objects with relationship?
Relationships are represented as keys, not as object references. In
other words, one entity contains the key of another entity, not the
instance of another entity.