2 Replies Latest reply on Jan 17, 2011 2:14 AM by fphilip

    NOT_AUDITED doesn't work....

    fphilip

      NOT_AUDITED doesn't work....

       

       

      I have an entity not auditable with a Seralizable field but i can deploy it because the envers metadata ignore an Annotation

       

      any idea?

       

       

       

       

      Caused by: org.hibernate.MappingException: Type not supported for auditing: org.hibernate.type.SerializableToBlobType, on entity com.gowex.roaming.model.Notification, property 'entityKey'.

                at org.hibernate.envers.configuration.metadata.AuditMetadataGenerator.throwUnsupportedTypeException(AuditMetadataGenerator.java:523)

                at org.hibernate.envers.configuration.metadata.AuditMetadataGenerator.addValue(AuditMetadataGenerator.java:209)

       

       

       

       

       

       

      @Entity @org.hibernate.envers.Audited(targetAuditMode = org.hibernate.envers.RelationTargetAuditMode.NOT_AUDITED)

      @Table(name = "notifications")

      public final class Notification extends AbstractBasicEntity {

          private User user;

          private Date date;

          private String entityName;

          private Serializable entityKey;