arraylist « Collection « JPA Q&A





1. Hibernate PersistentList and ArrayList    stackoverflow.com

Dear All, I have a problem with an ArrayList annotated with @ElementCollection. I need it to be an ArrayList, and when Hibernate load the object from the session, it is a hibernate Persistent ...

2. JPA returning collection of type PersistentBag instead of ArrayList    coderanch.com

Hi All, I have 2 entities (Category and Products) having one to many relationship between them. My architecture is having Spring (in business Layer) and am using Hibernate under the hood of JPA. I am using annotations for all my configurations. Please see the attached code. Inside the finder method of a DAO, I am finding (EntityManager.find()) the parent entity. The ...