Hibernate无法映射

org.hibernate.MappingException: Unknown entity: Student

at org.hibernate.metamodel.internal.MetamodelImpl.entityPersister(MetamodelImpl.java:684)

at org.hibernate.internal.SessionImpl.getEntityPersister(SessionImpl.java:1692)

at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:122)

at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:192)

at org.hibernate.event.internal.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:38)

at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:177)

at org.hibernate.event.internal.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:32)

at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:73)

at org.hibernate.internal.SessionImpl.fireSave(SessionImpl.java:709)

at org.hibernate.internal.SessionImpl.save(SessionImpl.java:701)

at org.hibernate.internal.SessionImpl.save(SessionImpl.java:696)

at Student.main(Student.java:92)


达布尔Double
浏览 1105回答 0
0回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

MySQL