[ http://jira.codehaus.org/browse/XDP-62?page=comments#action_40275 ]
     
Michael Kantarovich commented on XDP-62:
----------------------------------------

Hi,

I'm trying to use prefix feature, but I'm getting a "prefix is an invalid 
parameter name" error.
If it's still not in production version how can I get an updated sources, or 
may be one of your nightly builds?

Thanks a lot!
Michael.


> Support for prefix in Component - doesn't work correctly
> --------------------------------------------------------
>
>          Key: XDP-62
>          URL: http://jira.codehaus.org/browse/XDP-62
>      Project: XDoclet 2 Plugins
>         Type: New Feature
>  Environment: Win32, Hibernate 3.0, xdoclet-2.0.2.jar , 
> xdoclet-plugin-hibernate-1.0.jar 
>     Reporter: Jesse McLaughlin
>     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 Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
xdoclet-plugins-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest

Reply via email to