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
|