collection « Struts « JPA Q&A





1. Deleting an element from one-to-many collection (Java + HIbernate + Struts)    stackoverflow.com

I can't delete a child object from the database. From the org.apache.struts.action.Action.execute() method, I am removing the child from the parent's List, and also calling session.delete(child). I've simplified the ...

2. error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I    struts.1045723.n5.nabble.com

hi, I am running a simple search of a product via Hibernate on struts code, the code runs fine when i run via a function in public static void main when i run the same code via struts i get the following exception, the code is: public static void main(String[] args) { ProductsDAO ...

3. JPA Collection Update on Post    struts.1045723.n5.nabble.com

Hi Guys, JPA background: I have a Demographics entity that has as one of its properties a Collection of MedicalRecordsReceived entities. Each MedicalRecordsRecieved entity has as one of its properties a Demographic object. OK, When I pull the Demo entity and display in page using s:iterator to display all MedicalRecordsReceived entities, everything displays fine. My problem is that on post back ...

4. Struts 2 and replacing collections    forum.hibernate.org

Newbie Joined: Tue Dec 07, 2004 8:15 pm Posts: 10 Location: Adelaide Australia This is more of a solution than a problem reproduced here to help someone else. Situation: You have a one to many association mapped as a collection. You have a Struts2 type converter for the collection property that constructs a new collection which the Struts2 parameters interceptor then ...