-->
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: Components as composite ids
PostPosted: Mon Jul 17, 2006 10:22 am 
Newbie

Joined: Fri Jul 14, 2006 12:19 pm
Posts: 6
Hi,

Is it possible to use more than one component as a composite Id. Composite id accepts an attribute that allows one component to be set as a composite id, but is it possible to set multiple components as one composite id?

problem definition :
my POJO consists of fields that are complex objects and each of these objects persists themselves into more than one column of the parent table. So a component is a nifty feature. However, a developer may choose to define 2 such field objects as entity keys, which requires me to have a composite id that can have multiple components. I cannot change the use of these field objects, so I have to find a way to persist them. I also cannot restrict the developers to setting just one entity key as these field objects may not be capable of defining a complete key all by themselves.

What would be a recommended way to do this ??

hope to hear from you guys soon...


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.