Not very efficient is it? Suppose I could use my component for
different tables with different properties (and believe I'll ;) )
I need to create different component types?? Does no makes sense

On 8/4/05, Paul Galbraith <[EMAIL PROTECTED]> wrote:
> Vinicius Carvalho wrote:
> > Hello there! This is a simple one. How do I map my columns <->
> > properties of my component?
> >
> > Suppose I have that example from Hibernate in action: Address is a
> > component, and I'd like to map it:
> > <component
> > name="billingAddress"
> > class="Address">
> > <property name="street"
> > type="string"
> > column="BILLING_STREET"
> > notnull="true"/>
> > <property name="city"
> > type="string"
> > column="BILLING_CITY"
> > not-null="true"/>
> > <property name="zipcode"
> > type="short"
> > column="BILLING_ZIPCODE"
> > not-null="true"/>
> > </component>
> >
> > how do I do this using xdoclet??
> >
> 
> On the class that maps in the Address component, on the address getter,
> add the @hibernate.component tag with appropriate attributes.  Then in
> the Address class, set @hibernate.property tags on the property getters,
> again with the appropriate attributes.
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> xdoclet-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to