On Fri, Sep 28, 2012 at 10:35 AM, <[email protected]> wrote:
> Hi Justin and Andrea,****
>
> ** **
>
> My public repo is https://github.com/victortey/geotool.git****
>
> ** **
>
> Looks like I have done it the wrong way, I was following
> http://docs.geotools.org/latest/userguide/library/xml/internal/tutorial.htmland
> used jaxb as documented.
> ****
>
> ** **
>
> Perhaps I should be using EMF as Andrea have done. Is
> net.opengis.cat.csw20.Csw20Factory auto generated? If yes, how is it done?
> ****
>
> ** **
>
> Were you following any documentation Andrea?****
>
> **
>
Hmm... I don't think I was, but here is some steps from memory:
- install emf and xsd extensions in eclipse
- copy the xsd schemas in the module that will contain the model
- create the first emf model by having it read the xsd
- generate the code
- throw away the impl and modify the generated interfaces as needed
- reload the EMF model, regenerate
- kill the util package just generated, it's not needed
- often that required me to do a "mvn eclipse:eclipse -pl myModule -am" to
have the eclipse project compile again
- iterate over it until you're satistified with package names, return types
and the model in general
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
-------------------------------------------------------
------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users