<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<base href="https://hibernate.atlassian.net">
<title>Message Title</title>
</head>
<body class="jira" style="color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 1.429">
<table id="background-table" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0; background-color: #f5f5f5; border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0" bgcolor="#f5f5f5">
<!-- header here -->
<tbody>
<tr>
<td id="header-pattern-container" style="padding: 0; border-collapse: collapse; padding: 10px 20px">
<table id="header-pattern" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0">
<tbody>
<tr>
<td id="header-avatar-image-container" valign="top" style="padding: 0; border-collapse: collapse; vertical-align: top; width: 32px; padding-right: 8px" width="32"> <img id="header-avatar-image" class="image_fix" src="cid:jira-generated-image-avatar-5de83f7d-c8cb-4b83-868f-351a55cd741d" height="32" width="32" border="0" style="border-radius: 3px; vertical-align: top"> </td>
<td id="header-text-container" valign="middle" style="padding: 0; border-collapse: collapse; vertical-align: middle; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 1px"> <a class="user-hover" rel="ndrake" id="email_ndrake" href="https://hibernate.atlassian.net/secure/ViewProfile.jspa?name=ndrake" style="color:#6c797f;; color: #3b73af; text-decoration: none">Nate Drake</a> <strong>commented</strong> on <a href="https://hibernate.atlassian.net/browse/HHH-9989" style="color: #3b73af; text-decoration: none"><img src="cid:jira-generated-image-avatar-2bbad605-966a-484d-a9d4-2479aa8e6afa" height="16" width="16" border="0" align="absmiddle" alt="Bug"> HHH-9989</a> </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td id="email-content-container" style="padding: 0; border-collapse: collapse; padding: 0 20px">
<table id="email-content-table" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0; border-spacing: 0; border-collapse: separate">
<tbody>
<tr>
<!-- there needs to be content in the cell for it to render in some clients -->
<td class="email-content-rounded-top mobile-expand" style="padding: 0; border-collapse: collapse; color: #ffffff; padding: 0 15px 0 16px; height: 15px; background-color: #ffffff; border-left: 1px solid #cccccc; border-top: 1px solid #cccccc; border-right: 1px solid #cccccc; border-bottom: 0; border-top-right-radius: 5px; border-top-left-radius: 5px; height: 10px; line-height: 10px; padding: 0 15px 0 16px; mso-line-height-rule: exactly" height="10" bgcolor="#ffffff"> </td>
</tr>
<tr>
<td class="email-content-main mobile-expand " style="padding: 0; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff" bgcolor="#ffffff">
<table class="page-title-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0">
<tbody>
<tr>
<td style="vertical-align: top;; padding: 0; border-collapse: collapse; padding-right: 5px; font-size: 20px; line-height: 30px; mso-line-height-rule: exactly" class="page-title-pattern-header-container"> <span class="page-title-pattern-header" style="font-family: Arial, sans-serif; padding: 0; font-size: 20px; line-height: 30px; mso-text-raise: 2px; mso-line-height-rule: exactly; vertical-align: middle"> <a href="https://hibernate.atlassian.net/browse/HHH-9989" style="color: #3b73af; text-decoration: none">Re: UniqueKey.sqlDropString doesn't work for MySQL</a> </span> </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td id="text-paragraph-pattern-top" class="email-content-main mobile-expand comment-top-pattern" style="padding: 0; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff; border-bottom: none; padding-bottom: 0" bgcolor="#ffffff">
<table class="text-paragraph-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 2px">
<tbody>
<tr>
<td class="text-paragraph-pattern-container mobile-resize-text " style="padding: 0; border-collapse: collapse; padding: 0 0 10px"> <p style="margin: 10px 0 0; margin-top: 0">I understand this isn't a proper verification of this bug as impacting Hibernate 5, but I'm unable to generate a full test case at present. I do have the output of the hbm2ddl Ant task where I believe I am seeing this show up. </p> <p style="margin: 10px 0 0">We're in the process of upgrading to Hibernate 5.0.10 using Hibernate Tools 5.0.2.Final and the Mysql5InnoDBDialect with Mysql 5.6.23. </p> <p style="margin: 10px 0 0">Here is the output of the hbm2ddl task:</p>
<div class="preformatted panel" style="border-width: 1px;; border: 1px solid #cccccc; background: #f5f5f5; font-size: 12px; line-height: 1.333; font-family: monospace; border: 1px solid #cccccc; -moz-border-radius: 3px; border-radius: 3px; margin: 9px 0">
<div class="preformattedContent panelContent" style="padding: 9px 12px">
<pre style="margin: 10px 0 0; margin-top: 0; max-height: 30em; overflow: auto; white-space: pre-wrap; word-wrap: normal; white-space: pre; word-break: normal; word-wrap: break-word; word-break: break-all; white-space: pre-wrap">[hibernatetool] Executing Hibernate Tool with a Hibernate Annotation/EJB3 Configuration
[hibernatetool] 1. task: hbm2ddl (Generates database schema)
[hibernatetool] INFO 04-10 15:48:20,234 (Version.java:logVersion:37) -HHH000412: Hibernate Core {5.0.10.Final}
[hibernatetool] INFO 04-10 15:48:20,237 (Environment.java:<clinit>:213) -HHH000206: hibernate.properties not found
[hibernatetool] INFO 04-10 15:48:20,239 (Environment.java:buildBytecodeProvider:317) -HHH000021: Bytecode provider name : javassist
[hibernatetool] INFO 04-10 15:48:20,596 (Version.java:<clinit>:15) -Hibernate Tools 5.0.2.Final
[hibernatetool] INFO 04-10 15:48:20,629 (JavaReflectionManager.java:<clinit>:66) -HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
[hibernatetool] WARN 04-10 15:48:20,703 (DriverManagerConnectionProviderImpl.java:configure:71) -HHH10001002: Using Hibernate built-in connection pool (not for production use!)
[hibernatetool] INFO 04-10 15:48:20,710 (DriverManagerConnectionProviderImpl.java:buildCreator:127) -HHH10001005: using driver [com.mysql.jdbc.Driver] at URL [jdbc:mysql://localhost:3306/db?useUnicode=true&characterEncoding=utf8]
[hibernatetool] INFO 04-10 15:48:20,710 (DriverManagerConnectionProviderImpl.java:buildCreator:133) -HHH10001001: Connection properties: {user=USERNAME, password=PASSWORD}
[hibernatetool] INFO 04-10 15:48:20,711 (DriverManagerConnectionProviderImpl.java:buildCreator:141) -HHH10001003: Autocommit mode: false
[hibernatetool] INFO 04-10 15:48:20,714 (PooledConnections.java:<init>:39) -HHH000115: Hibernate connection pool size: 20 (min=1)
[hibernatetool] INFO 04-10 15:48:20,973 (Dialect.java:<init>:156) -HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
[hibernatetool] WARN 04-10 15:48:21,588 (DriverManagerConnectionProviderImpl.java:configure:71) -HHH10001002: Using Hibernate built-in connection pool (not for production use!)
[hibernatetool] INFO 04-10 15:48:21,589 (DriverManagerConnectionProviderImpl.java:buildCreator:127) -HHH10001005: using driver [com.mysql.jdbc.Driver] at URL [jdbc:mysql://localhost:3306/db?useUnicode=true&characterEncoding=utf8]
[hibernatetool] INFO 04-10 15:48:21,590 (DriverManagerConnectionProviderImpl.java:buildCreator:133) -HHH10001001: Connection properties: {user=USERNAME, password=PASSWORD}
[hibernatetool] INFO 04-10 15:48:21,591 (DriverManagerConnectionProviderImpl.java:buildCreator:141) -HHH10001003: Autocommit mode: false
[hibernatetool] INFO 04-10 15:48:21,591 (PooledConnections.java:<init>:39) -HHH000115: Hibernate connection pool size: 20 (min=1)
[hibernatetool] INFO 04-10 15:48:21,600 (Dialect.java:<init>:156) -HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
[hibernatetool] INFO 04-10 15:48:21,773 (SchemaUpdate.java:execute:105) -HHH000228: Running hbm2ddl schema update
[hibernatetool] INFO 04-10 15:48:21,773 (SchemaUpdate.java:buildToolTargets:153) -HHH000417: Writing generated schema to file: /Users/ndrake/build/src/schemaupdate.sql
[hibernatetool] alter table TABLE drop constraint UK913wqnk90dc3akquq2eb2h9lk;
[hibernatetool] WARN 04-10 15:48:29,356 (DriverManagerConnectionProviderImpl.java:configure:71) -HHH10001002: Using Hibernate built-in connection pool (not for production use!)
[hibernatetool] INFO 04-10 15:48:29,356 (DriverManagerConnectionProviderImpl.java:buildCreator:127) -HHH10001005: using driver [com.mysql.jdbc.Driver] at URL [jdbc:mysql://localhost:3306/db?useUnicode=true&characterEncoding=utf8]
[hibernatetool] INFO 04-10 15:48:29,356 (DriverManagerConnectionProviderImpl.java:buildCreator:133) -HHH10001001: Connection properties: {user=USERNAME, password=PASSWORD}
[hibernatetool] INFO 04-10 15:48:29,356 (DriverManagerConnectionProviderImpl.java:buildCreator:141) -HHH10001003: Autocommit mode: false
[hibernatetool] INFO 04-10 15:48:29,357 (PooledConnections.java:<init>:39) -HHH000115: Hibernate connection pool size: 20 (min=1)
[hibernatetool] INFO 04-10 15:48:29,361 (Dialect.java:<init>:156) -HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
</pre>
</div>
</div> <p style="margin: 10px 0 0">Here is how we are execute hbm2ddl:</p>
<div class="preformatted panel" style="border-width: 1px;; border: 1px solid #cccccc; background: #f5f5f5; font-size: 12px; line-height: 1.333; font-family: monospace; border: 1px solid #cccccc; -moz-border-radius: 3px; border-radius: 3px; margin: 9px 0">
<div class="preformattedContent panelContent" style="padding: 9px 12px">
<pre style="margin: 10px 0 0; margin-top: 0; max-height: 30em; overflow: auto; white-space: pre-wrap; word-wrap: normal; white-space: pre; word-break: normal; word-wrap: break-word; word-break: break-all; white-space: pre-wrap"><hibernatetool destdir="${build.src}">
<classpath>
<pathelement location="${target.jar}/*.jar"/>
</classpath>
<annotationconfiguration configurationfile="${build.src}/hibernate.cfg.xml" />
<hbm2ddl export="false" update="true" haltonerror="true" outputfilename="schemaupdate.sql" />
</hibernatetool>
</pre>
</div>
</div> <p style="margin: 10px 0 0">Here is the build of the hibernate.cfg.xml:</p>
<div class="preformatted panel" style="border-width: 1px;; border: 1px solid #cccccc; background: #f5f5f5; font-size: 12px; line-height: 1.333; font-family: monospace; border: 1px solid #cccccc; -moz-border-radius: 3px; border-radius: 3px; margin: 9px 0">
<div class="preformattedContent panelContent" style="padding: 9px 12px">
<pre style="margin: 10px 0 0; margin-top: 0; max-height: 30em; overflow: auto; white-space: pre-wrap; word-wrap: normal; white-space: pre; word-break: normal; word-wrap: break-word; word-break: break-all; white-space: pre-wrap"><?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.search.autoregister_listeners">false</property>
<property name="hibernate.bytecode.use_reflection_optimizer">true</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/db?useUnicode=true&amp;characterEncoding=utf8</property>
<property name="hibernate.connection.username">USERNAME</property>
<property name="hibernate.connection.password">PASSWORD</property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQL5InnoDBDialect</property>
<mapping class="com.example.Blah"/>
</session-factory>
</hibernate-configuration>
</pre>
</div>
</div> </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td class="email-content-main mobile-expand " style="padding: 0; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff" bgcolor="#ffffff">
<table id="actions-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 1px">
<tbody>
<tr>
<td id="actions-pattern-container" valign="middle" style="padding: 0; border-collapse: collapse; padding: 10px 0 10px 24px; vertical-align: middle; padding-left: 0">
<table align="left" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0">
<tbody>
<tr>
<td class="actions-pattern-action-icon-container" style="padding: 0; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 0; vertical-align: middle"> <a href="https://hibernate.atlassian.net/browse/HHH-9989#add-comment" target="_blank" title="Add Comment" style="color: #3b73af; text-decoration: none"> <img class="actions-pattern-action-icon-image" src="cid:jira-generated-image-static-comment-icon-fdfbb65b-44fe-4312-a16a-902d9196e0d9" alt="Add Comment" title="Add Comment" height="16" width="16" border="0" style="vertical-align: middle"> </a> </td>
<td class="actions-pattern-action-text-container" style="padding: 0; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 4px; padding-left: 5px"> <a href="https://hibernate.atlassian.net/browse/HHH-9989#add-comment" target="_blank" title="Add Comment" style="color: #3b73af; text-decoration: none">Add Comment</a> </td>
</tr>
</tbody>
</table> </td>
</tr>
</tbody>
</table> </td>
</tr>
<!-- there needs to be content in the cell for it to render in some clients -->
<tr>
<td class="email-content-rounded-bottom mobile-expand" style="padding: 0; border-collapse: collapse; color: #ffffff; padding: 0 15px 0 16px; height: 5px; line-height: 5px; background-color: #ffffff; border-top: 0; border-left: 1px solid #cccccc; border-bottom: 1px solid #cccccc; border-right: 1px solid #cccccc; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; mso-line-height-rule: exactly" height="5" bgcolor="#ffffff"> </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td id="footer-pattern" style="padding: 0; border-collapse: collapse; padding: 12px 20px">
<table id="footer-pattern-container" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0">
<tbody>
<tr>
<td id="footer-pattern-text" class="mobile-resize-text" width="100%" style="padding: 0; border-collapse: collapse; color: #999999; font-size: 12px; line-height: 18px; font-family: Arial, sans-serif; mso-line-height-rule: exactly; mso-text-raise: 2px"> This message was sent by Atlassian JIRA <span id="footer-build-information">(v1000.383.2#100014-<span title="783d42561fdcfe98ce52c7c3d24c33d56126c5a5" data-commit-id="783d42561fdcfe98ce52c7c3d24c33d56126c5a5}">sha1:783d425</span>)</span> </td>
<td id="footer-pattern-logo-desktop-container" valign="top" style="padding: 0; border-collapse: collapse; padding-left: 20px; vertical-align: top">
<table style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0">
<tbody>
<tr>
<td id="footer-pattern-logo-desktop-padding" style="padding: 0; border-collapse: collapse; padding-top: 3px"> <img id="footer-pattern-logo-desktop" src="cid:jira-generated-image-static-footer-desktop-logo-4b669f61-9a73-4e1b-a377-dfbb8a2bdea8" alt="Atlassian logo" title="Atlassian logo" width="169" height="36" class="image_fix"> </td>
</tr>
</tbody>
</table> </td>
</tr>
</tbody>
</table> </td>
</tr>
</tbody>
</table>
</body>
</html>