3 Replies Latest reply on Jan 12, 2009 4:15 PM by adamw

    @Versioned with @Embedded

      Adam, et. Al.,

      Should @Embedded objects (and their associated attributes) be versioned when the owning entity is @Versioned?

      This seems to not be the case in my working examples, but I don't want to say for sure. What are your thoughts? Thanks.

      Here is an snippeted example:

      @Entity @Versioned
      @Name("userAddress")
      @Table(name="USER_PROFILE_ADDRESSES")
      @Scope(ScopeType.EVENT)
      public class UserAddress
      {
       /** the id **/
       @Id
       @GeneratedValue(strategy = GenerationType.AUTO)
       @Column(name="ID")
       private Long id;
      
       @Embedded
       private EAddress address;
      //...
      


      When I modify attributes from EAddress address, the change revision on UserAddress does not trigger.

      @Embeddable
      public class EAddress implements Serializable
      //...