Re: OpenJPA 1.2.x - weird inverse 1:n problem

2010-09-16 Thread Michael Dick
In general OpenJPA does not manage the inverse relationship for you. However you can use the openjpa.InverseManager property to tell us to do so. Take a look at this sectionof the manual for a m

Re: OpenJPA 1.2.x - weird inverse 1:n problem

2010-09-16 Thread Marc Logemann
Hi, trying to narrow it down myself and asking if i am right: Can it be that i need to manually manage the inverse relationship before persist? This would mean that i need to do something like that before persisting: for(DeliveryAddress dAddress : order.getDeliveryAddresses()) {

OpenJPA 1.2.x - weird inverse 1:n problem

2010-09-16 Thread Marc Logemann
Hi, i am getting crazy. Hope someone can point me to the right spot. Suppose the following tables: DB-Table: orders oid int ... DB-Table: Adress -- oid int order_oid Now my classes: @Entity @Table(name = "orders") public class Order { @Id @GeneratedValue(strategy =