niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Berkeley DB
Persistence with Relationship Classes
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
mark@sleepycat.com
*nix forums beginner


Joined: 22 Aug 2005
Posts: 18

PostPosted: Mon Jun 05, 2006 1:27 pm    Post subject: Re: Persistence with Relationship Classes Reply with quote

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

PostPosted: Sat Jun 03, 2006 3:56 pm    Post subject: Persistence with Relationship Classes Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 4:55 am | All times are GMT
navigation Forum index » Databases » Berkeley DB
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Creating a relationship between 2 tables Andyza Oracle 2 Thu Jul 20, 2006 1:11 pm
No new posts Warning when new attributes are added to classes at run time Matthew Wilson python 7 Wed Jul 19, 2006 8:42 pm
No new posts Partial classes Sanjay python 26 Wed Jul 19, 2006 6:10 am
No new posts Which Advanced classes to take for oracle 10g OCM exam? gnu Server 0 Mon Jul 17, 2006 11:56 am
No new posts assignment operator for classes with const data scroopy C++ 19 Mon Jul 17, 2006 8:48 am

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
[ Time: 0.1300s ][ Queries: 20 (0.0574s) ][ GZIP on - Debug on ]