*******************************
Query using Hibernate Query Language
Hibernate: select insurance0_.ID as col_0_0_ from insurance
insurance0_ where (insurance0_.ID='1')
ID: 1
Hibernate: select insurance0_.ID as ID0_, insurance0_.insurance_name
as insurance2_2_0_, insurance0_.invested_amount as invested3_2_0_,
insurance0_.investement_date as investem4_2_0_ from insurance
insurance0_ where insurance0_.ID=?
Name: Car Insurance
*******************************
Where Clause With Select Clause
Hibernate: select insurance0_.ID as col_0_0_,
insurance0_.insurance_name as col_1_0_, insurance0_.invested_amount as
col_2_0_, insurance0_.investement_date as col_3_0_ from insurance
insurance0_ where (insurance0_.ID='1')
ID: 1
Name: Car Insurance
*******************************
Current Comments
8 comments so far (post your own) View All Comments Latest 10 Comments:Have you tried using antlr-2.7.6.jar in the classpath...
This will help, as i was having same exception, Now it's working fine..
-Saket
Posted by Saket on Friday, 12.14.07 @ 17:31pm | #42261
You can copy antlr-2.7.6.jar in your classpath.
This will help, as i was getting the same, but now..it's working fine..
Posted by Saket on Friday, 12.14.07 @ 17:28pm | #42260
u have to diaplay the java
Posted by k.v.s.s.Prasad on Thursday, 07.12.07 @ 14:44pm | #21138
I am experiencing a prob while tryign to execute a select query. It throws "Object not mapped" error in createQuery() statement. I have the mapping xml & appropriate java object...
Following is the code:
String qryString =
" FROM USERS AS USR " +
" WHERE USR.LOGIN_NAME = '" + userData.getLoginName() + "'" +
" AND USR.PASSWORD = '" + userData.getPassword() + "'";
Query hbnQry = session.createQuery(qryString);
Please help.
Posted by ganesh on Wednesday, 06.20.07 @ 17:29pm | #19789
Exception in thread "main" java.lang.NoClassDefFoundError: antlr/ANTLRException
at org.hibernate.hql.ast.ASTQueryTranslatorFactory.createQueryTranslator(ASTQueryTranslatorFactory.java:35)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:72)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:54)
at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:71)
at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1583)
at hiber.SelectHQLExample.main(SelectHQLExample.java:29)
Java Result: 1
while running this example
Posted by soumita roy on Tuesday, 05.22.07 @ 16:08pm | #17007
how doi install hybernate without a database.is it possible to work local by adding jars to the classpath
Posted by bhavesh thanki on Monday, 02.19.07 @ 21:02pm | #8400
very awesome tutorial for beginners.but they have to be precise on what saying
Posted by NewEncodings on Tuesday, 02.13.07 @ 17:42pm | #7761
Deepak there is no need for creating preparestatement isn't it?
Posted by janardhan on Tuesday, 12.12.06 @ 12:01pm | #880