Incorrect JavaDoc on QueryProducer.createNativeQuery(.., Class)

Description

Reading

https://docs.jboss.org/hibernate/orm/5.2/javadocs/org/hibernate/query/QueryProducer.html#createNativeQuery-java.lang.String-java.lang.Class-

its written:

Have a look at:

resultClass - The Java type to map results to

If you are going to create e.g. a NativeQuery which maps to a Long.class or String.class this does for sure map to a Java type BUT actually looking at the implementation used resultClass is expected to be a Entity class which is known to the persistence unit.

So please correct the javadoc here to something like:

Environment

JDK 8

Status

Assignee

Unassigned

Reporter

Torsten Krah

Fix versions

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Minor
Configure