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://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