openjpa-users mailing list archives

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

Hi,

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
database. 

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

Thanks in advance

-H



-- 
View this message in context: http://n2.nabble.com/How-to-update-Many-to-one-relationship-tp4674124p4674124.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Mime
View raw message