-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: net.sf.hibernate.MappingException: No persister for
PostPosted: Mon Apr 12, 2004 5:34 pm 
Newbie

Joined: Thu Apr 01, 2004 2:19 pm
Posts: 14
I create a class and I can save the object. When I try to laod the object using the key I get the following error:


net.sf.hibernate.MappingException: No persister for: com.pepsico.mya.bonus.persistence.impl.ScorePersistenceManager
at net.sf.hibernate.impl.SessionFactoryImpl.getPersister(SessionFactoryImpl.java:344)
at net.sf.hibernate.impl.SessionImpl.getClassPersister(SessionImpl.java:2574)
at net.sf.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:1915)
at net.sf.hibernate.impl.SessionImpl.load(SessionImpl.java:1847)
at com.pepsico.mya.bonus.persistence.PersistenceManagerSupport.get(PersistenceManagerSupport.java:44)
at com.pepsico.mya.bonus.persistence.TestScorePersistenceManager.testGetUpdate(TestScorePersistenceManager.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:536)
net.sf.hibernate.MappingException: No persister for: com.pepsico.mya.bonus.persistence.impl.ScorePersistenceManager
at net.sf.hibernate.impl.SessionFactoryImpl.getPersister(SessionFactoryImpl.java:344)
at net.sf.hibernate.impl.SessionImpl.getClassPersister(SessionImpl.java:2574)
at net.sf.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:1915)
at net.sf.hibernate.impl.SessionImpl.load(SessionImpl.java:1847)
at com.pepsico.mya.bonus.persistence.PersistenceManagerSupport.get(PersistenceManagerSupport.java:44)
at com.pepsico.mya.bonus.persistence.PersistenceManagerSupport.delete(PersistenceManagerSupport.java:110)
at com.pepsico.mya.bonus.persistence.PersistenceManagerSupport.delete(PersistenceManagerSupport.java:105)
at com.pepsico.mya.bonus.persistence.TestScorePersistenceManager.testDelete(TestScorePersistenceManager.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:536)
------------- ---------------- ---------------


Can anyone give me a clue?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 12, 2004 5:42 pm 
Newbie

Joined: Thu Apr 01, 2004 2:19 pm
Posts: 14
Just to add a note, If I use the Criteria object and set the primary key on the criterion, I get the object.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.