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: IInterceptor and the GetEntityName method
PostPosted: Sat May 24, 2008 3:23 pm 
Newbie

Joined: Sat May 24, 2008 2:58 pm
Posts: 1
My entity object is a proxied object as I'm using Castle Windsor Container with an interceptor. When trying to save this object I get a MappingException.

NHibernate.MappingException: Unknown entity class: IContextProxy21ea5728b30e4035bcedf6df33214653

I found that Hibernate 3.0 has a method getEntityName on the interceptor interface which lets you provide the actual type name so that you can save proxied objects directly.

Now I found that NHibernate has implemented this in the 2.0.0.Alpha1 release. The method is GetEntityName on the IInterceptor interface. However having implemented this the method never seems to get called. Other methods on the interface get called so the interceptor is configured correctly.

Is this a bug or have I missunderstood something?


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.