#22 - Remove restriction on CollectionLike types.

EntityRowMapper now passes-thru values for Collection-like types such as array.
Arrays are supported by Postgres.

Original pull request: #22.
This commit is contained in:
Ryland Degnan
2018-11-21 13:24:49 -05:00
committed by Jens Schauder
parent 9e3601a06d
commit f325f45fb6

View File

@@ -66,10 +66,7 @@ public class EntityRowMapper<T> implements BiFunction<Row, RowMetadata, T> {
continue;
}
if (property.isCollectionLike()) {
throw new UnsupportedOperationException();
} else if (property.isMap()) {
if (property.isMap()) {
throw new UnsupportedOperationException();
} else {
propertyAccessor.setProperty(property, readFrom(row, property, ""));