-->
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.  [ 3 posts ] 
Author Message
 Post subject: how to create a table that is customize to native database?
PostPosted: Wed Jan 23, 2008 12:20 am 
Beginner
Beginner

Joined: Mon Dec 17, 2007 11:08 pm
Posts: 47
hi, i still cannot find any solution even try to search on internet.

I wanna create a table which is customize to database I use (mysql 5)

I had create all the files include hbm, cfg, java bean and so on.

Then I run schemaExport to create the table, the version of mysql default table engine is innodb, which is not what i want.

I wanna create a table which other engine type. which lok like :

create table person
(
...
) engine = myisam;

how can i do it in hibernate ?

_________________
happy hacking !


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 23, 2008 4:09 am 
Newbie

Joined: Tue Jan 15, 2008 10:07 am
Posts: 14
Configure Hibernate to use MySQLMyISAMDialect instead of MySQLDialect.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 25, 2008 6:53 am 
Beginner
Beginner

Joined: Mon Dec 17, 2007 11:08 pm
Posts: 47
thx for reply.

Just try it, now all table is MyISAM type.

but if I want to choose difference engine type for difference tables, how should i do it ?

or should i just generate the database schema and pass to DBA to create it explicit ?

any comment ?

_________________
happy hacking !


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.