-->
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: Validation fail for SQL Server 2008 with column varchar(MAX)
PostPosted: Tue Jan 03, 2012 4:59 am 
Beginner
Beginner

Joined: Thu Jul 31, 2008 8:28 pm
Posts: 24
Hi,
I have an entity which store serialized value. I map this property to database column of type nvarchar(MAX) in SQL Server 2008 database.
The application is working but when I deploy the application with hibernate.hbm2ddl.auto property set to validate I get the following error:

Code:
org.hibernate.HibernateException: Wrong column type in Aurora.dbo.ActivityPropertyValue for column serializedValue. Found: text, expected: varchar(MAX)


I even try drop the table and run the deployment with hbm2ddl of update which create the table with the exact same column type which again does not pass the validation phase.

Thank you,
Ido.


Top
 Profile  
 
 Post subject: Re: Validation fail for SQL Server 2008 with column varchar(MAX)
PostPosted: Thu Jan 02, 2014 4:41 am 
Newbie

Joined: Sat May 22, 2010 10:32 am
Posts: 3
try to change the value of hibernate.hbm2ddl.auto to none.


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.