• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!