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.