Skip to content

Commit 7b7ad92

Browse files
gavinkingbeikov
authored andcommitted
mark parameter as deprecated since it is always null
leaving the parameter there seems to have been a mistake, since it was _was_ removed from nullSafeSet()
1 parent 89d0a57 commit 7b7ad92

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hibernate-core/src/main/java/org/hibernate/usertype/UserType.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,10 @@ public interface UserType<J> {
286286
* Read an instance of the Java class mapped by this custom type
287287
* from the given JDBC {@link ResultSet}. Implementors must handle
288288
* null column values.
289+
*
290+
* @param owner in Hibernate 6, this is always null
289291
*/
290-
J nullSafeGet(ResultSet rs, int position, SharedSessionContractImplementor session, Object owner)
292+
J nullSafeGet(ResultSet rs, int position, SharedSessionContractImplementor session, @Deprecated Object owner)
291293
throws SQLException;
292294

293295
/**

0 commit comments

Comments
 (0)