JPA Annotation的Entity里面没有提供,使用Hibernate的Entity即可。
hibernate-distribution-3.6.0.Final下测试通过
同理动态插入时dynamicInsert = true即可。
Hibernate文档里有写:
Hibernate goes beyond the JPA specification and provide additional configurations. Some of them are hosted on @org.hibernate.annotations.Entity.
Although these settings can increase performance in some cases, they can actually decrease performance in others.