Hi all, I wrote a small app to look at openejb and am having an issue with one of the relationships.
Before posting too much code I wanted to see if anything is obviously wrong. The application has about 5 tables, I'm creating one row and building a OneToMany association to another pre-existing entity, this all works without issue. The next step in my test case was to update the OneToMany to another pre-existing entity. All of the fields are already populated and I'm invoking the setter on the entity. Once this is done, I invoked the merge method on the Injected entityManager. The object returned from this is in tact, and has the association, but one of the fields in the associated object is set to null. I'm working in OpenJPA 1.1, OpenEJB3.1, database is Postgres. The code is inside a local Stateless session bean method. The foreign key association for the onetomany is updated, and if I invoke the finder to reload the object, it all loads properly, and the null field is populated properly. finally, in order to ensure this was an openejb problem and not something specific to openjpa, I broke the code out of the stateless session, and ran the same code with the transaction management in place without openejb. Basically, the entity ended up with the proper field value after the merge. thanks for any info/help. -- View this message in context: http://www.nabble.com/openejb3.1-merge-tp22469332p22469332.html Sent from the OpenEJB User mailing list archive at Nabble.com.
