Top "Hibernate-session" questions

A main Java interface to Hibernate persistence service.

Hibernate: Difference between session.get and session.load

From the API, I could see it has something to do with proxy. But I couldn't find a lot of …

hibernate proxy hibernate-session
Is Hibernate's session thread safe?

I need to know, whether the Hibernate's session is thread safe or not. But obvious a new session is attached …

java hibernate session thread-safety hibernate-session
How to flush data into db inside active spring transaction?

I want to test hibernate session's save() method using spring testing framework. @Test method is : @Test @Transactional public void testSave() { …

java hibernate spring-transactions spring-test hibernate-session
org.hibernate.service.UnknownServiceException: Unknown service requested

I am writing a unit test to for my AbstractHibernateRepository save method. I'm using spring test runner but I get …

java spring hibernate spring-test hibernate-session
Spring Transactions and hibernate.current_session_context_class

I have a Spring 3.2 application that uses Hibernate 4 and Spring Transactions. All the methods were working great and I could …

spring hibernate spring-transactions hibernate-session
How to properly close and open a Hibernate session?

I have the following method that inserts a large batch of records every few seconds. After some time of running …

hibernate transactions database-connection c3p0 hibernate-session
using current_session_context_class property hibernate 3 hibernate 4

I have an application with Spring and Hibernate3 running well in production. Following is the config for session factory in …

spring hibernate hibernate-session
Hibernate Session Factory

In our web application we have a HibernateSessionFactory class, that is opening and closing connections. Everything is okay, but when …

java mysql hibernate jakarta-ee hibernate-session
After session.close() connection is still active with Database

I am working with swing and hibernate. Now for retrive connection, I am using sessionFactory.openSession(). Once I done with …

hibernate dbconnection hibernate-session
Spring @Async: null hibernate session on LAZY collection

I'm using an @Async annotation on a service layer method. Everything works fine when I EAGERLY load @OneToMany collection fields, …

java spring hibernate hibernate-session