annotation boolean
来源:互联网 发布:ecshop 打印sql语句 编辑:程序博客网 时间:2024/06/03 16:20
As @Arthur said it maps to Number(1)
which would be the standard sql bit where 0 == false
and 1 == true
. As an alternative you can map char(1)
to 'T' or 'F' like this
@org.hibernate.annotations.Type(type="true_false")@NotNullboolean myBoolean;
or map it to 'Y' or 'N'
@org.hibernate.annotations.Type(type="yes_no")@NotNullboolean myBoolean;
0 0
- annotation boolean
- Boolean
- annotation
- Annotation
- Annotation
- Annotation
- Annotation
- Annotation
- Annotation
- Annotation
- annotation
- Annotation
- Annotation
- @Annotation
- Annotation
- Annotation
- Annotation
- Annotation
- gksudo
- 绝对值排序
- ExtJS4 布局及边框
- 适配器模式-Adapter
- 用正则表达式验证用户名
- annotation boolean
- UVa 297 - Quadtrees解题报告
- IOS在后台每隔一段时间执行一下
- 2012蓝桥杯【初赛试题】 取球游戏
- C#中Dispose、析构函数的区别
- ios voip
- 打印
- 解决Strict Standards: Only variables should be passed by reference
- Read Phone Number