--- Piyush <[EMAIL PROTECTED]> wrote:

> Hi Friends,
> 
> How do we generate tags like below through xdoclet?
> //------------XML code Mapping file-----------//
>         <component name="employeeSalary"
> class="com.cklear.employee.EmployeeSalary" >
>                       <property name="hra" />
>                       <property name="basic" />
>                       <property name="allowance" />
> 
>         </component>
> //----------Source Code
> ------Java------------------//
> 
> This doesnt work friends
>     private EmployeeSalary employeeSalary;
>     /**
>      * @hibernate.component class =
> "com.cklear.employee.EmployeeSalary"
>      * @hibernate.property name = "hra"
>      * @hibernate.property name = "basic"
>      * @hibernate.property name = "allowance"
>      */
>     public EmployeeSalary getEmployeeSalary() {
>         return employeeSalary;
>     }
>     public void setEmployeeSalary(EmployeeSalary
> employeeSalary) {
>         this.employeeSalary = employeeSalary;
>     }

property tags shall definitely go to the component
class itself. 

regards,

----[ Konstantin Pribluda http://www.pribluda.de ]----------------
Still using XDoclet 1.x?  XDoclet 2 is released and of production quality.
check it out: http://xdoclet.codehaus.org

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to