-->
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: Creating Persistent Objects In HQL
PostPosted: Thu Sep 01, 2011 6:41 am 
Newbie

Joined: Wed Sep 03, 2008 9:56 am
Posts: 6
Hi,

I am trying to develop to following process and want to see if there's a Hibernate solution for it:

I have an Entity A which holds Entity B with Many to One relation (Means Many A can hold one instance of B).

Now, I get a long list of B ids and another field.

I am looking to do the following:

1. HQL B according to A ids and this other field.

2. For 100 ids, a B according to A and the field exists.

3. For the other 100 ids the A exists but B is not exists with the other field.

4. Now, is there a way to create the B instance with the A and other field on the fly?

Using some kind of interception? Any other utility I am not familiar with?

Hope I'm clear.

10x! a lot,

David Zonsheine


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.