3.0 Jboss 4.0
Code between sessionFactory.openSession() and session.close():
Tried several ways but at last trying.
factory = (configuration calls)buildSessionFactory();
session = factory.getCurrentSession().
I used a threadLocal variable and just a plain old static with the same results
Full stack trace of any exception that occurs:
Can't print full but succeful on binding JNDI then next is this WARN
[org.apache.hibernate.SessionFactoryObjectFactory] InitialContext does not implement Event Context.
Then continues on and creates my sql and says that is opens a prepared statement but the select does not retrieve anything back from db and should get one object returned.
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt: