diff --git a/core/src/main/java/org/hibernate/engine/query/sql/NativeSQLQueryCollectionReturn.java b/core/src/main/java/org/hibernate/engine/query/sql/NativeSQLQueryCollectionReturn.java index da50378fc8..89c55ca0eb 100644 --- a/core/src/main/java/org/hibernate/engine/query/sql/NativeSQLQueryCollectionReturn.java +++ b/core/src/main/java/org/hibernate/engine/query/sql/NativeSQLQueryCollectionReturn.java @@ -38,8 +38,8 @@ import org.hibernate.LockMode; * @author Steve Ebersole */ public class NativeSQLQueryCollectionReturn extends NativeSQLQueryNonScalarReturn { - private String ownerEntityName; - private String ownerProperty; + private final String ownerEntityName; + private final String ownerProperty; private final int hashCode; /** diff --git a/core/src/main/java/org/hibernate/engine/query/sql/NativeSQLQueryJoinReturn.java b/core/src/main/java/org/hibernate/engine/query/sql/NativeSQLQueryJoinReturn.java index dfa25babe2..eaa950267c 100644 --- a/core/src/main/java/org/hibernate/engine/query/sql/NativeSQLQueryJoinReturn.java +++ b/core/src/main/java/org/hibernate/engine/query/sql/NativeSQLQueryJoinReturn.java @@ -35,8 +35,8 @@ import org.hibernate.LockMode; * @author Steve Ebersole */ public class NativeSQLQueryJoinReturn extends NativeSQLQueryNonScalarReturn { - private String ownerAlias; - private String ownerProperty; + private final String ownerAlias; + private final String ownerProperty; private final int hashCode; /** * Construct a return descriptor representing some form of fetch. diff --git a/core/src/main/java/org/hibernate/engine/query/sql/NativeSQLQueryRootReturn.java b/core/src/main/java/org/hibernate/engine/query/sql/NativeSQLQueryRootReturn.java index 122fa8119e..87e15636c8 100644 --- a/core/src/main/java/org/hibernate/engine/query/sql/NativeSQLQueryRootReturn.java +++ b/core/src/main/java/org/hibernate/engine/query/sql/NativeSQLQueryRootReturn.java @@ -36,7 +36,7 @@ import org.hibernate.LockMode; * @author Steve Ebersole */ public class NativeSQLQueryRootReturn extends NativeSQLQueryNonScalarReturn { - private String returnEntityName; + private final String returnEntityName; private final int hashCode; /** diff --git a/core/src/main/java/org/hibernate/engine/query/sql/NativeSQLQueryScalarReturn.java b/core/src/main/java/org/hibernate/engine/query/sql/NativeSQLQueryScalarReturn.java index 388196250d..1ba109c533 100644 --- a/core/src/main/java/org/hibernate/engine/query/sql/NativeSQLQueryScalarReturn.java +++ b/core/src/main/java/org/hibernate/engine/query/sql/NativeSQLQueryScalarReturn.java @@ -32,8 +32,8 @@ import org.hibernate.type.Type; * @author gloegl */ public class NativeSQLQueryScalarReturn implements NativeSQLQueryReturn { - private Type type; - private String columnAlias; + private final Type type; + private final String columnAlias; private final int hashCode; public NativeSQLQueryScalarReturn(String alias, Type type) {