HHH-7919 : Miscellaneous bugfixes
This commit is contained in:
parent
4293814f92
commit
0c199b0374
|
@ -108,8 +108,7 @@ public abstract class AbstractBasicBindingTests extends BaseUnitTestCase {
|
|||
assertEquals( "version is nullable", false, versionAttributeBinding.getRelationalValueBindings().get( 0 ).isNullable() );
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEntityWithManyToOneMapping() {
|
||||
protected void testEntityWithManyToOneMapping(String defaultManyToOneColumnReferencingId) {
|
||||
MetadataSources sources = new MetadataSources( serviceRegistry );
|
||||
addSourcesForSimpleEntityBinding( sources );
|
||||
addSourcesForManyToOne( sources );
|
||||
|
@ -128,7 +127,7 @@ public abstract class AbstractBasicBindingTests extends BaseUnitTestCase {
|
|||
SingularAttributeBinding.class.cast(
|
||||
simpleEntityBinding.getHierarchyDetails().getEntityIdentifier().getAttributeBinding()
|
||||
),
|
||||
"simpleEntity",
|
||||
defaultManyToOneColumnReferencingId,
|
||||
false
|
||||
);
|
||||
|
||||
|
|
|
@ -55,9 +55,8 @@ public class BasicAnnotationBindingTests extends AbstractBasicBindingTests {
|
|||
sources.addAnnotatedClass( SimpleEntityWithSimpleComponent.SimpleComponent.class );
|
||||
}
|
||||
|
||||
@Override
|
||||
@Test
|
||||
public void testEntityWithManyToOneMapping() {
|
||||
super.testEntityWithManyToOneMapping();
|
||||
super.testEntityWithManyToOneMapping( "simpleEntity_id");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
*/
|
||||
package org.hibernate.metamodel.spi.binding;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import org.hibernate.metamodel.MetadataSources;
|
||||
|
||||
/**
|
||||
|
@ -51,4 +53,9 @@ public class BasicHbmBindingTests extends AbstractBasicBindingTests {
|
|||
public void addSourcesForComponentBinding(MetadataSources sources) {
|
||||
sources.addResource( "org/hibernate/metamodel/spi/binding/SimpleEntityWithSimpleComponent.hbm.xml" );
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEntityWithManyToOneMapping() {
|
||||
super.testEntityWithManyToOneMapping( "simpleEntity" );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -257,7 +257,6 @@ public class CollectionElementTest extends BaseCoreFunctionalTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public void testDefaultFKNameForElementCollection() throws Exception {
|
||||
isCollectionColumnPresent( Boy.class, "hatedNames", "Boy_id" );
|
||||
}
|
||||
|
|
|
@ -335,7 +335,6 @@ public class IndexedCollectionTest extends BaseCoreFunctionalTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@FailureExpectedWithNewMetamodel
|
||||
@RequiresDialect({HSQLDialect.class, H2Dialect.class})
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public void testComponentSubPropertyMapKey() throws Exception {
|
||||
|
|
Loading…
Reference in New Issue