使用Hibernate时产生如下异常:org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save():
可能是主键生成策略出错或没有写。
使用Hibernate时产生如下异常:org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save():
可能是主键生成策略出错或没有写。