HHH-8360 HHH-7843 : one-to-one and mappedBy associations
This commit is contained in:
parent
00fed4c443
commit
9583f24448
|
@ -5,12 +5,10 @@ import javax.persistence.EntityManager;
|
|||
import org.junit.Test;
|
||||
|
||||
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
|
||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
||||
|
||||
/**
|
||||
* @author Emmanuel Bernard
|
||||
*/
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public class AssociationTest extends BaseEntityManagerFunctionalTestCase {
|
||||
@Test
|
||||
public void testBidirOneToOne() throws Exception {
|
||||
|
|
|
@ -29,12 +29,10 @@ import javax.persistence.EntityTransaction;
|
|||
import org.junit.Test;
|
||||
|
||||
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
|
||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
||||
|
||||
/**
|
||||
* @author Max Rydahl Andersen
|
||||
*/
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public class CascadeTest extends BaseEntityManagerFunctionalTestCase {
|
||||
@Test
|
||||
public void testCascade() throws Exception {
|
||||
|
|
|
@ -34,7 +34,6 @@ import org.junit.Test;
|
|||
import org.hibernate.Hibernate;
|
||||
import org.hibernate.ejb.HibernateEntityManager;
|
||||
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
|
||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
||||
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
@ -42,7 +41,6 @@ import static org.junit.Assert.assertTrue;
|
|||
/**
|
||||
* @author Emmanuel Bernard
|
||||
*/
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public class FetchTest extends BaseEntityManagerFunctionalTestCase {
|
||||
@Test
|
||||
public void testCascadeAndFetchCollection() throws Exception {
|
||||
|
|
|
@ -29,14 +29,12 @@ import javax.persistence.EntityTransaction;
|
|||
import org.junit.Test;
|
||||
|
||||
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
|
||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
||||
import org.hibernate.testing.TestForIssue;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.assertSame;
|
||||
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public class MultiLevelCascadeTest extends BaseEntityManagerFunctionalTestCase {
|
||||
|
||||
@TestForIssue( jiraKey = "HHH-5299" )
|
||||
|
|
|
@ -37,14 +37,12 @@ import org.hibernate.dialect.MySQLDialect;
|
|||
import org.hibernate.jpa.test.metamodel.AbstractMetamodelSpecificTest;
|
||||
import org.hibernate.jpa.test.metamodel.Customer;
|
||||
import org.hibernate.jpa.test.metamodel.Customer_;
|
||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
||||
import org.hibernate.testing.SkipForDialect;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* @author Steve Ebersole
|
||||
*/
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public class ManipulationCriteriaTest extends AbstractMetamodelSpecificTest {
|
||||
@Test
|
||||
public void basicTest() {
|
||||
|
|
|
@ -33,7 +33,6 @@ import org.hibernate.jpa.test.metamodel.LineItem;
|
|||
import org.hibernate.jpa.test.metamodel.LineItem_;
|
||||
import org.hibernate.jpa.test.metamodel.Order;
|
||||
import org.hibernate.jpa.test.metamodel.Order_;
|
||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
|
@ -42,7 +41,6 @@ import org.junit.Test;
|
|||
*
|
||||
* @author Steve Ebersole
|
||||
*/
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public class OnKeywordTest extends AbstractMetamodelSpecificTest {
|
||||
@Test
|
||||
public void basicTest() {
|
||||
|
|
|
@ -51,14 +51,12 @@ import org.hibernate.jpa.test.metamodel.Product;
|
|||
import org.hibernate.jpa.test.metamodel.ShelfLife;
|
||||
import org.hibernate.jpa.test.metamodel.Spouse;
|
||||
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
|
||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
/**
|
||||
* @author Steve Ebersole
|
||||
*/
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public class QueryBuilderTest extends BaseEntityManagerFunctionalTestCase {
|
||||
@Override
|
||||
public Class[] getAnnotatedClasses() {
|
||||
|
|
|
@ -38,12 +38,10 @@ import org.junit.Test;
|
|||
import org.hibernate.jpa.test.metamodel.AbstractMetamodelSpecificTest;
|
||||
import org.hibernate.jpa.test.metamodel.Product;
|
||||
import org.hibernate.jpa.test.metamodel.Product_;
|
||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
||||
|
||||
/**
|
||||
* @author Steve Ebersole
|
||||
*/
|
||||
@FailureExpectedWithNewMetamodel(message = "@OneToOne with mappedBy specified is not supported yet")
|
||||
public class AggregationResultTest extends AbstractMetamodelSpecificTest {
|
||||
private CriteriaBuilder builder;
|
||||
|
||||
|
|
|
@ -38,10 +38,8 @@ import org.hibernate.jpa.test.metamodel.AbstractMetamodelSpecificTest;
|
|||
import org.hibernate.jpa.test.metamodel.Product;
|
||||
import org.hibernate.jpa.test.metamodel.Product_;
|
||||
|
||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
||||
import org.hibernate.testing.TestForIssue;
|
||||
|
||||
@FailureExpectedWithNewMetamodel(message = "@OneToOne with mappedBy specified is not supported yet")
|
||||
public class CastTest extends AbstractMetamodelSpecificTest {
|
||||
private static final int QUANTITY = 2;
|
||||
|
||||
|
|
|
@ -46,7 +46,6 @@ import org.hibernate.jpa.test.metamodel.Phone;
|
|||
import org.hibernate.jpa.test.metamodel.Product;
|
||||
import org.hibernate.jpa.test.metamodel.Product_;
|
||||
import org.hibernate.internal.AbstractQueryImpl;
|
||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
||||
import org.hibernate.testing.RequiresDialect;
|
||||
import org.hibernate.testing.TestForIssue;
|
||||
|
||||
|
@ -57,7 +56,6 @@ import static org.junit.Assert.assertEquals;
|
|||
*
|
||||
* @author Steve Ebersole
|
||||
*/
|
||||
@FailureExpectedWithNewMetamodel(message = "@OneToOne with mappedBy specified is not supported yet")
|
||||
public class ExpressionsTest extends AbstractMetamodelSpecificTest {
|
||||
private CriteriaBuilder builder;
|
||||
|
||||
|
|
|
@ -39,7 +39,6 @@ import org.hibernate.jpa.test.metamodel.Customer_;
|
|||
import org.hibernate.jpa.test.metamodel.Order;
|
||||
import org.hibernate.jpa.test.metamodel.Order_;
|
||||
|
||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
||||
import org.hibernate.testing.TestForIssue;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
@ -51,7 +50,6 @@ import static org.junit.Assert.assertTrue;
|
|||
* @author Steve Ebersole
|
||||
* @author Hardy Ferentschik
|
||||
*/
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public class PredicateTest extends AbstractMetamodelSpecificTest {
|
||||
private CriteriaBuilder builder;
|
||||
|
||||
|
|
|
@ -36,7 +36,6 @@ import org.hibernate.jpa.test.metamodel.AbstractMetamodelSpecificTest;
|
|||
import org.hibernate.jpa.test.metamodel.Order;
|
||||
import org.hibernate.jpa.test.metamodel.Thing;
|
||||
import org.hibernate.jpa.test.metamodel.ThingWithQuantity;
|
||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
|
@ -44,7 +43,6 @@ import static org.junit.Assert.assertEquals;
|
|||
* @author Michael Rudolf
|
||||
* @author James Gilbertson
|
||||
*/
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public class AbstractPathImplTest extends AbstractMetamodelSpecificTest {
|
||||
@Before
|
||||
public void prepareTestData() {
|
||||
|
|
|
@ -37,12 +37,10 @@ import org.hibernate.jpa.test.metamodel.LineItem;
|
|||
import org.hibernate.jpa.test.metamodel.LineItem_;
|
||||
import org.hibernate.jpa.test.metamodel.Order;
|
||||
import org.hibernate.jpa.test.metamodel.Order_;
|
||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
||||
|
||||
/**
|
||||
* @author Steve Ebersole
|
||||
*/
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public class ImplicitJoinTest extends AbstractMetamodelSpecificTest {
|
||||
@Test
|
||||
public void testImplicitJoinFromExplicitCollectionJoin() {
|
||||
|
|
|
@ -40,13 +40,11 @@ import org.hibernate.jpa.test.metamodel.LineItem;
|
|||
import org.hibernate.jpa.test.metamodel.LineItem_;
|
||||
import org.hibernate.jpa.test.metamodel.Order;
|
||||
import org.hibernate.jpa.test.metamodel.Order_;
|
||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
||||
import org.hibernate.testing.SkipForDialect;
|
||||
|
||||
/**
|
||||
* @author Steve Ebersole
|
||||
*/
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public class CorrelatedSubqueryTest extends AbstractMetamodelSpecificTest {
|
||||
@Test
|
||||
public void testBasicCorrelation() {
|
||||
|
|
|
@ -35,7 +35,6 @@ import org.hibernate.jpa.test.metamodel.Customer;
|
|||
import org.hibernate.jpa.test.metamodel.Customer_;
|
||||
import org.hibernate.jpa.test.metamodel.Order;
|
||||
import org.hibernate.jpa.test.metamodel.Order_;
|
||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
|
@ -44,7 +43,6 @@ import static org.junit.Assert.fail;
|
|||
/**
|
||||
* @author Steve Ebersole
|
||||
*/
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public class UncorrelatedSubqueryTest extends AbstractMetamodelSpecificTest {
|
||||
@Test
|
||||
public void testEqualAll() {
|
||||
|
|
|
@ -36,7 +36,6 @@ import org.junit.Test;
|
|||
import org.hibernate.jpa.test.metamodel.AbstractMetamodelSpecificTest;
|
||||
import org.hibernate.jpa.test.metamodel.Customer;
|
||||
import org.hibernate.jpa.test.metamodel.Customer_;
|
||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
@ -44,7 +43,6 @@ import static org.junit.Assert.assertTrue;
|
|||
/**
|
||||
* @author Emmanuel Bernard
|
||||
*/
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public class TupleCriteriaTest extends AbstractMetamodelSpecificTest {
|
||||
@Test
|
||||
public void testArray() {
|
||||
|
|
|
@ -30,7 +30,6 @@ import javax.persistence.EntityManager;
|
|||
import org.junit.Test;
|
||||
|
||||
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
|
||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.fail;
|
||||
|
@ -38,7 +37,6 @@ import static org.junit.Assert.fail;
|
|||
/**
|
||||
* @author Emmanuel Bernard
|
||||
*/
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public class MergeTest extends BaseEntityManagerFunctionalTestCase {
|
||||
@Test
|
||||
public void testMergeWithIndexColumn() {
|
||||
|
|
Loading…
Reference in New Issue