|
|
|
|
|
|
| Author |
Message |
mark@sleepycat.com *nix forums beginner
Joined: 22 Aug 2005
Posts: 18
|
Posted: Mon Jun 05, 2006 1:27 pm Post subject:
Re: Persistence with Relationship Classes
|
|
|
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.
Please see the example here:
http://www.sleepycat.com/jedocs/java/com/sleepycat/persist/package-summary.html#example
Mark |
|
| Back to top |
|
 |
Haas *nix forums beginner
Joined: 09 Apr 2005
Posts: 5
|
Posted: Sat Jun 03, 2006 3:56 pm Post subject:
Persistence with Relationship Classes
|
|
|
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? |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Fri Jan 09, 2009 4:55 am | All times are GMT
|
|
Home Improvement | Industrial Directory | Mortgage Calculator | Free Advertising | McDonalds
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|