mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-13 21:01:01 +08:00
Update docs #631
This commit is contained in:
parent
7a9931e1e5
commit
19cfdfee27
@ -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>
|
||||
Loading…
Reference in New Issue
Block a user