Persist « POJO « JPA Q&A





1. is it possible to persist an ArrayList of POJO into database in hibernate?    coderanch.com

Hi, It is possible to persist a list of collections (like Set, Map or List). Here is a simple example. Pojo : Pet.java public class Pet { private String name; private String type; public Pet() { } //setters and getters } Pojo : User.java public class User { private Long uid; private String name; private String phone; private BillingDetails billingInfo; private ...

2. Trying to use hibernate to persist a POJO    forum.hibernate.org

3. unable to persist POJO object    forum.hibernate.org

Hi All, when I am trying to persist a POJO object, it is throwing exception "null". what does it mean? how do we resolve this? I checked the status of object....it is not NULL!!!!. when execute the statement session.save(obj); it is failing.... the flow is clike this : 1. objC aggregates to make objB 2. objB aggregates to make objA I ...

4. POJO & persistence question    forum.hibernate.org

Hi i have one question regarding persistence. suppose if there are some records in a database table.. and suppose if i edit a record which is already present in the database table( i am editing a record in the database table itself when the application is already launched, and also i am not using session.update() method to edit the record). now ...