this would be my query: SELECT DISTINCT name FROM city; this is my code at the moment: public List<City> listCities() {
I have this code: SessionFactory sessionFactory = new Configuration().configure(\"hibernate.cfg.xml\");
i\'m trying to run java application as a windows service with tomcat 7. in this application i have database connection to MySql with Hibernate. when i ran the 开发者_C百科tomcat it stops in this line:
I am using Hibenate along with Struts 1.3 I am getting an error \"org.hibernate.SessionException: Session is closed\".
Suppose I programmatically create a AnnotationSessionFactoryBean and set the various properties correctly. How can I then extract the Hibernate SessionFactory, since all methods that pertain to creati
I\'m just pla开发者_开发知识库ying around with implementing Hibernate as persistence provider in Glassfish application server. I already configured JNDI datasource, connection pool etc. My Hibernate c
I am new to Hibernate and I\'m not sure whether to use a Hibernate SessionFactory or a JPA EntityManagerFactory to create a Hibernate Session.
I have the following SessionFactory for Fluent NHibernate. I am getting an error of An invalid or incomplete configuration was used while creating a SessionFactory.
We have a system with n number of clients (55 at this time) where each client gets their own database all of which have the exact same schema. We are running hibernate 3.6.1 backed by a distributed eh
I\'ve been following this tutorial: http://www.scribd.com/doc/25244173/Java-Struts-Spring-Hibernate-Tutorial