count((follow0_.FOLLOWING_ID, follow0_.USER_ID))
이런식으로 생성된다.
<property name="hibernate.use_sql_comments">true</property> Query query = ...; query.setComment("Some comment here");
Hibernate.initialize(entity.getLazyCollection());
형태를 사용해본다.\\:
으로 이스케이프하면 된다.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