|
|
|
(The following is in relation to the already fixed issue HHH-10115.)
I have the following simple test entity... {code} package org.example.model;
import org.hibernate.envers.Audited; import javax.persistence.*;
@Entity public class Test { @Id @Column public Long id; @Audited @Column public String name; } {code}
If I now startup then I get warnings in my log as shown below... {code} INFO [RMI TCP Connection(2)-127.0.0.1] internal.EnversServiceImpl (EnversServiceImpl.java:91) - Envers integration enabled? : true DEBUG [RMI TCP Connection(2)-127.0.0.1] metadata.AuditMetadataGenerator (AuditMetadataGenerator.java:594) - Generating first-pass auditing mapping for entity org.example.model.Test DEBUG [RMI TCP Connection(2)-127.0.0.1] metadata.AuditMetadataGenerator (AuditMetadataGenerator.java:679) - Generating second-pass auditing mapping for entity org.example.model.Test DEBUG [RMI TCP Connection(2)-127.0.0.1] hbm.ModelBinder (ModelBinder.java:231) - Mapping class: org.example.model.Test_AUD -> Test_AUD DEBUG [RMI TCP Connection(2)-127.0.0.1] hbm.ModelBinder (ModelBinder.java:2590) - Binding component [org.example.model.Test_AUD.originalId] DEBUG [RMI TCP Connection(2)-127.0.0.1] hbm.ModelBinder (ModelBinder.java:2516) - Mapped property: id -> [id] WARN [RMI TCP Connection(2)-127.0.0.1] hbm.ModelBinder (ModelBinder.java:2442) - HHH90000003: Use of DOM4J entity-mode is considered deprecated DEBUG [RMI TCP Connection(2)-127.0.0.1] hbm.ModelBinder (ModelBinder.java:2516) - Mapped property: REV -> [REV] DEBUG [RMI TCP Connection(2)-127.0.0.1] hbm.ModelBinder (ModelBinder.java:2516) - Mapped property: originalId -> [id, REV] DEBUG [RMI TCP Connection(2)-127.0.0.1] hbm.ModelBinder (ModelBinder.java:2516) - Mapped property: REVTYPE -> [REVTYPE] DEBUG [RMI TCP Connection(2)-127.0.0.1] hbm.ModelBinder (ModelBinder.java:2516) - Mapped property: name -> [name] DEBUG [RMI TCP Connection(2)-127.0.0.1] hbm.ModelBinder (ModelBinder.java:2516) - Mapped property: name_MOD -> [name_MOD] {code}
If I remove the {{@Audited}} statement from my test class then I get the following log without any warnings... {code} INFO [RMI TCP Connection(2)-127.0.0.1] internal.EnversServiceImpl (EnversServiceImpl.java:91) - Envers integration enabled? : true DEBUG [RMI TCP Connection(2)-127.0.0.1] internal.EnversIntegrator (EnversIntegrator.java:74) - Skipping Envers listener registrations : No audited entities found {code}
Some environment log... {code} INFO [RMI TCP Connection(2)-127.0.0.1] hibernate.Version (Version.java:37) - HHH000412: Hibernate Core {5.0.3.Final} INFO [RMI TCP Connection(2)-127.0.0.1] cfg.Environment (Environment.java:198) - HHH000205: Loaded properties from resource hibernate.properties: {hibernate.dialect=org.hibernate.dialect.PostgreSQL94Dialect, hibernate.bytecode.use_reflection_optimizer=true, hibernate.connection.release_mode=after_transaction org.hibernate.envers.global_with_modified_flag=true} INFO [RMI TCP Connection(2)-127.0.0.1] cfg.Environment (Environment.java:236) - HHH000406: Using bytecode reflection optimizer INFO [RMI TCP Connection(2)-127.0.0.1] cfg.Environment (Environment.java:317) - HHH000021: Bytecode provider name : javassist 2015-11-18 16:23:02,515 INFO [RMI TCP Connection(2)-127.0.0.1] java.JavaReflectionManager (JavaReflectionManager.java:66) - HCANN000001: Hibernate Commons Annotations {5.0.0.Final} 2015-11-18 16:23:02,911 INFO [RMI TCP Connection(2)-127.0.0.1] dialect.Dialect (Dialect.java:154) - HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL94Dialect 2015-11-18 16:23:03,197 INFO [RMI TCP Connection(2)-127.0.0.1] internal.LobCreatorBuilderImpl (LobCreatorBuilderImpl.java:124) - HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException 2015-11-18 16:23:03,201 INFO [RMI TCP Connection(2)-127.0.0.1] type.BasicTypeRegistry (BasicTypeRegistry.java:138) - HHH000270: Type registration [java.util.UUID] overrides previous : org.hibernate.type.UUIDBinaryType@5c529f4c 2015-11-18 16:23:03,208 INFO [RMI TCP Connection(2)-127.0.0.1] {code}
|
|
|
|