I’m having trouble getting the @hibernate.component
mapping to output properties for a particular class using Hibernate3 mappings. /** * Condensed Address class. */ Class Address { String
address1; String
address2; //
… get/set for address1, address2 … } /** * @hibernate.class * table=”ar_so” */ Class SalesOrder { /** *
@hibernate.component *
prefix=”shipto_” */ public
Address getShiptoAddress() … /** *
@hibernate.component *
prefix=”billto_” */ public
Address getBilltoAddress() … } The selected portion of the SalesOrder.hbm.xml that is
generated using xdoclet2 is this: <component name="shiptoAddress"
access="method"/> <component name="billtoAddress"
access="method"/> How can I get the component to have output the required
properties using the prefixes? When I generate the schema using org.hibernate.tool.hbm2ddl.SchemaExportTask
the address components are ignored entirely. Patrick |
- [xdoclet-plugins-interest] @hibernate.component mappi... Patrick Bakker
- Re: [xdoclet-plugins-interest] @hibernate.compon... Konstantin Priblouda