-->
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 me in Composite Key related problems
PostPosted: Sat Jun 26, 2004 1:59 am 
Newbie

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

I have a db with composite key.

ANd two classes has been created with middle gen

one class and another primary key class.

when i have to query i am getting the above error.

when i have to add data also i cannot create a sequence for any one of the attributes of the composite key.

help me in this issue.


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

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
You have not provide much information so its difficult to give you any guidence at all.

As far as sequences go and composite key fields is not directly supported. Composite keys are managed by the developer in terms of the key values. How you get those values is application specific - see the section on the 'assign' key generator attribute in the manual.


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.