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: Hibernate 3.2 and MySQL JDBC Driver 5.0.3
PostPosted: Wed Oct 18, 2006 5:43 pm 
Beginner
Beginner

Joined: Sun Oct 05, 2003 9:07 am
Posts: 47
I've recently upgraded to Hibernate 3.2 and MySQL JDBC Driver 5.0.3. I'm using the Ant schemaexport task to generate my database tables. I'm getting the following warnings - maybe caused by the MySQLInnoDBDialect?

[schemaexport] (util.JDBCExceptionReporter 48 ) SQL Warning: 1287, SQLState: HY000
[schemaexport] (util.JDBCExceptionReporter 49 ) 'TYPE=storage_engine' is deprecated; use 'ENGINE=storage_engine' instead
[schemaexport] create table role (id bigint not null auto_increment, name varchar(20), description varchar(64), primary key (id)) type=InnoDB;
[schemaexport] (util.JDBCExceptionReporter 48 ) SQL Warning: 1287, SQLState: HY000
[schemaexport] (util.JDBCExceptionReporter 49 ) 'TYPE=storage_engine' is deprecated; use 'ENGINE=storage_engine' instead
[schemaexport] (util.JDBCExceptionReporter 48 ) SQL Warning: 1287, SQLState: HY000
[schemaexport] (util.JDBCExceptionReporter 49 ) 'TYPE=storage_engine' is deprecated; use 'ENGINE=storage_engine' instead
[schemaexport] create table user_role (user_id bigint not null, role_id bigint not null, primary key (user_id, role_id)) type=InnoDB;
[schemaexport] (util.JDBCExceptionReporter 48 ) SQL Warning: 1287, SQLState: HY000
[schemaexport] (util.JDBCExceptionReporter 49 ) 'TYPE=storage_engine' is deprecated; use 'ENGINE=storage_engine' instead
[schemaexport] (util.JDBCExceptionReporter 48 ) SQL Warning: 1287, SQLState: HY000
[schemaexport] (util.JDBCExceptionReporter 49 ) 'TYPE=storage_engine' is deprecated; use 'ENGINE=storage_engine' instead
[schemaexport] (util.JDBCExceptionReporter 48 ) SQL Warning: 1287, SQLState: HY000
[schemaexport] (util.JDBCExceptionReporter 49 ) 'TYPE=storage_engine' is deprecated; use 'ENGINE=storage_engine' instead
[schemaexport] alter table user_role add index FK143BF46AF503D155 (user_id), add constraint FK143BF46AF503D155 foreign key (user_id) references app_user (id);
[schemaexport] (util.JDBCExceptionReporter 48 ) SQL Warning: 1287, SQLState: HY000
[schemaexport] (util.JDBCExceptionReporter 49 ) 'TYPE=storage_engine' is deprecated; use 'ENGINE=storage_engine' instead
[schemaexport] (util.JDBCExceptionReporter 48 ) SQL Warning: 1287, SQLState: HY000
[schemaexport] (util.JDBCExceptionReporter 49 ) 'TYPE=storage_engine' is deprecated; use 'ENGINE=storage_engine' instead
[schemaexport] (util.JDBCExceptionReporter 48 ) SQL Warning: 1287, SQLState: HY000
[schemaexport] (util.JDBCExceptionReporter 49 ) 'TYPE=storage_engine' is deprecated; use 'ENGINE=storage_engine' instead
[schemaexport] alter table user_role add index FK143BF46A4FD90D75 (role_id), add constraint FK143BF46A4FD90D75 foreign key (role_id) references role (id);
[schemaexport] (util.JDBCExceptionReporter 48 ) SQL Warning: 1287, SQLState: HY000
[schemaexport] (util.JDBCExceptionReporter 49 ) 'TYPE=storage_engine' is deprecated; use 'ENGINE=storage_engine' instead
[schemaexport] (util.JDBCExceptionReporter 48 ) SQL Warning: 1287, SQLState: HY000
[schemaexport] (util.JDBCExceptionReporter 49 ) 'TYPE=storage_engine' is deprecated; use 'ENGINE=storage_engine' instead
[schemaexport] (util.JDBCExceptionReporter 48 ) SQL Warning: 1287, SQLState: HY000
[schemaexport] (util.JDBCExceptionReporter 49 ) 'TYPE=storage_engine' is deprecated; use 'ENGINE=storage_engine' instead

Is this something I should enter as an issue in JIRA - or is it a known issue?

Thanks,

Matt


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 19, 2006 7:33 am 
Newbie

Joined: Fri Jun 17, 2005 2:07 am
Posts: 19
Location: Berne, Switzerland
hi matt,

have you tried MySQL5InnoDBDialect ?
there they use ENGINE=

Code:
...
   public String getTableTypeString() {
      return " ENGINE=InnoDB";
   }
...


jakob


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 19, 2006 11:53 am 
Beginner
Beginner

Joined: Sun Oct 05, 2003 9:07 am
Posts: 47
Thank you - this solved the problem!


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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.