当前位置:
代码迷
>>
J2SE
>> hibernate 映射sql server中的binary字段做主键解决思路
详细解决方案
hibernate 映射sql server中的binary字段做主键解决思路
热度:
86
发布时间:
2016-04-24 13:48:52.0
hibernate 映射sql server中的binary字段做主键
各位,我有一个表它的主键就是binary类型的,但在hibernate里我应该如何映身它呢。因为hibernate好像是不支持binary作为它的主键的。强制把它转成string。我发现它就不可以通过关系找到各它有关系的表了。请问各位有什么主意吗
------解决方案--------------------
关注一下。等待高手回答。
------解决方案--------------------
不太清楚,如果实在不可以的话可以选择使用其它类型的主键阿
查看全文
相关解决方案
hibernate 存入数据库当前时间
Hibernate 投射文件中length属性无法改变integer字段的默认长度
Exception in thread "main" org.hibernate.HibernateException: /hibernate.cfg.xml解决办法
myeclipse联接sql server 2008看不到用户表
hibernate DAO中加了局物,未提交
hibernate 字段lazy 的兑现原理
Hibernate 的query.list()的有关问题
Server Tomcat v7.0 Server不能起步
Hibernate 关联表字段赋值有关问题
零配置的有关问题(struts2+Hibernate)
hibernate 连接 oracle session 有关问题
hibernate 中没有做一对多 , 那种关联映射的关联的话如何做连接查询
hibernate 联接mysql出错
大神们开始觅错啦!org.hibernate.exception.SQLGrammarException: could not execute query
struts2,hibernate,spring3 常用框架的API CHM版本,该怎么处理
struts2,hibernate,spring3 惯用框架的API CHM版本
在哪找的SQL Server 2005数据库驱动文件?为什么sql server2005安装盘上面没有找到
struts hibernate 测试小例子 不报错 但数据库没反应 求分析项目在小弟我的资源里面
The server encountered an internal error () that prevented it from fulfilling th解决方案
struts2 hibernate 分页有关问题
hibernate与此同时使用多数据源?spring+hibernate
hibernate 保留对象时,根据映射文件,无法获取主键值
hibernate 多对多添加有关问题,弄一天多了,请求大佬解答。小的 在此谢过了
struts + hibernate 后台页面修改数据后,前台页面显示的内容新旧数据交替出现。请高手帮忙分析上原因
hibernate 多对1关联配置有关问题
Hibernate,级联保存为何无效?
hibernate 一对1 ,插入不进去数据
hibernate 连接oracle异常
struts+spring+hibernate 开发,在action层调用service层接口,结果替null 注入失败,需高手帮忙
Hibernate 映射有关问题