-->
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: Composite Key Problem
PostPosted: Tue Dec 18, 2007 5:08 am 
Newbie

Joined: Fri Dec 14, 2007 8:44 am
Posts: 10
Dear Experts

Hi ,

I am quite new , and recently had started with Hibernate.I am facing a problem while working with composite-key.
I have a table named "Customer" with CCode + CID as primary key.
I am getting an error in following code:

........
criteria.add(Expression.eq("com.test.CustomerPK.dealerNumber",new Integer(dealernumber)));
......
Error: CustomerPK is not recognised as property com.test.Customer

Pls suggest the correct way to do this.

Thanks


Top
 Profile  
 
 Post subject: Re: Composite Key Problem
PostPosted: Tue Dec 18, 2007 5:11 am 
Newbie

Joined: Fri Dec 14, 2007 8:44 am
Posts: 10
problem Solved by Sellf


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.