I have not had to use multiple components before that map to the same datatype, though I do read in the docs
Have you tried using the prefix?


@hibernate.component (0..1)

Declares a component

Parameter Type Applicability Description Mandatory
class text
A fully qualified class name false
prefix text
When multiple Java fields are of the same component datatype, use this to specify a descriminating column-name-prefix false




If you look in the hibernate-properties.xdt file you can see it being used:

<XDtMethod:ifHasMethodTag tagName="hibernate.component">
<component
name="<XDtMethod:propertyName />"
class="<XDtMethod:methodTagValue tagName="hibernate.component" paramName="class" default="<XDtMethod:methodType/>"/>"
>
<XDtHibernate:setColumnPrefix
prefix="<XDtMethod:methodTagValue
tagName='hibernate.component'
paramName='prefix' default=''/>">
<XDtClass:pushClass value="<XDtMethod:methodTagValue tagName='hibernate.component' paramName='class' default='<XDtMethod:methodType/>' />">
<XDtMethod:forAllMethods superclasses="true" sort="true">
<XDtMerge:merge file="xdoclet/modules/hibernate/resources/hibernate-properties.xdt">
</XDtMerge:merge>
</XDtMethod:forAllMethods> </XDtClass:pushClass>
</XDtHibernate:setColumnPrefix>
</component>
</XDtMethod:ifHasMethodTag>


Mark Lundquist wrote:

Hi, I'm a rookie trying to get my first Hibernate project off the ground, and I'm using Xdoclet to generate the hibernate mappings. I ran into a problem, and it turns out someone else posted here about it just the week before last:

http://www.mail-archive.com/[EMAIL PROTECTED]/ msg08460.html

...but apparently there were no replies. Any takers? Do I have to just resort to writing my mapping files by hand?

Also, I tried to search the bug list, from this link on the "Feedback" page of the Hibernate site:

http://opensource.atlassian.com/projects/xdoclet/

but I get a 404 on that. Anybody know an up-to-date URL for the bug list?

Thanks,
mark



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to