0 Replies Latest reply on Jun 13, 2007 1:32 PM by Miloslav Vlach

    Hibernate Entity and Entity: update problem

    Miloslav Vlach Novice

      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