Hibernate version:2.1.3
Mapping documents:Xdoclet 1.2.1
Name and version of the database you are using: MySQL 4
Debug level Hibernate log excerpt:
[schemaexport] (cfg.Binder 229 ) Mapping class: au.edu.tlf.lips.model.Value -> value
[schemaexport] (cfg.Binder 560 ) Mapping collection: au.edu.tlf.lips.model.Value.conditionTypeValue -> table_value_join_condition_type_value
[schemaexport] (dialect.Dialect 82 ) Using dialect: net.sf.hibernate.dialect.MySQLDialect
[schemaexport] (cfg.Configuration 613 ) processing one-to-many association mappings
BUILD FAILED: C:\eclipse\workspace\lips\build.xml:994: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
I have been generating the code correctly until this morning when I tried to do a total rebuild of my application to get this error. I have looked on the hibernate site and checked the name spelling as suggested in the tutorial to no avail. Any more ideas?
Code:
/**
* @return Returns the valueSet.
* @hibernate.bag
* table="table_value_join_condition_type_value"
* cascade="all"
* @hibernate.collection-key
* column="fk_condition_type_value_id"
* @hibernate.collection-many-to-many
* class="au.edu.tlf.lips.model.Value"
* column="fk_value_id"
*/
public List getValueSet() {
return valueSet;
}
Code:
/**
* @return Returns the conditionTypeValue.
* @hibernate.bag
* table="table_value_join_condition_type_value"
* cascade="all"
* @hibernate.collection-key
* column="fk_value_id"
* @hibernate.collection-many-to-many
* class="au.edu.tlf.lips.model.ConditionTypeValue"
* column="fk_condition_type_value_id"
*/
public List getConditionTypeValue() {
return conditionTypeValue;
}