Use something like this....
Also notice the way you would have to write the qeries....
Code:
<hibernate-mapping>
<class name="module.xxxx.model.ViewActiveFilterForUser" table="view_active_filter_for_user" catalog="xxxx">
<composite-id name="id" class="module.xxx.model.ViewActiveFilterForUserId">
<key-property name="endUserId" type="java.lang.Long">
<column name="end_user_id" />
</key-property>
<key-property name="id" type="java.lang.Long">
<column name="id" />
</key-property>
<key-property name="description" type="java.lang.String">
<column name="description" length="50" />
</key-property>
<key-property name="key" type="java.lang.String">
<column name="key" length="50" />
</key-property>
<key-property name="index" type="java.lang.Integer">
<column name="index" />
</key-property>
<key-property name="value" type="java.lang.String">
<column name="value" length="100" />
</key-property>
</composite-id>
</class>
</hibernate-mapping>