-->
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: EJB Spec & Hibernate / Annotation Behavior
PostPosted: Fri Nov 18, 2005 1:10 am 
Regular
Regular

Joined: Thu Feb 17, 2005 1:58 am
Posts: 63
EJB Spec
2.1.4 The application must not change the value of the primary key. The behavior is undefined if this
occurs.[5]


So, if the entity uses the following @Id(generate=GeneratorType.NONE), I guess the above req does not apply?

What's the behavior of Hibernate Annotation?


EJB Spec 9.1.8 Id Annotation

public enum GeneratorType { TABLE, SEQUENCE, IDENTITY, AUTO, NONE };

Specifying NONE indicates that no primary
key generation by the persistence provider should occur, and that the application will be responsible
for assigning the primary key.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 18, 2005 6:22 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
change != assign


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.