-->
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: No persister for: Castle.Proxies - problem
PostPosted: Fri Dec 02, 2011 3:46 am 
Newbie

Joined: Fri Dec 02, 2011 3:39 am
Posts: 1
I have problem like below (WinForm app), anybody can help ?

Code:
var  prod = session.QueryOver<BO.Producent>().List();
var s = prod[0];
session.Evict(s);
session.Refresh(s); // error:No persister for: Castle.Proxies.ProducentProxy - this is that problem


// Second Level Cache is turned off
           //BO.Producent mapping via Fluent (BO.Producent.hbm.xml)

           //             <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
           //- <class xmlns="urn:nhibernate-mapping-2.2" dynamic-insert="true" dynamic-update="true" name="BO.Producent, BO, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" table="Producenci">
           //- <id name="ID" type="System.Int64, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
           //  <column name="ID" />
           //  <generator class="identity" />
           //  </id>
           //- <property name="CreatedUser" type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
           //  <column name="CreatedUser" not-null="true" />
           //  </property>
           //- <property name="CreatedDate" type="System.DateTime, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
           //  <column name="CreatedDate" not-null="true" />
           //  </property>
           //- <property name="ModifiedUser" type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
           //  <column name="ModifiedUser" />
           //  </property>
           //- <property name="ModifiedDate" type="System.Nullable`1[[System.DateTime, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
           //  <column name="ModifiedDate" />
           //  </property>
           //- <property name="Nazwa" type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
           //  <column name="Nazwa" not-null="true" unique="true" />
           //  </property>
           //- <property name="Obrazek" type="System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" lazy="true">
           //  <column name="Obrazek" length="2147483647" />
           //  </property>
           //- <property name="Link" type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
           //  <column name="Link" />
           //  </property>
           //  </class>
           //  </hibernate-mapping>



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.