Hibernate Error No Persister
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you no persister for nhibernate c# might have Meta Discuss the workings and policies of this site fluent nhibernate no persister for About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or no persister for fluent nhibernate c# posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of
Fluent Nhibernate.mappingexception : No Persister For
4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up No persister for class Error up vote 0 down vote favorite when i run the application i get "No persister for Test.Student" Error I am new in Nhibernate Mapping ,i can't figure this out How can no persister for nhibernate mapping by code i solve ?? plz help NHibernate Configuration part App.config here for a quick overview of the site unable to locate persister for the entity named Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users http://stackoverflow.com/questions/17511425/no-persister-for-class-error Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up NHibernate.MappingException: No persister for up vote 0 down vote favorite I'm begining http://stackoverflow.com/questions/20935411/nhibernate-mappingexception-no-persister-for my adventure with nHibernate and I have a problem. My code: Model/Project.cs namespace entity1.Model { public class Project { public Guid Id { get; set; } public string Name { get; set; } public string Description { get; set; } } } Model/Project.hbm.xml here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us http://stackoverflow.com/questions/1436072/nhibernate-mappingexception-no-persister Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack http://www.blainekendall.com/index.php/archives/2004/04/12/hibernate-no-persister-for-error/ Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up NHibernate MappingException. No Persister up vote 1 down no persister vote favorite I'm trying to get NHibernate to work. I've got this class: mm.k.Domain.Kampagne (namespace/assembly is mm.k.Domain) In another Visual Studio project (Assembly mm.k.Infrastructure) I got my Mapping files (in a Mappings directory), my hibernate.cfg.xml and some repositories. Heres my mapping file: Blaine I'm pulling my hair out trying to fix this error. I've used the same technique, similar datatypes, similar mapping files…yet, when I try to map my Hibernate "Historical" data object class, I get a "No persister for" error. I've googled for solutions to this problem, but nothing has come up applicable to what I'm looking to fix. So, I'm turning to the blogosphere for help here. In order to debug, I've created a servlet which attempts to write a data object (Historical) to MySQL. I do this twice, with the same code (copy & paste for this junk debug code). One method (writeDailysumsToDB) writes to a different data object, with similar types. The second method (writeHistoricalToDB) writes the Historical data object. writeDailysumsToDB works perfectly, yet writeHistoricalToDB fails with the mentioned "No persister for" error. This leads me to believe it's a mapping error, yet I can't detect where. So I'm dumping everything here in the hopes someone can browse and point out my obvious error. net.sf.hibernate.MappingException: No persister for: db.HistoricalNo Persister For Entity
Could Not Compile The Mapping Document
----- Exception stacktrace -----
at net.sf.hibernate.impl.SessionFactoryImpl.getPersister(SessionFactoryImpl.java:420)
at net.sf.hibernate.impl.SessionImpl.getPersister(SessionImpl.java:2302)
at net.sf.hibernate.impl.SessionImpl.getPersister(SessionImpl.java:2309)
at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:599)
at spike.WriteHistoricalServlet.writeHistoricalToDB(WriteHistoricalServlet.java:192)
at spike.WriteHistoricalServlet.handleRequest(WriteHistoricalServlet.java:126)
at org.apache.velocity.servlet.VelocityServlet.doRequest(VelocityServlet.java:372)
at org.apache.velocity.servlet.VelocityServlet.doGet(VelocityServlet.java:333)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)
at com.caucho.server.http.Invocation.service(Invocation.java:315)
at com.caucho.server.http.CacheInvocation.service(