0 Replies Latest reply on May 18, 2005 5:20 AM by Dimitrijs Fedotovs

    Changing entity properties in entity listener

    Dimitrijs Fedotovs Newbie

      I want to change some properties from entity listener from methods anotated as @PrePersist and @PreUpdate.

      public void setCreationTime( Object obj ) {
       ((obj)MyEntity).setCreationTime( System.currentTimeMillis() );

      The method is called, but property not changed. No error messages.
      Is it bug?

      I'm using JBoss4.0.2 and EJB3 preview 5