Class MapResultRowMapperFactory
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.query.mapper.MapResultRowMapperFactory
- All Implemented Interfaces:
ResultRowMapperFactory
ResultRowMapperFactory
that returns the query results in a nested Map
.
For example the paths 'name', 'relToOne', 'relToOne', 'relToOne2.name', 'relToMany.name' would structured
in the following way:
{ name: "" relToOne: { _self: entity_instance } relToOne2: { name: "" } relToMany: [ { name: "" } ] }
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MapResultRowMapperFactory
public MapResultRowMapperFactory()
-
-
Method Details
-
supports
- Specified by:
supports
in interfaceResultRowMapperFactory
- Returns:
- true if this factory supports the given target type
-
createMapper
- Specified by:
createMapper
in interfaceResultRowMapperFactory
- Returns:
- a
ResultRowMapper
that can produce results of type T
-