hibernate not support decode
这样的功能不用decode函数也能解决。可以使用to_char。
registerFunction("dateadd", new StandardSQLFunction("dateadd", Hibernate.TIMESTAMP));
---------------------------------------------------------------------------------------------------------------------------------
copyright:http://www.cnblogs.com/anee/