Skip to content

Commit

Permalink
DELTASPIKE-1160 allow native repository queries to return List or any…
Browse files Browse the repository at this point in the history
… super type
  • Loading branch information
mmain\heda151 authored and mmain\heda151 committed Jun 2, 2016
1 parent 2b06c14 commit 494d5cd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -85,7 +85,7 @@ else if (query.isNative())

private Class<?> getMethodResultEntityClass(Method m){
Class<?> rt = m.getReturnType();
if(rt == List.class){
if(rt.isAssignableFrom(List.class) && rt != Object.class){
ParameterizedType pt = (ParameterizedType) m.getGenericReturnType();
return (Class<?>) pt.getActualTypeArguments()[0];
}
Expand Down

0 comments on commit 494d5cd

Please sign in to comment.