-->
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.  [ 5 posts ] 
Author Message
 Post subject: MySQL InnoDB Database
PostPosted: Tue Oct 14, 2003 1:19 pm 
Regular
Regular

Joined: Wed Sep 10, 2003 7:09 am
Posts: 63
Hi,

I am using Hibernate 2.1 with MySQL and i am generating my tables with the Schema Export.

I am using transactions and the tables created by the tool do not support transactions. What changes should I make in the map file, for Hibernate create innoDB tables??

Thanks,
Joao Rangel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 14, 2003 4:47 pm 
Newbie

Joined: Mon Sep 15, 2003 12:55 pm
Posts: 9
Location: Bangkok, Thailand
I think you just add TYPE=InnoDB after table declaration.

Code:
CREATE TABLE `...` (
    ......
    ......
) TYPE=InnoDB


Hope this help.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 14, 2003 5:20 pm 
Beginner
Beginner

Joined: Mon Sep 29, 2003 3:10 pm
Posts: 36
I believe that he's asking what attribute or tag he needs to add to Hibernate mapping files so that the DDL generated from those mapping files will create transaction aware (i.e. InnoDB) tables in MySQL.

This is a good question and one I'd be curious to know the answer to as well.

-Matt


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 14, 2003 5:27 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
http://forum.hibernate.org/old//809065.html

http://forum.hibernate.org/old//856390.html

You can also easily modify the dialect (or create a new one) or ...

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 14, 2003 5:40 pm 
Beginner
Beginner

Joined: Mon Sep 29, 2003 3:10 pm
Posts: 36
Thanks, Christian!

-Matt


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