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 to my Action for update, the
MedicalRecordsReceived collection in the Demographics object is now null.

I have lots of situations similar to this where an entity contains an entity
(one-to-one) and don't have any problems with the child posting back also
and updating fine. So do I need to do something different on this
one-to-many situation? If this is a JPA thing then pardon my faux pas. I
don't think it is though, my model is not exhibiting any issues. I think I
am not doing something right in my page with all the entity properties.

Any thoughts? Thanks.

Nick

Reply via email to