최대 절전 모드에서 작동합니다. hibernate.cgf.xml
및 매핑 파일을 만듭니다. 나는 엔티티 클래스 자바를 만들고 hibernateUtil.java
와 내가 테스트 주를 실행할 때이를 생성합니다최대 절전 모드 지속성
Exception in thread "main" net.sf.hibernate.MappingException: No persister for: fr.hibernate.projet.model.Employe
at net.sf.hibernate.impl.SessionFactoryImpl.getPersister(SessionFactoryImpl.java:347)
at net.sf.hibernate.impl.SessionImpl.getClassPersister(SessionImpl.java:2690)
at net.sf.hibernate.impl.SessionImpl.getPersister(SessionImpl.java:2697)
at net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:763)
at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:738)
at fr.hibernate.projet.test.Test.main(Test.java:32)
데이터베이스는 여전히 비어 있습니다.
에 도움을주는 –