Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.html
I have a java webstart application where I retrieve objects from my webserver via tomcat. Hibernate operates in a servlet to retrieve my database information (JDBC) and then my servlet container sends it back to me in a Https session. My question is, would it be better to have all my hibernate sql statement reside on the webserver in the servlets or should I send over the statement from the application. If I save all the statements on the webserver, then I must uniquely identify each method that will retrieve the correct class. If I send over the sqlhibernate statement, I can build a generic servlet to return just about any list or set of classes.
Which is better?