[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Moxy mapping


Hi.

I have this mapping:

        XMLDirectMapping interior = new XMLDirectMapping();
        interior.setAttributeName("interior");
        interior.setField(new XMLField("gml:Surface/gml:patches/gml:PolygonPatch/gml:interior/gml:LinearRing/gml:posList/text()"));
        interior.setSetMethodName("setInterior");
        interior.setGetMethodName("getInterior");
        position.addMapping(interior);


Reading xml documents works just fine.

When I write the xml however, gml:Surface is required to have a gml:id attribute. Is there any way to control this?

Thanks!

/Magnus Heino