object « EJB « JPA Q&A





1. Transfer objects only once via EJB / JPA(Hibernate)    stackoverflow.com

I am using the Java Enterprise Edition with JPA(Hibernate) for a Server-Client application (via EJB). The program stores a lot of data in a database that needs to be transfered to the ...

2. EJB3/JPA: problem reloading object with one-to-many    coderanch.com

I'm learning EJB3 and JPA and this might be an embarassingly stupid question. I'm following the conventions of injecting an entity manager factory into by stateless bean and creating an entity manager on initialization and closing it upon destruction. This means that my one-to-many relationship crosses concurrent entity managers since it doesn't make sense to put both User (one) and Auction ...

3. EJB pass-by-value hibernate object Problem    forum.hibernate.org

I have a object graph which is defined by hibernate node -> node ( many-to-many ) I have set the children with update cascade behaviour. The hibernate did the job prefectly. I can update a node and its auto update any change in its children. But there is problem when I build a UI ( Java standalone client by SWT ) ...

4. Passing a large graph of objects between EJBs    forum.hibernate.org

Hibernate version: 2.1 Name and version of the database you are using: MySQL Hi, I have 2 EJBs: The 1st EJB creates a large graph of objects (my domain model). The 2nd EJB needs to use this graph of objects, should i: A) Pass the root object of the graph - but risk a lot of serializing & de-serializing as the ...

5. Passing persistent objects between EJBs    forum.hibernate.org

Hibernate version: 2.1 Scenario: Two stateless session beans (EJBs) in an application server: EJB1 gets a new session EJB1 creates an object 'A' and calls session.save(); EJB1 then calls EJB2, passing the ID of Object 'A' EJB2 gets a new session EJB2 loads object 'A' from with session.load(ID); EJB2 changes a value in object 'A' EJB2 returns EJB1 does nothing, but ...