statement « MySQL « JPA Q&A





1. Does Hibernate support the limit statement in MySql?    stackoverflow.com

I am working on a project which uses Java,MySql,Struts2 MVC and Hibernate. I tried using limit statement in hql query but its not working properly.

Select t from table1 t where t.column1 ...

3. Using MySQL Case Statement In HQL    forum.hibernate.org

Hibernate version: 3.1.3 Full stack trace of any exception that occurs: org.hibernate.hql.ast.QuerySyntaxException: unexpected token: . near line 1, column 119 [select qtran.queue.queueName, qtran.queue.queueNo,sum(case qtran.transactionStatus when 'T' then 1 else 0 end) as java.util.Long,sum(case qtran.transactionStatus when 'M' then 1 else 0 end) as java.util.Long,sum(case qtran.transactionStatus when 'R' then 1 else 0 end) as java.util.Long from com.webexchange.model.transaction.Transactionmaster tm join transactions qtran where qtran.transactionDateOut ...