-->
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: SQL Server schema generation
PostPosted: Tue Apr 04, 2006 9:40 pm 
Newbie

Joined: Tue Apr 04, 2006 9:27 pm
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.0.5

Name and version of the database you are using: Microsoft SQLServer 2000

One of the properties in my class is expected to contain big String data. My mapping is @hibernate.property column="PDT_DESCRIPTION" length="32767" not-null="false"

The schema export generates "PDT_DESCRIPTION varchar(32767)".

But the max value I can give in SQL Server is 8000 and thus throws an error when I use this script.

However, when I generate schema for MySql, it works perfectly as it generates the type as text.

Is this a defect? I saw something similar at http://forum.hibernate.org/viewtopic.php?t=933683%3C/a. The problem here seems to be with varbinary and it looks as if it was fixed pre 3.0.

Can someone tell me if I'm doing something wrong or is it a defect with hibernate.


Thanks in advance for help.


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.