Maven project inside testHibernate_HHH-10731.zip can be run with mvn -Dhibernate.dialect=org.hibernate.dialect.SQLServer2012Dialect clean verify. We also experience this bug when using Oracle. The discriminator type always seems to be set to org.hibernate.type.StringType, as a result the auto generated DDL for the column will be VARCHAR instead of NVARCHAR too. |