feliperazeek / playframework-elasticsearch

Integrate Elastic Search in a Play! Framework Application. This module uses JPA events to notify Elastic Search of events of their own. It embeds a running Elastic Search instance for Rapid Development.
http://geeks.aretotally.in/play-framework-module-elastic-search-distributed-searching-with-json-http-rest-or-java
84 stars 43 forks source link

ReflectionUtil improvements #17

Closed bgooren closed 13 years ago

bgooren commented 13 years ago

Hi,

This fixes some issues in ReflectionUtil, e.g. small model ids are returned as Integers, where Model.id is a Long. My changes handle this gracefully by casting the Integer to a Number and calling longValue().

I've also added the case where the source and target type match; Since this should occur frequently I've made it the first case.

Bas