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

    Changing entity properties in entity listener

    billy_fedukoff

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

      @PrePersist
      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