hibernate-session Questions
4
Solved
I'm writing a multi-threaded application in Grails and the additional threads need access to GORM/Hibernate. When they try to access GORM I get the error "org.hibernate.HibernateException: No Hiber...
Hogshead asked 24/8, 2010 at 12:48
4
Solved
I'm using an @Async annotation on a service layer method.
Everything works fine when I EAGERLY load @OneToMany collection fields, but when I try to access LAZY loaded element I found that Hibernat...
Heyerdahl asked 1/8, 2014 at 15:11
8
Solved
I am writing a unit test to for my AbstractHibernateRepository save method. I'm using spring test runner but I get the following exception when it runs:
org.hibernate.service.UnknownServiceExcepti...
Implosive asked 20/10, 2014 at 15:25
4
I want to test hibernate session's save() method using spring testing framework.
@Test method is :
@Test
@Transactional
public void testSave() {
User expected = createUser();
getGenericDao().cur...
Mayamayakovski asked 23/6, 2013 at 17:40
4
Solved
I need to know, whether the Hibernate's session is thread safe or not. But obvious a new session is attached to every thread for execution. But my question is if in one thread I have updated some v...
Neidaneidhardt asked 23/9, 2010 at 11:24
1
I'm trying to understand better how Hibernate works...
I've a problem I cannot resolve.
When the application starts, it makes a query
Session session = HibernateUtil.getSessionFactory().getCurre...
Antevert asked 13/11, 2015 at 17:51
8
Solved
From the API, I could see it has something to do with proxy. But I couldn't find a lot of information on proxy and do not understand the difference between calling session.get and session.load. Cou...
Tony asked 4/3, 2009 at 1:36
1
Solved
I have an application with Spring and Hibernate3 running well in production. Following is the config for session factory in Spring's applicationContext.xml
<bean id="sessionFactory"
class="or...
Fantasm asked 9/11, 2013 at 11:38
1
Solved
I have a Spring 3.2 application that uses Hibernate 4 and Spring Transactions. All the methods were working great and I could access correctly the database to save or retrieve entities.
Then, I in...
Chromatin asked 16/9, 2013 at 16:25
3
Solved
I am aware of the fact that Session is first level cache used by Hibernate, and once we retrieve an entity from the session, the subsequent get calls for the same entity with same identifier is fet...
Heffron asked 10/9, 2013 at 14:28
1
© 2022 - 2024 — McMap. All rights reserved.