Issue Type: Bug Bug
Affects Versions: 4.1.9
Assignee: Unassigned
Components: annotations
Created: 30/Jan/13 12:08 AM
Description:

MySQL 5.5.

@Column(columnDefinition = "CHAR", length = 32)
    private String contentHash;

Created query:

create table texydoc (id INT UNSIGNED not null auto_increment, added datetime, content TEXT, contentHash CHAR, origPath varchar(255) unique, parsingException TEXT, renderedHtml TEXT, author_id bigint, primary key (id))

MySQL interprets this as `CHAR(1)`.

IMO the length should be used for column length:

(Optional) The column length. (Applies only if a string-valued column is used.)

Project: Hibernate ORM
Priority: Major Major
Reporter: Ondra Žižka
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