Author: stliu
Date: 2010-01-04 14:10:05 -0500 (Mon, 04 Jan 2010)
New Revision: 18402
Modified:
annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/EntityTest.java
Log:
JBPAPP-3327 org.hibernate.test.annotations.EntityTest.testColumn() is incorrect
Modified:
annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/EntityTest.java
===================================================================
---
annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/EntityTest.java 2010-01-04
19:03:05 UTC (rev 18401)
+++
annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/EntityTest.java 2010-01-04
19:10:05 UTC (rev 18402)
@@ -76,7 +76,7 @@
s = openSession();
tx = s.beginTransaction();
firstOne = new Flight();
- firstOne.setId( new Long( 1 ) );
+ firstOne.setId( new Long( 2 ) );
firstOne.setName( null );
try {
@@ -94,9 +94,7 @@
//insert an object and check that name is not updatable
s = openSession();
tx = s.beginTransaction();
- firstOne = new Flight();
- firstOne.setId( new Long( 1 ) );
- firstOne.setName( "AF3202" );
+ firstOne = (Flight) s.get( Flight.class, new Long( 1 ) );
firstOne.setTriggeredData( "should not be insertable" );
tx.commit();
s.close();