Class MapResultRowMapperFactory

java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.query.mapper.MapResultRowMapperFactory
All Implemented Interfaces:
ResultRowMapperFactory

@Component public class MapResultRowMapperFactory extends Object implements 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: ""
         }
     ]
 }