Hibernate version: 2.1.7
xDoclet version: 1.2.2
I have problems with table with composite key having many-to-many relationship with other table.
This is what I write in javadoc for the relation (PARAMETER_NAME and PARAMETER_TYPE form a composite key):
Code:
/**
* @hibernate.set
* lazy="true"
* cascade="none"
* table="MM_ATT_SET_TYPE_PARAM_INFO"
* @hibernate.collection-key
* column="ATTRIBUTE_SET_TYPE_ID"
*
*
* @hibernate.collection-many-to-many
* class="com.biofrontera.discovery.hibernate.ParameterInfo"
* column="PARAMETER_NAME"
* @hibernate.collection-many-to-many
* class="com.biofrontera.discovery.hibernate.ParameterInfo"
* column="PARAMETER_TYPE"
*
*/
xDoclet translates that into (i.e. loses key column):
Code:
<many-to-many
class="com.biofrontera.discovery.hibernate.ParameterInfo"
column="PARAMETER_NAME"
outer-join="auto"
/>
instead of:
Code:
<many-to-many
class="com.biofrontera.discovery.hibernate.ParameterInfo"
>
<column name="PARAMETER_NAME" />
<column name="PARAMETER_TYPE" />
</many-to-many>
is it a xdoclet bug/"feature" or I am doing something wrong?