Class CustomResultRowMapperFactory<E>
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.query.mapper.CustomResultRowMapperFactory<E>
- All Implemented Interfaces:
ResultRowMapperFactory
@Component
public class CustomResultRowMapperFactory<E>
extends Object
implements ResultRowMapperFactory
Handles custom result beans that are annotated with
QueryBuilderResult
.
The properties of the annotated bean are automatically mapped to the query results and all
necessary paths are automatically added to the query builder.
The ResultPath
and NestedResultPath
annotations can be used to
customize the mapping of the properties.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CustomResultRowMapperFactory
public CustomResultRowMapperFactory()
-
-
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
-