Ebean finder returns ExpressionList
-
26-06-2021 - |
Domanda
I followed this tutorial:
http://www.playframework.org/documentation/2.0/JavaEbean
according to the tutorial Finder
should return a List<E>
.
I tried it, but instead it returns ExpressionList<E>
I tried to cast it to List<E>
but it failed.
so, the tutorial must be wrong, or am I missing something?
Soluzione
I think findList()
function should use in the end to make it return List<E>
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow