at org.hibernate.tool.schema.internal.SchemaValidatorImpl.validateTable(SchemaValidatorImpl.java:67) [hibernate-core-5.0.6.Final.jar:5.0.6.Final]

at org.hibernate.tool.schema.internal.SchemaValidatorImpl.doValidation(SchemaValidatorImpl.java:50) [hibernate-core-5.0.6.Final.jar:5.0.6.Final]

at org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:91) [hibernate-core-5.0.6.Final.jar:5.0.6.Final]

at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:473) [hibernate-core-5.0.6.Final.jar:5.0.6.Final]

at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:444) [hibernate-core-5.0.6.Final.jar:5.0.6.Final]

at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:879) [hibernate-entitymanager-5.0.6.Final.jar:5.0.6.Final]

When I removed from persistence.xml entry: <property name="hibernate.hbm2ddl.auto" value="validate" />

then it works but I want to use validation in my project. I'm using JTA, org.hibernate.dialect.SQLServer2012Dialec, JPA 2.1 and Wildfly 10CR5 and jtds 1.3.1. ... and version 4.3.7 is working fine with option "validate".

Please let me know if you'll have any idea what is the cause of it, what is wrong or what to change in my project or if you need more details to fix it.