HHH-8360 HHH-7843 : one-to-one and mappedBy associations

This commit is contained in:
Gail Badner 2013-07-18 00:46:23 -07:00
parent 00fed4c443
commit 9583f24448
17 changed files with 0 additions and 34 deletions

View File

@ -5,12 +5,10 @@ import javax.persistence.EntityManager;
import org.junit.Test; import org.junit.Test;
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
/** /**
* @author Emmanuel Bernard * @author Emmanuel Bernard
*/ */
@FailureExpectedWithNewMetamodel
public class AssociationTest extends BaseEntityManagerFunctionalTestCase { public class AssociationTest extends BaseEntityManagerFunctionalTestCase {
@Test @Test
public void testBidirOneToOne() throws Exception { public void testBidirOneToOne() throws Exception {

View File

@ -29,12 +29,10 @@ import javax.persistence.EntityTransaction;
import org.junit.Test; import org.junit.Test;
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
/** /**
* @author Max Rydahl Andersen * @author Max Rydahl Andersen
*/ */
@FailureExpectedWithNewMetamodel
public class CascadeTest extends BaseEntityManagerFunctionalTestCase { public class CascadeTest extends BaseEntityManagerFunctionalTestCase {
@Test @Test
public void testCascade() throws Exception { public void testCascade() throws Exception {

View File

@ -34,7 +34,6 @@ import org.junit.Test;
import org.hibernate.Hibernate; import org.hibernate.Hibernate;
import org.hibernate.ejb.HibernateEntityManager; import org.hibernate.ejb.HibernateEntityManager;
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
@ -42,7 +41,6 @@ import static org.junit.Assert.assertTrue;
/** /**
* @author Emmanuel Bernard * @author Emmanuel Bernard
*/ */
@FailureExpectedWithNewMetamodel
public class FetchTest extends BaseEntityManagerFunctionalTestCase { public class FetchTest extends BaseEntityManagerFunctionalTestCase {
@Test @Test
public void testCascadeAndFetchCollection() throws Exception { public void testCascadeAndFetchCollection() throws Exception {

View File

@ -29,14 +29,12 @@ import javax.persistence.EntityTransaction;
import org.junit.Test; import org.junit.Test;
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
import org.hibernate.testing.TestForIssue; import org.hibernate.testing.TestForIssue;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertSame; import static org.junit.Assert.assertSame;
@FailureExpectedWithNewMetamodel
public class MultiLevelCascadeTest extends BaseEntityManagerFunctionalTestCase { public class MultiLevelCascadeTest extends BaseEntityManagerFunctionalTestCase {
@TestForIssue( jiraKey = "HHH-5299" ) @TestForIssue( jiraKey = "HHH-5299" )

View File

@ -37,14 +37,12 @@ import org.hibernate.dialect.MySQLDialect;
import org.hibernate.jpa.test.metamodel.AbstractMetamodelSpecificTest; import org.hibernate.jpa.test.metamodel.AbstractMetamodelSpecificTest;
import org.hibernate.jpa.test.metamodel.Customer; import org.hibernate.jpa.test.metamodel.Customer;
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.hibernate.testing.SkipForDialect;
import org.junit.Test; import org.junit.Test;
/** /**
* @author Steve Ebersole * @author Steve Ebersole
*/ */
@FailureExpectedWithNewMetamodel
public class ManipulationCriteriaTest extends AbstractMetamodelSpecificTest { public class ManipulationCriteriaTest extends AbstractMetamodelSpecificTest {
@Test @Test
public void basicTest() { public void basicTest() {

View File

@ -33,7 +33,6 @@ import org.hibernate.jpa.test.metamodel.LineItem;
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.jpa.test.metamodel.Order_; import org.hibernate.jpa.test.metamodel.Order_;
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
import org.junit.Test; import org.junit.Test;
@ -42,7 +41,6 @@ import org.junit.Test;
* *
* @author Steve Ebersole * @author Steve Ebersole
*/ */
@FailureExpectedWithNewMetamodel
public class OnKeywordTest extends AbstractMetamodelSpecificTest { public class OnKeywordTest extends AbstractMetamodelSpecificTest {
@Test @Test
public void basicTest() { public void basicTest() {

View File

@ -51,14 +51,12 @@ import org.hibernate.jpa.test.metamodel.Product;
import org.hibernate.jpa.test.metamodel.ShelfLife; import org.hibernate.jpa.test.metamodel.ShelfLife;
import org.hibernate.jpa.test.metamodel.Spouse; import org.hibernate.jpa.test.metamodel.Spouse;
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
/** /**
* @author Steve Ebersole * @author Steve Ebersole
*/ */
@FailureExpectedWithNewMetamodel
public class QueryBuilderTest extends BaseEntityManagerFunctionalTestCase { public class QueryBuilderTest extends BaseEntityManagerFunctionalTestCase {
@Override @Override
public Class[] getAnnotatedClasses() { public Class[] getAnnotatedClasses() {

View File

@ -38,12 +38,10 @@ import org.junit.Test;
import org.hibernate.jpa.test.metamodel.AbstractMetamodelSpecificTest; import org.hibernate.jpa.test.metamodel.AbstractMetamodelSpecificTest;
import org.hibernate.jpa.test.metamodel.Product; import org.hibernate.jpa.test.metamodel.Product;
import org.hibernate.jpa.test.metamodel.Product_; import org.hibernate.jpa.test.metamodel.Product_;
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
/** /**
* @author Steve Ebersole * @author Steve Ebersole
*/ */
@FailureExpectedWithNewMetamodel(message = "@OneToOne with mappedBy specified is not supported yet")
public class AggregationResultTest extends AbstractMetamodelSpecificTest { public class AggregationResultTest extends AbstractMetamodelSpecificTest {
private CriteriaBuilder builder; private CriteriaBuilder builder;

View File

@ -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.jpa.test.metamodel.Product_; import org.hibernate.jpa.test.metamodel.Product_;
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
import org.hibernate.testing.TestForIssue; import org.hibernate.testing.TestForIssue;
@FailureExpectedWithNewMetamodel(message = "@OneToOne with mappedBy specified is not supported yet")
public class CastTest extends AbstractMetamodelSpecificTest { public class CastTest extends AbstractMetamodelSpecificTest {
private static final int QUANTITY = 2; private static final int QUANTITY = 2;

View File

@ -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.jpa.test.metamodel.Product_; import org.hibernate.jpa.test.metamodel.Product_;
import org.hibernate.internal.AbstractQueryImpl; import org.hibernate.internal.AbstractQueryImpl;
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
import org.hibernate.testing.RequiresDialect; import org.hibernate.testing.RequiresDialect;
import org.hibernate.testing.TestForIssue; import org.hibernate.testing.TestForIssue;
@ -57,7 +56,6 @@ import static org.junit.Assert.assertEquals;
* *
* @author Steve Ebersole * @author Steve Ebersole
*/ */
@FailureExpectedWithNewMetamodel(message = "@OneToOne with mappedBy specified is not supported yet")
public class ExpressionsTest extends AbstractMetamodelSpecificTest { public class ExpressionsTest extends AbstractMetamodelSpecificTest {
private CriteriaBuilder builder; private CriteriaBuilder builder;

View File

@ -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.jpa.test.metamodel.Order_; import org.hibernate.jpa.test.metamodel.Order_;
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
import org.hibernate.testing.TestForIssue; import org.hibernate.testing.TestForIssue;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
@ -51,7 +50,6 @@ import static org.junit.Assert.assertTrue;
* @author Steve Ebersole * @author Steve Ebersole
* @author Hardy Ferentschik * @author Hardy Ferentschik
*/ */
@FailureExpectedWithNewMetamodel
public class PredicateTest extends AbstractMetamodelSpecificTest { public class PredicateTest extends AbstractMetamodelSpecificTest {
private CriteriaBuilder builder; private CriteriaBuilder builder;

View File

@ -36,7 +36,6 @@ import org.hibernate.jpa.test.metamodel.AbstractMetamodelSpecificTest;
import org.hibernate.jpa.test.metamodel.Order; import org.hibernate.jpa.test.metamodel.Order;
import org.hibernate.jpa.test.metamodel.Thing; import org.hibernate.jpa.test.metamodel.Thing;
import org.hibernate.jpa.test.metamodel.ThingWithQuantity; import org.hibernate.jpa.test.metamodel.ThingWithQuantity;
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
@ -44,7 +43,6 @@ import static org.junit.Assert.assertEquals;
* @author Michael Rudolf * @author Michael Rudolf
* @author James Gilbertson * @author James Gilbertson
*/ */
@FailureExpectedWithNewMetamodel
public class AbstractPathImplTest extends AbstractMetamodelSpecificTest { public class AbstractPathImplTest extends AbstractMetamodelSpecificTest {
@Before @Before
public void prepareTestData() { public void prepareTestData() {

View File

@ -37,12 +37,10 @@ import org.hibernate.jpa.test.metamodel.LineItem;
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.jpa.test.metamodel.Order_; import org.hibernate.jpa.test.metamodel.Order_;
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
/** /**
* @author Steve Ebersole * @author Steve Ebersole
*/ */
@FailureExpectedWithNewMetamodel
public class ImplicitJoinTest extends AbstractMetamodelSpecificTest { public class ImplicitJoinTest extends AbstractMetamodelSpecificTest {
@Test @Test
public void testImplicitJoinFromExplicitCollectionJoin() { public void testImplicitJoinFromExplicitCollectionJoin() {

View File

@ -40,13 +40,11 @@ import org.hibernate.jpa.test.metamodel.LineItem;
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.jpa.test.metamodel.Order_; import org.hibernate.jpa.test.metamodel.Order_;
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
import org.hibernate.testing.SkipForDialect; import org.hibernate.testing.SkipForDialect;
/** /**
* @author Steve Ebersole * @author Steve Ebersole
*/ */
@FailureExpectedWithNewMetamodel
public class CorrelatedSubqueryTest extends AbstractMetamodelSpecificTest { public class CorrelatedSubqueryTest extends AbstractMetamodelSpecificTest {
@Test @Test
public void testBasicCorrelation() { public void testBasicCorrelation() {

View File

@ -35,7 +35,6 @@ import org.hibernate.jpa.test.metamodel.Customer;
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.jpa.test.metamodel.Order_; import org.hibernate.jpa.test.metamodel.Order_;
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
import org.junit.Test; import org.junit.Test;
@ -44,7 +43,6 @@ import static org.junit.Assert.fail;
/** /**
* @author Steve Ebersole * @author Steve Ebersole
*/ */
@FailureExpectedWithNewMetamodel
public class UncorrelatedSubqueryTest extends AbstractMetamodelSpecificTest { public class UncorrelatedSubqueryTest extends AbstractMetamodelSpecificTest {
@Test @Test
public void testEqualAll() { public void testEqualAll() {

View File

@ -36,7 +36,6 @@ import org.junit.Test;
import org.hibernate.jpa.test.metamodel.AbstractMetamodelSpecificTest; import org.hibernate.jpa.test.metamodel.AbstractMetamodelSpecificTest;
import org.hibernate.jpa.test.metamodel.Customer; import org.hibernate.jpa.test.metamodel.Customer;
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.assertEquals;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
@ -44,7 +43,6 @@ import static org.junit.Assert.assertTrue;
/** /**
* @author Emmanuel Bernard * @author Emmanuel Bernard
*/ */
@FailureExpectedWithNewMetamodel
public class TupleCriteriaTest extends AbstractMetamodelSpecificTest { public class TupleCriteriaTest extends AbstractMetamodelSpecificTest {
@Test @Test
public void testArray() { public void testArray() {

View File

@ -30,7 +30,6 @@ import javax.persistence.EntityManager;
import org.junit.Test; import org.junit.Test;
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail; import static org.junit.Assert.fail;
@ -38,7 +37,6 @@ import static org.junit.Assert.fail;
/** /**
* @author Emmanuel Bernard * @author Emmanuel Bernard
*/ */
@FailureExpectedWithNewMetamodel
public class MergeTest extends BaseEntityManagerFunctionalTestCase { public class MergeTest extends BaseEntityManagerFunctionalTestCase {
@Test @Test
public void testMergeWithIndexColumn() { public void testMergeWithIndexColumn() {