-->
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: Defining InnoDB table with XDoclet
PostPosted: Fri Jul 23, 2004 1:37 am 
Newbie

Joined: Mon Jul 19, 2004 8:17 pm
Posts: 3
Location: Melbourne, Australia
Hello coleagues!

I would appreciate if someone could give a guide on how to define an InnoDB table with XDoclet for Hibernate. I need to work in a transactional environment, but it only works for InnoDB tables in MySQL.

Do I need to manually change the type of the table of the generated tables by Hibernate?

By default the table type I'm getting is MyISAM

Thanks in advance,

Karel Alfonso


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 25, 2004 11:02 pm 
Beginner
Beginner

Joined: Wed Mar 03, 2004 6:02 am
Posts: 46
Location: Kuala Lumpur, Malaysia
Karel,

Do these:

1) java net.sf.hibernate.tool.hbm2ddl.SchemaExport \
--properties=hibernate.properties \
--delimiter=type=InnoDB

2) Run your MySQL server with option:

mysqld_safe --datadir=$datadir --pid-file=$pid_file --default-table-type=InnoDB

Regards,

Alistair


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.