开发者

newline character hqlhibernate) gives error

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜