Top "Sessionfactory" questions

A main interface used by the application to obtain a Hibernate session.

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 …

java hibernate jpa sessionfactory hibernate-entitymanager
Could not open Hibernate Session for transaction / Cannot open connection

In my application, I have a module that is designed to search a database for users and display their information …

hibernate spring-mvc spring-security sessionfactory
org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'sessionFactory'

I am using spring and hibernate for configuration with mysql db. My we.xml file has following code : <?xml …

spring hibernate sessionfactory
Spring and hibernate: No Session found for current thread

im gettting the following error org.hibernate.HibernateException: No Session found for current thread at org.springframework.orm.hibernate4.SpringSessionContext.…

spring hibernate sessionfactory
Differences between session vs session factory - Hibernate?

Do we have any other differences other than the below? Also please validate whether the below are correct SessionFactory objects …

hibernate session sessionfactory
How can I set Datasource when I'm creating Hibernate SessionFactory?

I'm creating SessionFactory and I have my datasource as object in code where I'm creating SessionFactory, but i cannot set …

java hibernate sessionfactory
Spring-Hibernate : Illegal attempt to associate a collection with two open sessions

I am trying to update record in MySql Db. while updating it threw following exception org.hibernate.HibernateException: Illegal attempt …

java hibernate spring-mvc annotations sessionfactory
Spring Hibernate SessionFactory

How do you create a SessionFactory using the java config? @Bean public SessionFactory sessionFactory(){ AnnotationSessionFactoryBean sessionFactoryBean = new AnnotationSessionFactoryBean(); sessionFactoryBean.setConfigLocation(…

hibernate spring sessionfactory
Spring+Hibernate, Autowire sessionFactory into hibernate DAO

i have an Hibernate DAO, in according with Hibernate API 3 and Spring 3.x, I use simply a sessionFactory and NOT …

hibernate spring autowired sessionfactory
NoSuchBeanDefinitionException How to initialise SessionFactory bean?

I have a question. I tried to run my web application using Spring and Hibernate/ I have a strange error. …

java spring hibernate spring-mvc sessionfactory