-->
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: What kind of getter for a composite id is needed?
PostPosted: Thu Jan 24, 2008 11:18 am 
Beginner
Beginner

Joined: Mon Jul 23, 2007 12:37 pm
Posts: 24
Hi,

I'm stuck in between legacy tables and legacy Java classes. There are composite primary keys in the tables. The classes have a member for each column of those composite keys - either primitive types or references to other classes. There are no wrapper classes for the composite id's. When I try to load the classes, Hibernate is unhappy because there is no getter for the id in those classes. How can I implement the getter method, given that a CompositeId wrapper doesn't exist?


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.