zhouyanming commented on Bug HHH-8216

schema generation was not intended to be used in a production environment,but we do this and works perfect before 4.2.1!
I know your purpose is not go past the 30 characters to adapt the bullshit oracle,but your uuid hex still get 32 characters,UK_uuidhex get 35 characters,you are substring it to 30 characters in org.hibernate.internal.util.StringHelper.
[code java]
private static final int MAX_NAME_LENGTH = 30;
public static String randomFixedLengthHex(String prefix) {
int length = MAX_NAME_LENGTH - prefix.length();
String s = UUID.randomUUID().toString();
s = s.replace( "-", "" );
if (s.length() > length)

{ s = s.substring( 0, length ); }

return prefix + s;
}
[code]

why not do the same to md5hex?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira