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.  [ 2 posts ] 
Author Message
 Post subject: What is sql-type in column tag?
PostPosted: Fri Jun 13, 2008 7:30 am 
Newbie

Joined: Fri Jun 13, 2008 5:37 am
Posts: 4
Hi,
I've extensively searched the documentation but I can't find explanation about column tag. I am especially wondering what the available types are for sql-type attribute of column tag.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 13, 2008 2:11 pm 
Expert
Expert

Joined: Fri May 13, 2005 11:13 am
Posts: 292
Location: Rochester, NY
sql-type is just what it says. It isn't used in the mapping (I think) but just for DDL generation using hbm2ddl. It is not translated, so you can use any type supported by your DB, with the downside that you lose portability moving to a different DB. If you don't need to specify it, it is probably better to let NH infer the column type.

For some constructs <column> is required (e.g. <any> mappings, custom value types) but even then the sql-type can be inferred.


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

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.