keyword « MySQL « JPA Q&A





1. NHibernate and MySql Keywords    stackoverflow.com

Why Nibernate HQL can not handle the following query:

from Deal D where (D.ApprovalDate + INTERVAL 1 Year) < current_timestamp() <  (D.RenewalDate + INTERVAL -1 Year) 
knowing that INTERVAL and YEAR ...

2. Generated SQL contains MySQL keyword    forum.hibernate.org

Unfortunatly I'm having a problem with Hibernate that I cannot find in the documentation or forums. I have a table in MySQL which holds a column which is named 'fulltext'. When hibernate generates the SQL for my query the following SQL is generated: select content0_.fulltext as fulltext ... however 'fulltext' is considered as a KEYWORD in MySQL. How can I get ...

3. mysql AGAINST keyword    forum.hibernate.org

Hibernate version: 3.0 Full stack trace of any exception that occurs: [SELECT new Ad (ad.id, ad.date, ad.showImage, ad.headline, ad.region, ad.category, ad.price) FROM com.buysell.server.model.Ad ad WHERE MATCH (maintext,headline) AGAINST ('(searchwords )' IN BOOLEAN MODE) AND ad.status = '1' AND ad.buysell = '2' order by ad.date desc]; nested exception is org.hibernate.hql.ast.QuerySyntaxError: unexpected token: AGAINST near line 1, column 161 [SELECT new Ad (ad.id, ...