![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ssh
楚汐
Man is borned free
展开
-
Hibernate4.2 枚举映射问题
把以前的项目用Hibernate4.2 更新后出现了一系列问题。笔者是hibernate-release-4.2.2.Final版本折腾时间最久的便是关于枚举映射问题。在做了个Gender的枚举类之后,采用xml方式配置hbm文件: <!-- 12为java.sql.Types.VARCHAR常量值,即保存枚举的字面值到数据原创 2013-07-15 17:46:55 · 983 阅读 · 0 评论 -
精度数学,mysql
精度数学目录24.1. 数值的类型24.2. DECIMAL数据类型更改24.3. 表达式处理24.4. 四舍五入24.5. 精度数学示例MySQL 5.1提供了对精度数学的支持,也就是说,数值处理功能,它能给出极其精确的结果,并能对无效值进行高度控制。精度数学基于下述两种特性:· SQL模式,控制服务器接受或拒绝无效值的严格程度(请参见5.翻译 2013-11-28 12:32:19 · 885 阅读 · 0 评论 -
SessionFactory的一些细节
What does sessionFactory.getCurrentSession() do? First, you can call itas many times and anywhere youlike, once you get hold of your SessionFactory (easy thanks toHibernateUtil). The getCurrentS转载 2013-11-28 12:39:01 · 705 阅读 · 0 评论