Hi.
I have this:
@MappedSuperclass
@Access(AccessType.PROPERTY)
@StructConverter(name = "JGeometryConverter", converter =
"se.lantmateriet.origo.domain.model.geometry.OracleGeometryConverter")
public class Point extends FeatureGeometry {
@Convert("JGeometryConverter")
@Column(name = "geometry", columnDefinition =
"MDSYS.SDO_GEOMETRY")
public OracleGeometry getGeometry() {
return this.position.getGeometry();
}
protected void setGeometry(final OracleGeometry
oracleGeometry) {
double[] pointCoordinate =
oracleGeometry.getGeometry().getFirstPoint();
this.position = POSITION(N(pointCoordinate[1]),
E(pointCoordinate[0]));
}
}
@Embeddable
public class GeographicLocation extends
se.lantmateriet.origo.domain.model.geometry.Point {}
How can GeographicLocation "see" and map geometry from the
inherited class? I guess I need some customizer, but what should I put
there?
--
/Magnus Heino
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users