The scenario: DB table:
Entity:
Create an entity with a list of one or more Person objects in the people ArrayList. Retrieve it by its ID, and edit the firstName on testCaseEntity.people.get(0).firstName. Call merge on the entity. Note that changes to the list of People is NOT persisted to the database. |