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

    @Versioned with @Embedded

    Chris Simons Expert

      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
      public class UserAddress
       /** the id **/
       @GeneratedValue(strategy = GenerationType.AUTO)
       private Long id;
       private EAddress address;

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

      public class EAddress implements Serializable