Update of /cvsroot/hibernate/HibernateExt/metadata/src/test/org/hibernate/test/annotations/inheritance
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32558/metadata/src/test/org/hibernate/test/annotations/inheritance
Modified Files:
SubclassTest.java
Log Message:
ANN-223 generate disc value even for integers and raise an exception for chars
ANN-240 inital work, need test and refinement for @Embeddable
Index: SubclassTest.java
===================================================================
RCS file: /cvsroot/hibernate/HibernateExt/metadata/src/test/org/hibernate/test/annotations/inheritance/SubclassTest.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- SubclassTest.java 12 Feb 2006 11:37:55 -0000 1.9
+++ SubclassTest.java 13 Feb 2006 18:18:25 -0000 1.10
@@ -100,32 +100,6 @@
s.close();
}
- public void testDefault() throws Exception {
- Session s;
- Transaction tx;
- s = openSession();
- tx = s.beginTransaction();
- Fruit f = new Fruit();
- Apple a = new Apple();
- s.persist(f);
- s.persist(a);
- tx.commit();
- s.close();
-
- s = openSession();
- tx = s.beginTransaction();
- assertEquals( 1, s.createQuery( "select count(*) from Fruit f where f.class = 'Apple'").uniqueResult() );
- List result = s.createCriteria(Fruit.class).list();
- assertNotNull(result);
- assertEquals( 2, result.size() );
- Fruit f2 = (Fruit) result.get(0);
- checkClassType(f2, f, a);
- f2 = (Fruit) result.get(1);
- checkClassType(f2, f, a);
- tx.commit();
- s.close();
- }
-
public void testFormula() throws Exception {
Session s;
Transaction tx;
|