4 Replies Latest reply on Oct 11, 2005 5:50 AM by Gavin King

    bijection for entity beans

    Patrick Angeles Novice

      I read from the docs that @Entity components cannot take part in bijection. Is this by design, or an EJB restriction? I can see a use case for allowing bijection for entities:

      @Entity
      @Name ("user")
      @Scope (SESSION)
      public class User {
       ...
      }
      
      
      @Entity (AccessType.FIELD)
      @Name ("someObject")
      public class SomeObject {
      
      @Transient
      @In
      private User user ;
      
      @ManyToOne
      private User updater ;
      
      @Basic
      private Date updateTime ;
      
      @PreUpdate
      public void onPreUpdate () {
       this.updater = user ;
       this.updateTime = new Date () ;
      }
      
      }