开发者

newline character hqlhibernate) gives error

开发者 https://www.devze.com 2023-02-10 04:22 出处:网络
I building a hibernate query which needs have a newline character in it. It give unrecognized token. How to use newline characters in hq开发者_开发技巧l.You can use a newline \\n character which can

I building a hibernate query which needs have a newline character in it. It give unrecognized token.

How to use newline characters in hq开发者_开发技巧l.


You can use a newline \n character which can be stored in the db and used in a hibernate query.

Query query = session.createQuery("from Table where column = :column_name"); query.setParameter("column_name", "...\n...");

0

精彩评论

暂无评论...
验证码 换一张
取 消