Hi!
I'd like to index a column. My class mapping looks like that:
Code:
@Entity
@Table(name = "T_PLACE")
public class PlaceDO implements Serializable,ModifyOrRead {
.....
@Index(name = "category_index")
public String getCategory() {
return this.category
}
...
but there is no index on this column:
Code:
diplom_db=# \d t_place;
Table "public.t_place"
Column | Type | Modifiers
--------------------+-----------------------------+-----------
id | bigint | not null
............................
category | character varying(255) |
.............................
Indexes:
"t_place_pkey" PRIMARY KEY, btree (id)
Foreign-key constraints:
"fk232b53c32aadaf4" FOREIGN KEY (user_id_fk) REFERENCES t_user(id)
"fk232b53c4afccd16" FOREIGN KEY (lastmodifier_id_fk) REFERENCES t_user(id)
"fk232b53c5fc39f69" FOREIGN KEY (user_id_fk) REFERENCES t_user(id)
What am i doing wrong?
I am using
Hibernate v 3.2.1
Postgresql v 8.1
sun-jdk v 1.6
Thanks,
Lado