-->
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: Problem with Loader.GenerateAlias for Generic classes
PostPosted: Tue Mar 21, 2006 5:50 pm 
Newbie

Joined: Wed Mar 08, 2006 3:57 pm
Posts: 6
I believe I have found a problem with NHibernate.Loader.GenerateAlias when used to generate an alias for a constructed Generic class. The Type.FullName for a constructed Generic class looks like this:

Namespace1.Namspace12.Namespace123.GenericClassName`1[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]

GenerataAlias generates the alias "0, culture" for this class name, obviously not a valid SQL alias.

I would like to fix this by truncating the "`" (grave accent) and everything following, then proceeding to process the type name string as it is currently processed.

Comments?


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.