ResultSetIdentifierConsumer cannot be implemented correctly

Description

As far as I can see, it is not possible to implement ResultSetIdentifierConsumer in a correct way, because IdentifierGeneratorHelper does not pass through the identifier string into the consumeIdentifier() method. As such, it is impossible for the the ResultSetIdentifierConsumer implementation to know exactly which field of the ResultSet object has the value it needs to consume. At best, it must rely on heuristics, such as assuming the identifier is in column 1, or that it has the name "id".

Environment

None

Activity

Show:
Gail Badner
April 17, 2018, 6:39 AM

, please attach a runnable test case that illustrates why this is a problem. You can find test templates at https://github.com/hibernate/hibernate-test-case-templates

Assignee

Unassigned

Reporter

Jon Rimmer

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure