我想持久化一个包含复合主键的实体。连接到数据库并创建它工作的表,但插入新行失败。@2083f3ec12:01:14,853 INFO Version:54 - HHH000412: Hibernate Core {4.3.6.Final}
12:01:14,855 INFO Environment:table if exists studen
我有两个实体,比如汽车和引擎(只是例子名称,但逻辑是一样的)。: could not execute query; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.DataException根据JPA文档,它应该以同样的方式工作(至少我是预料到的)。我的环境: PostgreSQL 9,SpringFrame3.1,Hibernate 3.6.8,Spring,Tomc