I just ran a quick test and was unable to reproduce EclipseLink
returning a count as a BigDecimal in EclipseLink 1.1
--Gordon
Mohsen Saboorian wrote:
Not sure if Yannic is talking about this issue, but I
also noticed that in previous versions (1.0 or older), a count(*) jpql
query returned a Long object, while in newer versions (for sure before
1.1) it's BigDeimal.
Mohsen.
On Thu, Mar 19, 2009 at 6:31 PM, Gordon
Yorke <gordon.yorke@xxxxxxxxxx>
wrote:
The
return type depends on what is being queried. If it is a single Entity
or a JPQL Constructor query then a single instance of the selected type
is returned. If it is a query that selects multiple values then an
Object[] of those values are returned. This is specified in the
specification.
What is the return type you are seeing.
--Gordon
Yannick Majoros wrote:
Hi,
I tried Eclipselink 1.1. getSingleResult(), when used with a native
query, seems to have a different return value than it used to. Is this
change documented? Is it possible to override it? I must admit that I
tried to find some information on getSingleResult() result type before,
without too much luck.
What should the return type be?
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
|