-->
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: SchemaExport unsuccesful using SQLServer2008Dialect
PostPosted: Tue Aug 19, 2014 4:34 am 
Newbie

Joined: Mon Feb 21, 2011 6:57 am
Posts: 8
Hello everybody,

due to business decision we needed to transfer our database from PostgreSQL to SQL Server 2014, we use in production Hibernate 3.6.7-Final.
Now, we are trying to run our tests and application again reconfiguring Hibernate to deal with the new DBMS, and a problem occurred on the SchemaExport operation.
It seems that SchemaExport is creating a query to create schema in SQL Server without converting boolean columns with the right "default" property, which in SQL Server is '0' or '1' instead 'true' or 'false'.
I can see the SchemaExport source, where it receive the mapping of the boolean field, code doesn't care about the dialect setted on Hibernate configuration.

At the moment I solved the problem removing "default" property from the Hibernate mapping, but I would like to fix the behavior definitely.
Do you know official ways to solve this problem?

Thanks in advance!


Top
 Profile  
 
 Post subject: Re: SchemaExport unsuccesful using SQLServer2008Dialect
PostPosted: Fri Aug 22, 2014 10:27 am 
Newbie

Joined: Mon Feb 21, 2011 6:57 am
Posts: 8
I tried upgrading to Hibernate 4.x to see if the problem was fixed but I got the same issue.
I found the SQLServer2012Dialect class which supports sequences, this problem still occurs..


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.