[ http://jira.codehaus.org/browse/XDP-51?page=all ]
     
Anatol Pomozov resolved XDP-51:
-------------------------------

    Resolution: Fixed

I have added 'prefix' support. Please verify implementation.

> Support for prefix in Componet
> ------------------------------
>
>          Key: XDP-51
>          URL: http://jira.codehaus.org/browse/XDP-51
>      Project: XDoclet 2 Plugins
>         Type: New Feature
>  Environment: Win32, Hibernate 3.0, xdoclet-2.0.2.jar , 
> xdoclet-plugin-hibernate-1.0.jar 
>     Reporter: Yuval Carmel
>     Assignee: Anatol Pomozov

>
>
> There is the "prefix" attribute in hibernate.component presented in XDoclet 
> 1, used to differentiate one component from another in an object that used it 
> (Address Book has two Address components, Home Address and Work Address).
> class Address{
>  /** 
>   * @hibernate.property
>   */ 
>   public String address;
> }
>  /** 
>   * @hibernate.class table="address_book"
>   */ 
> class AddressBook{
> /** 
>  * @hibernate.component prefix="home" 
>  */ 
>   public Address getHomeAddress() { 
>      return this.homeAddress; 
>   } 
> /** 
>  * @hibernate.component prefix="work" 
>  */ 
>   public Address getWorkAddress() { 
>      return this.workAddress; 
>   } 
> }
> generates: 
>         <component name="homeAddress">
>             <property name="address" column="address"/>
>         <component/>
>         <component name="workAddress">
>             <property name="address" column="address"/>
>         <component/>
> should be: 
>         <component name="homeAddress">
>             <property name="address" column="homeaddress"/>
>         <component/>
>         <component name="workAddress">
>             <property name="address" column="workaddress"/>
>         <component/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
xdoclet-plugins-interest mailing list
xdoclet-plugins-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest

Reply via email to