-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: hibernate docs confusion.
PostPosted: Wed Mar 24, 2004 11:47 am 
Newbie

Joined: Thu Aug 28, 2003 7:14 am
Posts: 18
In the Hibernate2.0 docs you find :

in one palce
4.1.3. Provide an identifier property (optional)
The identifier property is optional. You can leave it off and let Hibernate keep track of object identifiers internally.

and another
1.3. Mapping the cat
Every persistent class has to have an identifer attribute...

I am confused, is there a contradiction concerning identifier or am I missing somthing?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 24, 2004 11:50 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
There is, I'm currently cleaning the documentation. The property is optional, but recommended if you want to use detached objects (objects that have been loaded in one Session and reattached to a second Session with optimistic concurrency).

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.