As requested I wrote a test that consisted of the following code...

Injected session:

  | @PersistenceContext(unitName="PicsEM")
  | Session session;
  | 

Method content:

  | try
  | {
  |     Statement s = this.session.connection().createStatement();
  |     String del = "DELETE FROM ZCOREINV.COUNTRY WHERE ZCOREINV.COUNTRY.ID = 
'158';";
  |     s.execute(del);
  |     this.session.close();
  | }
  | catch (HibernateException e)
  | {
  |     e.printStackTrace();
  | }
  | catch (SQLException e)
  | {
  |     e.printStackTrace();
  | }
  | 


The test failed in exactly the same way as before.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006725#4006725

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006725
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to