A lot of {{NativeQuery}} methods are marked as deprecated as they are inherited from {{SQLQuery}} (which is marked as deprecated) whereas they should not.
We should override these methods in {{NativeQuery}} so that they are not marked as deprecated.
Another issue is that a few covariant overrides are missing in {{NativeQuery}}. This is annoying as typically {{setFirstResult}} returns a {{Query}} instead of a {{NativeQuery}} breaking the ability to chain the calls. |
|