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 @@
* @author Steve Ebersole * @author Steve Ebersole
*/ */
public class NativeSQLQueryCollectionReturn extends NativeSQLQueryNonScalarReturn { public class NativeSQLQueryCollectionReturn extends NativeSQLQueryNonScalarReturn {
private String ownerEntityName; private final String ownerEntityName;
private String ownerProperty; private final String ownerProperty;
private final int hashCode; private final int hashCode;
/** /**

View File

@ -35,8 +35,8 @@
* @author Steve Ebersole * @author Steve Ebersole
*/ */
public class NativeSQLQueryJoinReturn extends NativeSQLQueryNonScalarReturn { public class NativeSQLQueryJoinReturn extends NativeSQLQueryNonScalarReturn {
private String ownerAlias; private final String ownerAlias;
private String ownerProperty; private final String ownerProperty;
private final int hashCode; private final int hashCode;
/** /**
* Construct a return descriptor representing some form of fetch. * Construct a return descriptor representing some form of fetch.

View File

@ -36,7 +36,7 @@
* @author Steve Ebersole * @author Steve Ebersole
*/ */
public class NativeSQLQueryRootReturn extends NativeSQLQueryNonScalarReturn { public class NativeSQLQueryRootReturn extends NativeSQLQueryNonScalarReturn {
private String returnEntityName; private final String returnEntityName;
private final int hashCode; private final int hashCode;
/** /**

View File

@ -32,8 +32,8 @@
* @author gloegl * @author gloegl
*/ */
public class NativeSQLQueryScalarReturn implements NativeSQLQueryReturn { public class NativeSQLQueryScalarReturn implements NativeSQLQueryReturn {
private Type type; private final Type type;
private String columnAlias; private final String columnAlias;
private final int hashCode; private final int hashCode;
public NativeSQLQueryScalarReturn(String alias, Type type) { public NativeSQLQueryScalarReturn(String alias, Type type) {