liferay « Session « JPA Q&A





1. HELP!: No Hibernate Session bound to thread    liferay.com

I have extended a table by adding few aditional fields as described in wiki. I am getting this error: 10:36:02,953 ERROR [HibernateUtil:204] Caught HibernateException 10:36:02,968 ERROR [HibernateUtil:210] org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here ...

2. Caused by: org.hibernate.HibernateException: No Hibernate Session bound to    liferay.com

Hi Guys, I am new to LIferay and using version 5.1. I need to run a custom query. Below are the steps I followed. 1. Added my custom query in 'announcements.xml' file under 'sr/custom-sql/announcements.xml' 2. Added finder method name in 'AnnouncementFinder' interface. findByAgroup(int group) throw SystemException; 3. Gave implementation in "AnnouncementFinderImpl' which extends findByAgroup(int group) throws SystemException ...

3. Hibernate session    liferay.com

First if you want to use liferay data you can use *ServiceUtil or *LocalServiceUtil for example you want to use liferay user table also you do UserLocalService service = UserLocalServiceUtil.getService(); so you have an service whic you can do everthing - read or update ... - with this service. Second if you want to use liferay hibernate session for your own ...

4. Sharing one Hibernate's SessionFactory instance through portlets    liferay.com

Hi there! First of all, I do apologize for my poor english. I am a new user of Liferay, and I have a problem in developing portlets on our portal implementation (using Liferay 5.2 with tomcat). I looked for a solution over this forum, and I found some threads concerning similar issues, like One Hibernate connection for mutiple portlets and Sharing ...

5. Hibernate session problem in liferay    liferay.com

Hi, i have change below code which in SessionFactoryInvocationHandler.java so that i am able to get hibernate session to access database using query. session = (Session)SessionFactoryUtils.doGetSession( (SessionFactory)proxy, true); The default value for doGetSession((SessionFactory)proxy,false). After i change it to true, i am able to get session and access database. However, i discover another problem which the liferay server will be ...

6. org.hibernate.HibernateException: No Hibernate Session bound to thread, and    liferay.com

Hi All, I am getting an exception org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here when i am trying to connect to another database , my custom data base not the one by liferay. Configured the propeties in portal-ext.properties and used service bulder concept when i try to get the data form ...