-->
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: Help In Composite Key Problems
PostPosted: Sat Jun 26, 2004 1:52 am 
Newbie

Joined: Sat Jun 26, 2004 1:24 am
Posts: 5
net.sf.hibernate.QueryException: in expected:

I am getting the above exception when i am accessing the data when composite keys are there. Anyone can u give give an idea how to fetch data when composite keys are there


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 26, 2004 10:08 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Have a read of the manual:
http://www.hibernate.org/hib_docs/reference/en/html/mapping.html#mapping-declaration-compositeid

and

http://www.hibernate.org/hib_docs/reference/en/html/components.html#components-compositeid

In summary, depending on your approach; you must instantiate an instance of the persistent class itself or the key class and populate its identifier properties before you can load() the persistent state associated with a composite key.


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.