-->
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.  [ 1 post ] 
Author Message
 Post subject: Generated ID not being populated
PostPosted: Tue Oct 24, 2006 3:00 am 
Newbie

Joined: Tue Oct 24, 2006 2:52 am
Posts: 1
Location: UK
I have a class A that I can create and save no problem this class has an ID generated from a sequence.

@SequenceGenerator(name="ContactAddressSeq", sequenceName="CONTACT_ADDRESS_SEQUENCE")

I now wish to use this object again. So Class B has a @EmbeddedId that is made up of its parent id and the generated id of the Class A.

I get a nul pointer inserting Class B because the id has not yet been generated.

Any idea's ?


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

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.