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
This commit is contained in:
parent
d2d3568323
commit
4dc46db783
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue