Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 15955 invoked from network); 9 Mar 2010 16:52:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Mar 2010 16:52:18 -0000 Received: (qmail 9511 invoked by uid 500); 9 Mar 2010 16:51:51 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 9477 invoked by uid 500); 9 Mar 2010 16:51:51 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 9469 invoked by uid 99); 9 Mar 2010 16:51:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Mar 2010 16:51:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Mar 2010 16:51:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 21E39234C4B2 for ; Tue, 9 Mar 2010 16:51:27 +0000 (UTC) Message-ID: <38362454.157061268153487124.JavaMail.jira@brutus.apache.org> Date: Tue, 9 Mar 2010 16:51:27 +0000 (UTC) From: "Craig L Russell (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Resolved: (OPENJPA-1530) MySQL storage engine support In-Reply-To: <1325473348.471571266957807835.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-1530?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Craig L Russell resolved OPENJPA-1530. -------------------------------------- Resolution: Fixed Committed changes to 1.3.x and trunk: public String[] getCreateTableSQL(Table table) { String[] sql = super.getCreateTableSQL(table); if (!StringUtils.isEmpty(tableType)) - sql[0] = sql[0] + " TYPE = " + tableType; + sql[0] = sql[0] + " ENGINE = " + tableType; return sql; Since tableType is already documented, there's no need to change it. svn commit -m "OPENJPA-1530 change TYPE to ENGINE in DDL for MySQL" Sending openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MySQLDictionary.java Transmitting file data . Committed revision 920979. clr% svn commit -m "OPENJPA-1530 change TYPE to ENGINE in DDL for MySQL" Sending openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MySQLDictionary.java Transmitting file data . Committed revision 920977. > MySQL storage engine support > ---------------------------- > > Key: OPENJPA-1530 > URL: https://issues.apache.org/jira/browse/OPENJPA-1530 > Project: OpenJPA > Issue Type: Improvement > Components: jdbc > Reporter: Craig L Russell > Assignee: Craig L Russell > Priority: Minor > Fix For: 1.3.0, 2.0.0 > > Attachments: openjpa-1530.patch > > > The MySQLDictionary currently supports only TYPE innodb. There is a skeleton for support of this element but there is no way to change it from the default. > Also, according to the MySQL documentation http://dev.mysql.com/doc/refman/5.1/en/create-table.html TYPE is deprecated. The recommended (and supported) keyword is ENGINE. > "Since MySQL 5.1.8, it produces a warning. It will be removed in a future MySQL release. You should not use TYPE in any new applications, and you should immediately begin conversion of existing applications to use ENGINE instead." > I propose to change TYPE to ENGINE, and to provide a way for the user to specify which engine to use. > I need some feedback on this: A property, mysql.engine, with a default of innodb (for compatibility) can be specified by the user in order to create tables using any of the supported engines. Can the property be put onto the command line? Can the property be added to persistence.xml? Can the property be added to the maven profile properties? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.