Hibernate version:
2.1.6
Mapping documents:
------------------------ Feature Attribute Class --------------------------
/**
* @hibernate.property column="NAME"
* @hibernate.column name="NAME" not-null="true" length="60" unique-key="NAME_FEATURE_ALT_KEY"
*/
public String getName() {
return super.getName();
}
/**
* @hibernate.many-to-one column="FEATURE_ID" not-null="true" cascade="none"
* @hibernate.column name="FEATURE_ID" not-null="true" unique-key="NAME_FEATURE_ALT_KEY"
*/
public Feature getFeature() {
return this.feature;
}
----------------------------------- LookupObject class -----------------------
/**
* @hibernate.property column="NAME" length="60" not-null="true" unique="true"
*/
public String getName() {
return this.name;
}
------------------------------------------
I need to index a String column, so the unique index should be case insensitive, or a function based index.
I'd like to do this for the single column, or composite index.
With @hibernate.property unique="true" or @hibernate.column unique-key="blah" I don't see how I could tell it to use the upper function in the ddl generated from hbm2ddl.
|