Update docs #631

This commit is contained in:
Timo Westkämper 2014-03-14 17:04:43 +02:00
parent 7a9931e1e5
commit 19cfdfee27

View File

@ -160,4 +160,19 @@ List<SpatialRefSys> referenceSystems = query.from(spatialRefSys).list(spatialRef
</sect2>
<sect2>
<title>Inheritance</title>
<para>In case you use only generic geometry types in your database schema you can use conversion methods
in the object model to convert to more specific types.</para>
<programlisting language="java"><![CDATA[
GeometryPath<Geometry> geometry = shapes.geometry;
PointPath<Point> point = geometry.asPoint();
NumberExpression<Double> pointX = point.x(); // x() is not available on GeometryExpression/GeometryPath
]]></programlisting>
</sect2>
</sect1>