数据库中值不能重复之hibernate配置
摘要:
当code 和name在数据库中不允许重复的时候 加上unique="true"就行了。 <property name="code" type="string" unique="true"> <column name="code" length="20"/> </property> <propert 阅读全文
posted @ 2018-04-14 15:14 Jesseylove 阅读(978) 评论(0) 推荐(0) 编辑