-->
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: GetAutoSqlType
PostPosted: Wed Apr 18, 2007 10:02 am 
Newbie

Joined: Thu Oct 27, 2005 9:23 am
Posts: 5
Hi,

is there any way to get the SQL type of a column if it is not explicitly stated in the mapping file?

I would like to get some schema information from a Configuration. From Configuration I can get objects of class Table. From there I can get a collection of Column objects.

And now for my problem: I would like to get the SQL Type NHibernate assumes (for example if you generate the DDL script to generate the database). So I try to call GetAutoSqlType or GetSqlType, but both need a IMapping which is not exposed by Configuration. Looking into Configuration (with Reflector for example) shows a private class Mapping which implements IMapping.


Thanks very much!
Sincerely,
Stefan Lieser


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.