hibernate annotation
對(duì)于使用默認(rèn)值,在get方法上面添加columnDefinition="int default 'value',替換value(這里是以int為例)對(duì)于int不為空的情況,在get方法上添加nullable=true
使用動(dòng)態(tài)更新或是動(dòng)態(tài)插入方法
@Entity
@org.hibernate.annotations.Entity(dynamicUpdate=true)
posted on 2011-06-20 14:22 duduli 閱讀(425) 評(píng)論(0) 編輯 收藏 所屬分類: SSH/SSH2