Autodiscover scalar types in native-sql

Description

the ejb3 spec states that it should be possible to do something like:

s.createSQLQuery("select emp.regionCode as regioncode, emp.empid as empid from employment emp").addScalar("regioncode").addScalar("empid").list()

note the missing type information.

Furthermore executeUpdate() might also be relevant for ejb3

Environment

None

Attachments

Assignee

Max Rydahl Andersen

Reporter

Max Rydahl Andersen

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Critical
Configure