-->
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 and Unicode strings
PostPosted: Tue Mar 28, 2006 11:39 am 
Newbie

Joined: Tue Oct 25, 2005 12:32 pm
Posts: 13
Hibernate version: 3.1

I'm curious about SchemaExport. I have my own hand developed scripts for the different db's we support so it's just curiousity and not necessity.

We store strings in Unicode columns. The different db's have various representations for what to call these. For example, in SQL Server it's NVARCHAR but in Sybase ASA its VARCHAR but the db is created in a different way to store UTF-8 (outside the realm of the create statements).

I realize that I can specify the sql-type in the mapping file but that appears to lock you in to a particular vendor. That is, I don't think that Hibernate interprets the string to do the right thing for a particular db. I believe the assumption is that if you are specifying the sql-type then you want Hibernate to just use it.

Is that correct?

Is there a smart way to do this with Hibernate that I don't understand? I could certainly write something that would stuff the right thing in the mapping files depending upon a dialect that someone gives me but I was wondering what more experienced Hibernate developers might do.

Thank you.

Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp


Top
 Profile  
 
 Post subject: my 2c
PostPosted: Wed Mar 29, 2006 2:10 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
I suggest you not to bother with SchemaExport
http://forum.hibernate.org/viewtopic.ph ... highlight=

http://forum.hibernate.org/viewtopic.ph ... highlight=

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


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.