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:
Gail Badner 2010-06-13 22:19:34 +00:00
parent cd304f83cf
commit c53359d468
4 changed files with 7 additions and 7 deletions

View File

@ -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;
/**

View File

@ -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.

View File

@ -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;
/**

View File

@ -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) {