Given the following: - AppFuse 1.9.3 (Spring 1.2.8/Spring MVC/Hibernate 3.1.3) - A QuestionMaster class containing a List of Question objects with the List index field/column “revision” (bidirectional parent/child) - A Survey class with a List of Question objects with the List index field/column “questionNumber” (unidirectional with join table)
When editing questions, I want to detect if/when changes to a Question are made and create a new revision (i.e. new Question object that is then added to the QuestionMaster Question List) and replace the corresponding Survey Question with the new revision. I was thinking that I could create a method in the manager/service class that tests Session.isDirty() to determine if changes were made and then create a new Question/add it to the QuestionMaster List/etc. The problem with this strategy is that I would need to cancel the changes to the original Question and I’m not sure how to do that. Any advice/suggestions? Thanks, Gary -- View this message in context: http://www.nabble.com/creating-object-revisions-tf2888840s2369.html#a8070751 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
