Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] eclipselink 1.1 getSingleResult(): incompatible change

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?



Back to the top