[jboss-user] [JBoss Seam] - Hibernate Entity and Entity: update problem

miloslav.vlach do-not-reply at jboss.com
Wed Jun 13 13:32:15 EDT 2007


Hi all,

I have problem:

how to create update action ? best practices ?

1. method init(Long id) load the entity from hibernate session ViewArticle$$EnhancedByCGLIB$$... - the form is displayed

2. post the form to the save action - but there is no hibernate object byCGLIB - pure entity (POJO) - but i can't call session.update().

--> solution 

1. in method save load the object and copy attributes from bijected POJO entity and update object

or better solutions ?

thanks Mila

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054080#4054080

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054080



More information about the jboss-user mailing list