From: <one...@us...> - 2002-12-25 04:16:39
|
Update of /cvsroot/hibernate/Hibernate/cirrus/hibernate/test In directory sc8-pr-cvs1:/tmp/cvs-serv27566/hibernate/test Modified Files: MultiTableTest.java Log Message: fk constraint generation between <joined-subclass> tables Index: MultiTableTest.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/test/MultiTableTest.java,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** MultiTableTest.java 25 Dec 2002 01:02:16 -0000 1.17 --- MultiTableTest.java 25 Dec 2002 04:16:37 -0000 1.18 *************** *** 20,23 **** --- 20,38 ---- } + public void testConstraints() throws Exception { + Session s = sessions.openSession(); + Transaction t = s.beginTransaction(); + SubMulti sm = new SubMulti(); + sm.setAmount(66.5f); + s.save( sm, new Long(2) ); + t.commit(); + s.close(); + s = sessions.openSession(); + s.delete( "from sm in class SubMulti" ); + t = s.beginTransaction(); + t.commit(); + s.close(); + } + public void testMultiTable() throws Exception { Session s = sessions.openSession(); |