From: Andrea A. <and...@ge...> - 2012-09-28 07:24:09
|
On Fri, Sep 28, 2012 at 7:41 AM, <Vic...@cs...> wrote: > Found another page with a better walkthough J**** > > ** ** > > > http://docs.geotools.org/latest/userguide/library/xml/internal/tutorial.html > **** > > ** > Lately I successfully generated the bindings for CSW, you might want to have a look in the xsd-csw pom.xml, might (or might not!) give you some hints What actually caused me more grief until I understood it better was the EMF model generation. Basically my mindset was focused on getting the code generated from XSD properly as a one shot thing, while instead the successful workflow is something like: * generate once from XSD * take the generated interfaces, throw away the implementations and schemas and consider the interfaces the new source for the model * modify the interfaces at will, reload the model from them and re-generate, iterate until you get what you actually want (e.g., proper package names, fixing return types, fixing cardinalities that sometimes EMF gets wrong from XSD and so on) Cheers Andrea -- == Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- |