please check this link just remove the insertable and updatable tags from the model class to the many-to-one mapping
http://www.nabble.com/SQL-does-not-store-FK-when-implementing-OneToMany-relationship.-td18560099s2369.html#a18560099 sudhakargupta wrote: > > Hi, > > > i am using appfuse2.0.2-jsf and i am working with the many-to-one > relationship in jsf with the user, in this one one user can have many > contactDetails so, he will add or edit the contactDetails. i have a > problem at the time of saving it doesn't add the userId in the database > can u help me to solve this problem please find the attached source files > what i made in the project. > > > http://www.nabble.com/file/p20030193/ContactDetails.java > ContactDetails.java > http://www.nabble.com/file/p20030193/ContactDetailsList.java > ContactDetailsList.java > http://www.nabble.com/file/p20030193/ContactDetailsForm.java > ContactDetailsForm.java > http://www.nabble.com/file/p20030193/contactDetailss.xhtml > contactDetailss.xhtml > http://www.nabble.com/file/p20030193/contactDetailsForm.xhtml > contactDetailsForm.xhtml > http://www.nabble.com/file/p20030193/faces-config.xml faces-config.xml > http://www.nabble.com/file/p20030193/application-context.xml > application-context.xml > > please give me the reply. > > SudhakarGupta:-) > -- View this message in context: http://www.nabble.com/jsf-many-to-one-save-problem-in-appfuse2.0.2-tp20030193s2369p20033183.html Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
