java - How to create Full Index Index via Hibernate Mapping -
i can create unique constraint on column in hibernate mapping by
@table(name = "table_name", uniqueconstraints = { @uniqueconstraint(columnnames = {"column_with_unique_value"}) })
if want add index specified column
@column(name = "index_column", nullable = false) @index private string indexcolumn;
so out of 3 indexes possible in mysql (unique, index, full_text), can able create 2 of indexes (unique, index) via hibernate mapping annotation. can't seem find annotations or documentation creating full text index
.
mysql version : 5.7.x.
hibernate version : 4.2.7.final
searching full text index creation returns results related hibernate search , lucene. there hibernate annotation available create full text index
directly in mysql innodb table..? (just @uniqueconstraint
or @index
annotation)
Comments
Post a Comment