I'm use hibernate JPA
hibernate
version is 3.5.1-Final
and hibernate-annotations
version is 3.5.1-Final
too
and mysql
version is : 5.5.35-0ubuntu0.12.04.2
I have a column:
@Column(name = "TITLE", length = 300)
@Index(name = "I_PRODUCT_ITEM_TITLE")
public String getTitle() {
return title;
}
but create index, show me
ERROR o.h.tool.hbm2ddl.SchemaUpdate - Unsuccessful: create index I_PRODUCT_ITEM_TITLE on T_PRODUCT_ITEM (TITLE)
ERROR o.h.tool.hbm2ddl.SchemaUpdate - BLOB/TEXT column 'TITLE' used in key specification without a key length
I don't know the reason....