【发布时间】:2011-12-02 11:34:19
【问题描述】:
我正在尝试在休眠中使用 mysql find_in_set 字符串函数,但不幸的是我无法使用它,甚至尝试通过创建这些寄存器函数来尝试
registerFunction("findInSet",newSQLFunctionTemplate(Hibernate.STRING,"FIND_IN_SET(?1,?2)"));
registerFunction("findInSet",newSQLFunctionTemplate(Hibernate.INTEGER,"FIND_IN_SET(?1,?2)"));
registerFunction("findInSet",new StandardSQLFunction("find_in_set", Hibernate.INTEGER));
使用 mysqldialect 但没有人在工作..谁能告诉我如何在休眠中使用 mysql 字符串函数。或对上述寄存器功能的任何更改。
提前致谢,
最好的问候, 拉贾。
【问题讨论】:
标签: java mysql string hibernate function