Hibernate Layer 1.18.1
Note from the Geomajas team: When working with databases, this plugin is recommended over the GeoTools layer plugin, as it provides more flexibility!
This plug-in provides a vector layer implementation that makes use of Hibernate Spatial, which is a GIS extension of the Hibernate Object Relational Mapping (ORM) technology.
This plug-in is essential in streamlining Geomajas with the familiar domain modelling practices of mainstream Java programmers. Using this layer, it is possible to define complex attribute relations, including many-to-one and one-to-many associations.
- Oracle Spatial
- Microsoft SQL Server
As with all ORM technologies, in Hibernate, you declare Java POJO objects and map them to the underlying database. These mappings can be defined with annotations (java 1.5).
When using this module to define a new layer, simply use the java class of the POJO objects in the XML configuration. Names of the attributes in XML are automatically translated to getters and setters in the java objects. What's more, if a java object contains many-to-one's or one-to-many relationschips (and therefore lists of other mapped java objects), one can simply define these as "associations" in the XML layer configurations, and this module will do the rest.
Community & Docs
Using this project in maven
<dependency> <groupId>org.geomajas.plugin</groupId> <artifactId>geomajas-server-layer-hibernate-parent</artifactId> <version>1.18.1</version> </dependency>