[hibernate-commits] Hibernate SVN: r18749 - core/trunk/annotations/src/test/java/org/hibernate/test/annotations/idclassgeneratedvalue.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Tue Feb 9 14:55:49 EST 2010


Author: steve.ebersole at jboss.com
Date: 2010-02-09 14:55:48 -0500 (Tue, 09 Feb 2010)
New Revision: 18749

Modified:
   core/trunk/annotations/src/test/java/org/hibernate/test/annotations/idclassgeneratedvalue/IdClassGeneratedValueTest.java
Log:
removed commented-out code


Modified: core/trunk/annotations/src/test/java/org/hibernate/test/annotations/idclassgeneratedvalue/IdClassGeneratedValueTest.java
===================================================================
--- core/trunk/annotations/src/test/java/org/hibernate/test/annotations/idclassgeneratedvalue/IdClassGeneratedValueTest.java	2010-02-09 19:54:39 UTC (rev 18748)
+++ core/trunk/annotations/src/test/java/org/hibernate/test/annotations/idclassgeneratedvalue/IdClassGeneratedValueTest.java	2010-02-09 19:55:48 UTC (rev 18749)
@@ -109,49 +109,8 @@
 		s.close();
 	}
 
-//	public void testComplexIdClass() {
-//		Session s = openSession();
-//		Transaction tx = s.beginTransaction();
-//
-//		Customer c1 = new Customer(
-//				"foo", "bar", "contact1", "100", new BigDecimal( 1000 ), new BigDecimal( 1000 ), new BigDecimal( 1000 )
-//		);
-//
-//		s.persist( c1 );
-//		Item boat = new Item();
-//		boat.setId( "1" );
-//		boat.setName( "cruiser" );
-//		boat.setPrice( new BigDecimal( 500 ) );
-//		boat.setDescription( "a boat" );
-//		boat.setCategory( 42 );
-//
-//		s.persist( boat );
-//		s.flush();
-//		s.clear();
-//
-//		c1.addInventory( boat, 10, new BigDecimal( 5000 ) );
-//		s.merge( c1 );
-//		s.flush();
-//		s.clear();
-//
-//		Customer c2 = (Customer) s.createQuery( "select c from Customer c" ).uniqueResult();
-//
-//		List<CustomerInventory> inventory = c2.getInventories();
-//
-//		assertEquals( 1, inventory.size() );
-//		assertEquals( 10, inventory.get( 0 ).getQuantity() );
-//
-//		tx.rollback();
-//		s.close();
-//
-//		assertTrue( true );
-//	}
-
 	protected Class[] getAnnotatedClasses() {
 		return new Class[] {
-//				Customer.class,
-//				CustomerInventory.class,
-//				Item.class,
 				Simple.class,
 				Simple2.class,
 				Multiple.class



More information about the hibernate-commits mailing list