-->
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: JPA, schema export SQLServerDialect
PostPosted: Thu Dec 16, 2010 6:42 am 
Newbie

Joined: Sat Nov 26, 2005 9:03 am
Posts: 5
Hi,

Can someone please tell me why the registered column type for BIT for SQLServerDialect has not been set to bit.

This has caused me some problems because I am using the hibernate schema exporter which has been defaulting the type to tinyint. I am then using DBUnit to export some test data but it falls over because the column wont accept true or false.

Code:
public class MySQLServerDialect extends SQLServerDialect {
   
    public MySQLServerDialect() {
        registerColumnType( Types.BIT, "bit" );
    }
}


Many thanks

David.


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.