hibernate框架int和Integer类型区别

hibernate 框架在定义实体时,int类型最好定义为Inttger类型,因为在注入时int是值类型不允许为空。

posted @ 2016-04-14 23:38  Zshun  阅读(408)  评论(0编辑  收藏  举报