On 01/05/13 08:18, Matteo Cusmai wrote:

Hi all, hi Angelo,
I have the same issue.

Have anyone solved this problem?

I'd be really really glad to see a solution myself

On 22 Apr 2013 17:35, "Angelo D'Amato" <damatoangelo@gmail.com> wrote:
Hi to all,
I’m trying to use geotools api to implement my custom model that extends GML
I follow instructions that are in this tutorial :

For practice I created my custom XSD simple model that extends some GML
concepts as you can see in next figure.


In my model
/ --  ConveyanceType extends gml:AbstractFeatureType
--  CommercialVehicle (an istance of CommercialVehicleType) is a
--  Train (an istance of TrainType)  is a gml:_Feature/

When I launch

*mvn jaxb2:generate*

XJC tried to generate also GML model and I have a lot of  conflicts name on
elements .

I would to exclude GML concepts from compilation of model and automatically
generate custom binding taken from already defined binding class of Geotools
such as:


1. There are some examples to learn how to configure this expected
2. This could be a good practice to implement a custom model extends gml
concept ?
3. What is the best practice to have a Model Driven Architecture between
Jaxb and EMF strategies?

I see also this project  http://www.ogcnetwork.net/jaxb4ogc
<http://www.ogcnetwork.net/jaxb4ogc>  , they define custom *binding.xjb* for
creation of complete GML model but I would reuse already defined binding of
GML, maybe configuring dependency on *gt-xsd-gml3*.

Thanks in advance,


View this message in context: http://osgeo-org.1560.x6.nabble.com/JAXB-code-generation-of-custom-model-that-extends-GML-types-tp5048829.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
GeoTools-GT2-Users mailing list

Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.

GeoTools-GT2-Users mailing list