-->
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.  [ 4 posts ] 
Author Message
 Post subject: Question about exporting schema using hibernate.cfg.xml
PostPosted: Thu Jun 09, 2005 1:30 am 
Newbie

Joined: Sat Jun 04, 2005 12:53 pm
Posts: 6
How to exporting schema from hibernate.cfg.xml to mysql, if the character set is define in each table(not using db character set).


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 09, 2005 1:33 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
huh?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 09, 2005 1:39 am 
Newbie

Joined: Sat Jun 04, 2005 12:53 pm
Posts: 6
what i mean is :
When using SchemaExport Tool it only generate sql like :
[schemaexport] create table TBL_ATTACHMENT (
[schemaexport] PK_ATTACH_ID bigint not null auto_increment,
[schemaexport] FK_NEWS_ID bigint,
[schemaexport] VC_FILENAME varchar(50) not null,
[schemaexport] VC_PATH varchar(80) not null,
[schemaexport] VC_SIZE bigint,
[schemaexport] VC_TYPE varchar(40),
[schemaexport] LAST_MODIFIED date not null,
[schemaexport] CREATE_DATE date not null,
[schemaexport] CREATE_ID varchar(40) not null,
[schemaexport] primary key (PK_ATTACH_ID)
[schemaexport] )

How to make it become

[schemaexport] create table TBL_ATTACHMENT (
[schemaexport] PK_ATTACH_ID bigint not null auto_increment,
[schemaexport] FK_NEWS_ID bigint,
[schemaexport] VC_FILENAME varchar(50) not null,
[schemaexport] VC_PATH varchar(80) not null,
[schemaexport] VC_SIZE bigint,
[schemaexport] VC_TYPE varchar(40),
[schemaexport] LAST_MODIFIED date not null,
[schemaexport] CREATE_DATE date not null,
[schemaexport] CREATE_ID varchar(40) not null,
[schemaexport] primary key (PK_ATTACH_ID)
[schemaexport] ) CHARACTER SET UTF-8 COLLATE UTF-8_BIN


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 09, 2005 1:43 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
not possible AFAIK.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.