摘要:
问题一: 报错如下: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): com.tt.hibernate.n2n.It 阅读全文
摘要:
转载自:http://blog.csdn.net/wanghuan203/article/details/7562395 hibernate提供的主键生成策略,使我们可以在实体类的映射xml文件中设定关键字来告诉hibernate我们要使用的主键生成方式,然后hibernate会根据设定完成数据库的 阅读全文