HHH-5251 : NativeSQLQueryReturn impls pre-cache a final hashcode based on non-final fields
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19721 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
cd304f83cf
commit
c53359d468
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue