Tags » Hibernate Problem

Could not open Hibernate Session for transaction

This problem happens when the connection to the database is disconnected or was not created at all by the application, but pool assumes connection is established. 29 more words

Java Web

Problem Hibernate di Windows XP

Hibernate atau hibernasi adalah salah satu fitur yang memungkinkan anda mematikan komputer anda walaupun aplikasi-aplikasi dalam keadaan tebuka. Dengan fitur ini semua status pada pemakaian terakhir anda (semua program dan dokumen yang sedang anda buka) ke hardisk sehingga semua program dan dokumen tersebut dapat dengan otomatis dibuka ketika komputer menyala lagi. 162 more words

Hibernate

Problem Hibernate di Windows XP

Hibernate atau hibernasi adalah salah satu fitur yang memungkinkan anda mematikan komputer anda walaupun aplikasi-aplikasi dalam keadaan tebuka. Dengan fitur ini semua status pada pemakaian terakhir anda (semua program dan dokumen yang sedang anda buka) ke hardisk sehingga semua program dan dokumen tersebut dapat dengan otomatis dibuka ketika komputer menyala lagi. 162 more words

Tips N Tricks

HibernateSystemException- Don't change the reference to a collection with cascade="all-delete-orphan"

This is not an error which I got. This is an error that bugged one of my friend for a few days.

The error is… 390 more words

Hibernate

Hibernate error : org.hibernate.hql.ast.QuerySyntaxException: unexpected end of subtree

Update: Look at the comments for more information and possible solutions.

I got this error today.

Caused by: org.hibernate.hql.ast.QuerySyntaxException: unexpected end of subtree 
	at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:31)
	at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:24)
	at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:59)
	at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:235)
	at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160)
	at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
	at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:77)
	at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56)
	at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)
	at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
	at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1113)
	at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
	at com.test.FruitDAOServiceImpl.fruitCount(FruitDAOServiceImpl.java:682)
	at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
	at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)</code>
… 229 more words
Hibernate

org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing:

I was getting this error today.
org.hibernate.TransientObjectException: object references an unsaved transient instance – save the transient instance before flushing:This is the problemTable A was referring to the talbe B using a foreign key… 234 more words

Hibernate

ORA-01747: invalid user.table.column, table.column, or column specification

Today I got this error.

ORA-01747: invalid user.table.column, table.column, or column specification.

There could be many reasons why you can get this error. But the basic reason is the query which is finally getting executed to your database is wrong in some way. 183 more words

Hibernate