• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate - Issue when saving a value object and child value object

 
paul king
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have 2 Value Objects, the main one (VO1) and its child objects (VO2). VO1 has a property Reference in the format ABC/A123. This is a uniqely generated value on create. Also on the create a VO2 is also saved. What I need to do is grab the A123 part of the Reference property in VO1 and save it on VO2.

Is there a way I can do this?

Thanks in advance
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!