HHH-12203 - Fix failing test on MariaDB

This commit is contained in:
Andrea Boriero 2018-01-17 14:45:24 +00:00
parent 5387ffc717
commit df101b0b2e
1 changed files with 4 additions and 3 deletions

View File

@ -13,6 +13,7 @@ import java.util.EnumSet;
import java.util.Map; import java.util.Map;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Id; import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.boot.MetadataSources; import org.hibernate.boot.MetadataSources;
import org.hibernate.boot.registry.StandardServiceRegistry; import org.hibernate.boot.registry.StandardServiceRegistry;
@ -74,7 +75,7 @@ public class NumericValidationTest implements ExecutionOptions {
@Test @Test
public void testValidation() { public void testValidation() {
MetadataImplementor metadata = (MetadataImplementor) new MetadataSources( ssr ) MetadataImplementor metadata = (MetadataImplementor) new MetadataSources( ssr )
.addAnnotatedClass( Numeric.class ) .addAnnotatedClass( TestEntity.class )
.buildMetadata(); .buildMetadata();
metadata.validate(); metadata.validate();
@ -155,8 +156,8 @@ public class NumericValidationTest implements ExecutionOptions {
); );
} }
@Entity(name = "Numeric") @Entity(name = "TestEntity")
public static class Numeric { public static class TestEntity {
@Id @Id
public Integer id; public Integer id;
BigDecimal number; BigDecimal number;