Note that HHH-2697 is now fixed for Hibernate 4.1.3 You can now escape with backslash:
SELECT k.`news_master_id` AS id, @row \:= @row + 1 AS rownum
FROM keyword_news_list k
JOIN (SELECT @row \:= 0) r
WHERE k.`keyword_news_id` = :kid
ORDER BY k.`news_master_id` ASC
More Related Contents:
- Hibernate 5 :- org.hibernate.MappingException: Unknown entity
- Using Hibernate’s ScrollableResults to slowly read 90 million records
- The server time zone value ‘AEST’ is unrecognized or represents more than one time zone
- Unable to get spring boot to automatically create database schema
- Hibernate: Automatically creating/updating the db tables based on entity classes
- No Dialect mapping for JDBC type: 1111
- @GeneratedValue polymorphic abstract superclass over MySQL
- Spring boot JPA insert in TABLE with uppercase name with Hibernate
- Can Hibernate work with MySQL’s “ON DUPLICATE KEY UPDATE” syntax?
- Spring, Hibernate, Blob lazy loading
- Enum in Hibernate, persisting as an enum
- When are connections returned to the connection pool with Spring JPA (Hibernate) Entity Manager?
- Hibernate Criteria Query to get specific columns
- com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed
- SQL Error: 0, SQLState: 08S01 Communications link failure [duplicate]
- Invalid syntax error “type= MyISAM” in DDL generated by Hibernate
- Hibernate: Create Mysql InnoDB tables instead of MyISAM
- No matter what, I can’t batch MySQL INSERT statements in Hibernate
- com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source
- org.hibernate.InstantiationException: No default constructor for entity: : principal.Cliente
- Is there a more efficient way of making pagination in Hibernate than executing select and count queries?
- How to setup Hibernate to read/write to different datasources?
- Hibernate Criteria API: get n random rows
- Unable to get multiple Table entities through Stored procedure using hibernate
- Make hibernate backquote all table / column names
- “EEE MMM dd HH:mm:ss ZZZ yyyy” date format to java.sql.Date
- How should equals and hashcode be implemented when using JPA and Hibernate
- Can add extra field(s) to @ManyToMany Hibernate extra table?
- @BatchSize a smart or stupid use?
- TransactionRequiredException Executing an update/delete query