7 Replies Latest reply on Oct 7, 2010 4:04 AM by Adam Warski

    Auditing entities with multiple @Id columns

    Nicklas Karlsson Master

      Hi,

       

      I have a case of an entity with a composite key mapped in one class with multiple @Id columns. When I stick @Audited on it the entitymanagerfactory fails to build due to a NPE in

       

      Caused by: java.lang.NullPointerException
      at org.hibernate.envers.configuration.metadata.AuditMetadataGenerator.generateMappingData(AuditMetadataGenerator.java:305) [:3.5.5-Final]
      at org.hibernate.envers.configuration.metadata.AuditMetadataGenerator.generateFirstPass(AuditMetadataGenerator.java:389) [:3.5.5-Final]

      Caused by: java.lang.NullPointerException

      at org.hibernate.envers.configuration.metadata.AuditMetadataGenerator.generateMappingData(AuditMetadataGenerator.java:305) [:3.5.5-Final]

      at org.hibernate.envers.configuration.metadata.AuditMetadataGenerator.generateFirstPass(AuditMetadataGenerator.java:389) [:3.5.5-Final]

       

      any workaround?