Hi!
I want put a source class which is like :
- DadSrc : -- String techid; -- Set<ChildSrc> childs; -- ... - ChildSrc : -- String techid; -- ...
… in a destination class which is like :
- DadDest : -- String techid; -- Set<ChildDest> childs; -- ... - ChildDest : -- String techid; -- DadDest dad; -- ...
If you see, the second is bidirectional. I would like put the dad in each ChildDest. A dad with just a techid (business key) if possible.
I tried things like :
<mapping> <class-a>package.DadSrc</class-a> <class-b>package.DadDest</class-b> <field type="one-way"> <a>techid</a> <b>childs.dad.techid</b> </field> </mapping>
… but it seems not working.
If anybody can help me…
Log in to post a comment.
Hi!
I want put a source class which is like :
… in a destination class which is like :
If you see, the second is bidirectional. I would like put the dad in each ChildDest. A dad with just a techid (business key) if possible.
I tried things like :
… but it seems not working.
If anybody can help me…