HHH-12203 - Fix failing test on MariaDB
This commit is contained in:
parent
5387ffc717
commit
df101b0b2e
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue