How do I declare the properties of component, so XDoclet generates a fragment like this:
<component name="name" class="Name">
<property name="firstName"/>
<property name="initial"/>
<property name="lastName"/>
</component>
I've already added
@hibernate.component class="Name"
to the getter/setter in my parent class (User). Now XDoclet generates
<component name="name" class="Name">
</component>
I was supposing that I would have to add tags to the component class itself, like @hibernate.property to every property, but then what would I have to declare at the top of the class? @hibernate.class seems not the way to go, because then XDoclet expects an ID property (which is senseless for a component).
Regards,
Andreas
|