Hi Matt, In appfuse2 struts i written the many-to-one relationship code like this
Purchase.java @ManyToOne (targetEntity=User.class) @JoinColumn (name="user_id", nullable=flase) private User user; PurchaseAction.java: (appended code) public List getUsers() { return userManager.getUsers(new User()); } purchaseForm.jsp: (Generated by appfuse:gen) <s:select name="purchase.user.id" list="users" listKey="id" listValue="username"></s:select> It gives an error when add a new record object references an unsaved transient instance - save the transient instance before flushing: com.ozonetel.sms.model.User; nested exception is org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: com.ozonetel.sms.model.User It works fine when update the already existed record please suggest me how to solve this problem ----- --- Sudhakar -- View this message in context: http://www.nabble.com/Struts2-Many-to-one-New-Record-Save-problem-%28JSP-Drop-down%29-tp23442385s2369p23442385.html Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net For additional commands, e-mail: users-h...@appfuse.dev.java.net