Hi,

I think that i dont really need to process and hibernate specific tags, 
just replicate the class , and have control over which fields and 
methods get replicates , i would also like to generate a copy 
constructor for both classes.


here is an example:


original class:

Package  sever;

@Entity
Class Customer
{
String name;


@do not replicate
String Password

getters and setters....

}


replicated class

Package  client;

Class Customer
{
String name;

Customer(server.customer from)
{
....
}

getters and setters....

}


Thanks,
Shay
Konstantin Priblouda wrote:
> XDoclet s the right tool to do this, but it does not process 
> anotations,  but xdoclet ( kind-of javadoc ) tags instead.
>
> To achieve your task you can start from existing hibernate plugin,
> reuse its tag definitions and create your own velocity template.
>
> regars,
>
>
> ----[ Konstantin Pribluda http://www.pribluda.de ]----------------
> JTec quality components: http: fields //www.pribluda.de/projects/
>
>
> --- On Thu, 7/2/09, Shay Matasaro <matas...@gmail.com> wrote:
>
>   
>> From: Shay Matasaro <matas...@gmail.com>
>> Subject: [Xdoclet-user] Generate DTO from JPA annotated class
>> To: xdoclet-user@lists.sourceforge.net
>> Date: Thursday, July 2, 2009, 3:21 PM
>> Hi All,
>>
>> I am looking for a utility that can take a JPA annotated 
>> class(hibernate) and generate a DTO(Value object) class
>> from it.
>>
>> while doing my research i ran into the Value Object
>> implementation of 
>> XDoclet which looks great.
>>
>> my question is, Is there an XDoclet implementation that can
>> handle a JPA 
>> class in a similar manner to the way that Value Object
>> handles EJB classes?
>>
>> Thanks,
>> Shay
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> xdoclet-user mailing list
>> xdoclet-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>>
>>     
>
>
>       
>
> ------------------------------------------------------------------------------
> _______________________________________________
> xdoclet-user mailing list
> xdoclet-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
>   


------------------------------------------------------------------------------
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to