From 4dc46db78371d5fa145ca32e6110dfa7ac69afec Mon Sep 17 00:00:00 2001 From: Hardy Ferentschik Date: Thu, 17 Sep 2009 17:36:24 +0000 Subject: [PATCH] JBPAPP-1075 - Removed unique constraint on order number. Also removed an empty test method. git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17524 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- .../hibernate/test/annotations/manytoone/ManyToOneTest.java | 6 +----- .../org/hibernate/test/annotations/manytoone/Order.java | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/annotations/src/test/java/org/hibernate/test/annotations/manytoone/ManyToOneTest.java b/annotations/src/test/java/org/hibernate/test/annotations/manytoone/ManyToOneTest.java index 82574d1d35..ff56db2abf 100644 --- a/annotations/src/test/java/org/hibernate/test/annotations/manytoone/ManyToOneTest.java +++ b/annotations/src/test/java/org/hibernate/test/annotations/manytoone/ManyToOneTest.java @@ -208,7 +208,7 @@ public class ManyToOneTest extends TestCase { s = openSession(); tx = s.beginTransaction(); - //FIXME: fix this when the small parser bug will be fixed + //FIXME: fix this when the small parser bug will be fixed Query q = s.createQuery( "from " + Child.class.getName() ); //+ " c where c.parent.id.lastName = :lastName"); //q.setString("lastName", p.id.lastName); List result = q.list(); @@ -249,10 +249,6 @@ public class ManyToOneTest extends TestCase { s.close(); } - public void testManyToOneAndIdClass() throws Exception { - - } - public void testManyToOneNonPk() throws Exception { Session s = openSession(); Transaction tx = s.beginTransaction(); diff --git a/annotations/src/test/java/org/hibernate/test/annotations/manytoone/Order.java b/annotations/src/test/java/org/hibernate/test/annotations/manytoone/Order.java index 61ae00cd44..fd9f110eb0 100644 --- a/annotations/src/test/java/org/hibernate/test/annotations/manytoone/Order.java +++ b/annotations/src/test/java/org/hibernate/test/annotations/manytoone/Order.java @@ -30,7 +30,7 @@ public class Order implements Serializable { this.id = id; } - @Column(name="order_nbr", unique = true) + @Column(name="order_nbr") public String getOrderNbr() { return orderNbr; }