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
Constructors -
Method Summary
-
Constructor Details
-
MapResultRowMapperFactory
public MapResultRowMapperFactory()
-
-
Method Details
-
supports
- Specified by:
supportsin interfaceResultRowMapperFactory- Returns:
- true if this factory supports the given target type
-
createMapper
- Specified by:
createMapperin interfaceResultRowMapperFactory- Returns:
- a
ResultRowMapperthat can produce results of type T
-