摘要:
转载 一、JPA通用策略生成器 通过annotation来映射hibernate实体的,基于annotation的hibernate主键标识为@Id, 其生成规则是由@GeneratedValue设定的。这里的@id和@GeneratedValue都是JPA的标准用法。 JPA提供四种标准用法,由@ 阅读全文
摘要:
主键使用字符串过长 bean属性中有关键字 hibernate.cfg.xml文件中缺少了一个自动创建数据库表的语句:<property name="hibernate.hbm2ddl.auto">update</property> 检查setter//getter方法,看是否有例如boolean属 阅读全文