Hi Andy
I got an supposed invalid/duplicate INSERT on the persistence of a PC that has a 1-1 relationship. All files are in attachmement with a full Eclipse project. The control flow is:
1/ userForm.jsp displays a form where radiobutton, selectbox values are coming from an Enum, and 2 Daos -- CountryDao and CommunityDao -- (see UserController.referenceData()).
2/ On return from the submit action, the UserController store/makePersistent the PC User where Country has been filled by the underlying Spring, then the invalid INSERT into Country appears.
To reproduce the problem, just rebuild the Eclipse SimpleFormController, upload the 2 tables COUNTRY and COMMUNITY with resources/country.sql and resources/community.sql and launch a browser on
http://localhost:8080/SimpleFormController/userRegistration.htm. Fill all fields and press the "submit" button.
SimpleFormController.rar: the full Eclipse project