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.  [ 1 post ] 
Author Message
 Post subject: NHibernate.MappingException : No persister for: System.Int32
PostPosted: Sat May 09, 2009 1:12 pm 
Newbie

Joined: Thu Dec 25, 2008 7:13 am
Posts: 10
I am upgradding from 2.0.1 to 2.1

I updated the Nhibernate assembly reference and the Iesi.Collections assembly reference to the newer versions.

After doing that and running the solution, it says I needed a proxy factory class. I using NHibernate.ByteCode.Castle's ProxyFactoryFactory.

After setting that up, I am getting a mapping exception.

NHibernate.MappingException : No persister for: System.Int32

at NHibernate.Impl.SessionFactoryImpl.GetEntityPersister(String entityName)
at NHibernate.Type.EntityType.ToLoggableString(Object value, ISessionFactoryImplementor factory)
at NHibernate.Type.AnyType.ToLoggableString(Object value, ISessionFactoryImplementor factory)
at NHibernate.Impl.Printer.ToString(IDictionary`2 namedTypedValues)
at NHibernate.Engine.QueryParameters.LogParameters(ISessionFactoryImplementor factory)
at NHibernate.Engine.Query.HQLQueryPlan.DoIterate(QueryParameters queryParameters, IEventSource session, Nullable`1& isMany, IEnumerable[]& results, IEnumerable& result)
at NHibernate.Engine.Query.HQLQueryPlan.PerformIterate(QueryParameters queryParameters, IEventSource session)
at NHibernate.Engine.Query.HQLQueryPlan.PerformIterate[T](QueryParameters queryParameters, IEventSource session)
at NHibernate.Impl.SessionImpl.Enumerable[T](String query, QueryParameters queryParameters)
at NHibernate.Impl.QueryImpl.Enumerable[T]()
at N2.Persistence.NH.Finder.QueryBuilder.Select[T]() in C:\Users\Paul\Documents\Visual Studio 2008\Projects\N2_Source\src\N2\Persistence\NH\Finder\QueryBuilder.cs:line 362
at N2.Persistence.NH.Finder.QueryBuilder.Select() in C:\Users\Paul\Documents\Visual Studio 2008\Projects\N2_Source\src\N2\Persistence\NH\Finder\QueryBuilder.cs:line 357
at N2.Persistence.VersionManager.GetVersionsOf(ContentItem publishedItem) in C:\Users\Paul\Documents\Visual Studio 2008\Projects\N2_Source\src\N2\Persistence\VersionManager.cs:line 137
at N2.Tests.Persistence.NH.VersionManagerTests.GetVersions_IncludesPublishedVersion_WhenItsTheOnlyVersion() in C:\Users\Paul\Documents\Visual Studio 2008\Projects\N2_Source\src\N2.Tests\Persistence\NH\VersionManagerTests.cs:line 133

This error gets thrown for all the types including DateTime, int, string, etc.

Any help would be appreciated.


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

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.