-->
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: version is not incremented in onetoone realtionship - JPA
PostPosted: Thu Aug 16, 2007 9:43 am 
Newbie

Joined: Tue May 01, 2007 12:25 pm
Posts: 5
Hi,

When the entity has OneToOne Relationship,the version is not getting updated when the child gets updated

Whereas version is getting updated only on the parent update.

For example

Customer and Order in which “Customer“ has one to one relationship with “Order” (unidirectional)

Version is maintained at parent level.

When there is change in Order data,the version in parent is not updated even i pass the whole parent data with child for entitymanager.merge

please help me on this or suggest me some alternative way if my approach is not correct


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.