Hi,
I have a class which models a many-to-many relationship + some additonal
audit information. I have a working piece of hibernate mapping xml which
looks like:
<hibernate-mapping
package="com.company.ebasket.orderprocessing">
<class name="PipelineEntry" table="tb_pipeline">
<cache usage="nonstrict-read-write"/>
<composite-id>
<key-many-to-one
name="rule"
class="Rule"
column="rule_guid" />
<key-many-to-one
name="orderProcessorDefinition"
class="OrderProcessorDefinition"
column="oppimplementation_id"/>
</composite-id>
<version name="lastModifiedTimestamp"
column="last_modified_timestamp" type="timestamp"/>
<property name="lastModifiedBy" column="last_modified_by"/>
<property name="pipelineOrder" column="pipeline_order"/>
</class>
</hibernate-mapping>
This works fine, but I want to now use xdoclet to generate my xml files.
How would you represent this? I've tried the following but xdoclet blows
up.
/**
* @return Returns the processor.
* @hibernate.id column="oppimplementation_id"
* @hibernate.many-to-one
*/
public OrderProcessorDefinition getOrderProcessorDefinition() {
return orderProcessorDefinition;
}
/**
* @return Returns the rule_guid.
* @hibernate.id column="rule_guid"
* @hibernate.many-to-one
*/
public Rule getRule() {
return rule;
}
The error from xdoclet is as follow:
[hibernatedoclet] SEVERE: Invoking method failed:
xdoclet.modules.hibernate.HibernateTagsHandler.ifHasCompositeId, line=138 of
template file:
jar:file:/home/krichard/xdoclet/xdoclet-1.2.1/lib/xdoclet-hibernate-module-1
.2.1.jar!/xdoclet/modules/hibernate/resources/hibernate.xdt
[hibernatedoclet] java.lang.reflect.InvocationTargetException
[hibernatedoclet] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[hibernatedoclet] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
Any ideas?
Kev
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user