sessionfactory
Select distinct with Spring Hibernate Sessionfactory
this would be my query: SELECT DISTINCT name FROM city; this is my code at the moment: public List<City> listCities() {[详细]
2023-04-05 07:48 分类:问答How to configure this code as spring Bean?
I have this code: SessionFactory sessionFactory = new Configuration().configure(\"hibernate.cfg.xml\");[详细]
2023-04-04 11:15 分类:问答Java app as windows service with database connection
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:[详细]
2023-03-27 21:18 分类:问答Hibernate is giving Session is closed exception
I am using Hibenate along with Struts 1.3 I am getting an error \"org.hibernate.SessionException: Session is closed\".[详细]
2023-03-20 13:20 分类:问答Programmatically create SessionFactory in Spring
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[详细]
2023-03-16 16:28 分类:问答Can't find Hibernate's SessionFactory in my Glassfish app server
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[详细]
2023-03-08 11:56 分类:问答Hibernate SessionFactory vs. JPA EntityManagerFactory
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.[详细]
2023-02-24 09:03 分类:问答How to make this thread-safe
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.[详细]
2023-02-18 19:04 分类:问答How to run multiple Hibernate SessionFactories with the SAME db schema using a distributed Ehcache
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[详细]
2023-02-17 19:06 分类:问答Hibernate and Spring - load operations do the trich, update/delete operations don't
I\'ve been following this tutorial: http://www.scribd.com/doc/25244173/Java-Struts-Spring-Hibernate-Tutorial[详细]
2023-02-16 15:27 分类:问答