Hibernate Layer

Hibernate Layer 1.17.0


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. 

Supported databases:

  • PostGIS
  • Oracle Spatial
  • Microsoft SQL Server
  • MySQL

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

- All related documentation and configuration.
- All related documentation and configuration.
- Visit the Java API docs for this plug-in.

Using this project in maven

In order to use this plug-in in your Maven-project, add the following dependency to the pom.xml: