You should just be able to use the hyperjaxb3 xjc plugin with the cxf-codegen-
plugin to accomplish this.   Basically, where you configure the cxf-codegen-
plugin, add a dependency on the hyperjaxb jar (   
org.jvnet.hyperjaxb3:hyperjaxb3-ejb-plugin) and then add the -xjc-Xhyperjaxb3-
ejb flags to the configuration to cause wsdl2java to invoke that plugin when 
it calls into jaxb.    That should just work.

Dan


On Thu June 4 2009 12:48:48 pm Anne Kümpel wrote:
> Hi,
>
> I'm using cxf  with the maven cxf-codegen-plugin (goal:wsdl2java). I
> like to use the generated Java classes as JPA persistence entities. So,
> I can decorate them with the JPA annotations, but this means I have to
> write in the generated classes (and I have to renew it when the wsdl
> changes). Is there any possibility to generate the JPA annotation
> automatically (like Hyperjaxb3 does) ?
>
> thanks a lot for help
> anne

-- 
Daniel Kulp
[email protected]
http://www.dankulp.com/blog

Reply via email to