报错代码
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: test] Unable to build Hibernate SessionFactory
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:967)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:892)
at org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:58)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:39)
at cn.lzh.jpademo.utils.JpaUtils.creatEntityManagerFactory(JpaUtils.java:12)
at cn.lzh.jpademo.utils.JpaUtils.<clinit>(JpaUtils.java:9)
... 23 more
Caused by: org.hibernate.MappingException: Repeated column in mapping for entity: cn.lzh.jpademo.pojo.Result column: student_id (should be ma