hibernate不能实现的数据库函数怎么使用呢
来源:互联网 发布:美团大数据 编辑:程序博客网 时间:2024/06/11 05:17
重写hibernate方言
package com.ayu.hibernate.test;
import org.hibernate.Hibernate;
import org.hibernate.dialect.MySQLDialect;
import org.hibernate.dialect.function.StandardSQLFunction;
public class AyuMySQLDialect extends MySQLDialect {
protected void registerVarcharTypes() {
registerFunction("group_concat", new StandardSQLFunction("group_concat",Hibernate.STRING));
}
}
<prop key="hibernate.dialect">com.ayu.hibernate.test.AyuMySQLDialect</prop>
hql语句:select f.fid,group_concat(f.fname) from Fund f group by f.user.uid
- hibernate不能实现的数据库函数怎么使用呢
- 怎么使用数据库呢123412341234
- 腾讯风铃怎么连接数据库的呢
- csdn.com怎么不能使用了呢????莫非是被黑掉了?
- 怎么使用class使用hibernate的插入数据到数据库
- darken函数是怎么计算的呢?
- 提问的时候怎么不能上传图片呢。。。
- 为什么可能导致睡眠的函数都不能在中断上下文中使用呢
- 使用Hibernate 创建数据表时,如何使数据库中的字段的长度和Hibernate映射的长度相等呢?
- 使用Hibernate 创建数据表时,如何使数据库中的字段的长度和Hibernate映射的长度相等呢?
- 火车票的系统数据库应该怎么设计呢
- hibernate 为什么可以发出insert语句,却不能完全保存到数据库呢?
- 选择排序怎么实现呢?
- 怎么实现一个线程安全的单例模式呢?
- 怎么把数组转化成字符串呢?有没有现成的函数呢?
- 怎么发布使用了dll的Activex呢?
- 我们要怎么选择家庭使用的防水材料呢?
- 怎么解决STM32(MDK)中不能使用printf()函数的问题
- 关于DirectShow中摄像头的帧率设置
- ExpandableListActivity使用findViewById查找child中view的时序问题
- IE6的浮动float时3px问题
- 软件测试的方法
- 软件开发的4种模型和4种方法
- hibernate不能实现的数据库函数怎么使用呢
- s3c6410的UART设备驱动(2)
- 图像编程---borderlayout
- C# win7下获取ip地址
- 现实世界的Windows Azure:采访IDV解决方案的副总经理Scott Caulk
- ps用到的一些操作
- Squid
- socket编程中的memset函数的作用是什么
- 多分享,成就多彩人生