設置默認值@Column(name="state",columnDefinition="tinyint default 0") private Integer state=0; columnDefinition在創建表的時候使用.
確定! 回上一頁