On 30-Mar-2010 06:42, Wesley Wu wrote:
>      try {
>          ut.begin();
>          CourseBean updateCourse = _manager.find(CourseBean.class, new
> Integer(1));
>          updateCourse.setCourse("Magic");
>          ut.commit();
>      } catch (Exception e) {
>          e.printStackTrace();
>      }
>
> will work.
>
> -Wesley
>
>
>    
Thanks, but theres clearly something basic wrong here as that change 
made no difference. If I add

<property name="hibernate.show_sql" value="true"/>

to persistence.xml I see in the console

Hibernate: select coursebean0_.id as id0_0_, coursebean0_.course as 
course0_0_, coursebean0_.teacher as teacher0_0_ from basic_courses 
coursebean0_ where coursebean0_.id=?
Hibernate: select coursebean0_.id as id0_0_, coursebean0_.course as 
course0_0_, coursebean0_.teacher as teacher0_0_ from basic_courses 
coursebean0_ where coursebean0_.id=?

But no attempt at a write. Single stepping the code proves the 
transaction is being executed.

> _______________________________________________
> resin-interest mailing list
> [email protected]
> http://maillist.caucho.com/mailman/listinfo/resin-interest
>
>    




_______________________________________________
resin-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to