本月博客排行
-
第1名
arpenker -
第2名
kaizi1992 -
第3名
wy_19921005
年度博客排行
-
第1名
龙儿筝 -
第2名
宏天软件 -
第3名
青否云后端云 - wallimn
- vipbooks
- gashero
- wy_19921005
- benladeng5225
- fantaxy025025
- javashop
- e_e
- tanling8334
- arpenker
- sam123456gz
- kaizi1992
- zysnba
- xiangjie88
- lemonhandsome
- ganxueyun
- xyuma
- Xeden
- wangchen.ily
- zhanjia
- jh108020
- johnsmith9th
- zxq_2017
- jbosscn
- forestqqqq
- ajinn
- daizj
- xpenxpen
- wjianwei666
- ranbuijj
- 喧嚣求静
- kingwell.leng
- silverend
- lchb139128
- kristy_yy
- jveqi
- lich0079
- lzyfn123
- java-007
- sunj
- yeluowuhen
- lerf
- xiaoxinye
- flashsing123
- lxguy
- zhangjijun
- lyndon.lin
最新文章列表
hibernate Annotation 字段注释
API查看 http://docs.jboss.org/hibernate/orm/4.1/javadocs/
另外http://solonote.iteye.com/blog/215093
的@Formula在项目中也很实用
还有一些常用的注解 链接http://ycx211314.blog.163.com/blog/static/1016708620113261581398/
...
hibernate 注解字段默认值
今天终于把这个问题给解决了。。呵呵,hibernate 注解字段默认值的设置: @Column(name="ISPUBLIC" ,nullable=false,columnDefinition="INT default 0") private int isPublic;
注意字段的类型必须指定,因为hibernate 会把colu ...