openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Himadri <>
Subject How to update Many-to-one relationship ?
Date Thu, 04 Mar 2010 13:02:17 GMT


I have requirement to update Many-to-one relationship ,

For instance , Books belong to one author >> Book (*- 1) Author1

I need to update Book1 to point to another Author1. 
I have tried using em.merge(Book) with CascadeType.MERGE but it doesnt work.
It should work.

There is no exception generated , but the data is also not updated in

Can anyone explain me how to update Book1 to point to another Author.

Thanks in advance


View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message