Hi @all,

 

I try to use a custom UserType as a ID for my domain model objects:

 

/**

 * @return Returns the id.

 * @hibernate.id type = "SpecialClassType" unsaved-value = "none"

 *               generator-class="SpecialClassGenerator"

 */

public SpecialClass getId() {

  return id;

}

 

XDoclet generates this:

 

        <composite-id

            name="id"

            class="my.package.SpecialClass"

            unsaved-value="none"

        >

 

        </composite-id>

 

But I want something like this:

 

        <id

            name="id"

            type="my.package.SpecialClassType"

            unsaved-value="none"

        >

                  <generator class="SpecialClassGenerator"/>

        </id>

 

Make I something wrong or is the template for this incorrect?

 

Best Regards,

Tobias

 

Reply via email to