From ab6860a3e81d5bd20f1ebf80932dc7171bb87c67 Mon Sep 17 00:00:00 2001 From: Emmanuel Bernard Date: Wed, 9 Feb 2011 10:30:35 +0100 Subject: [PATCH 1/3] HHH-5906 make AbstractEntityPersister#getPropertyUniqueness public --- .../org/hibernate/persister/entity/AbstractEntityPersister.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java b/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java index bf2d8404e1..612ed153fb 100644 --- a/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java +++ b/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java @@ -1160,7 +1160,7 @@ public abstract class AbstractEntityPersister return select.addCondition( rootTableKeyColumnNames, "=?" ).toStatementString(); } - protected boolean[] getPropertyUniqueness() { + public boolean[] getPropertyUniqueness() { return propertyUniqueness; } From eedc3d0101a0f28b99a4f599e87397ed4ab25ebd Mon Sep 17 00:00:00 2001 From: Strong Liu Date: Wed, 9 Feb 2011 20:45:31 +0800 Subject: [PATCH 2/3] ignore eclipse bin directory from git --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index cfebbffad7..5bc13dec5a 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,7 @@ atlassian-ide-plugin.xml .project .settings .metadata +*/bin # NetBeans specific files/directories .nbattrs From 2a0309c3d0676b551de56eefed05278410ad04be Mon Sep 17 00:00:00 2001 From: Strong Liu Date: Wed, 9 Feb 2011 20:45:48 +0800 Subject: [PATCH 3/3] HHH-5907 change to use autobox instead of create new object everytime to get minor improvement --- .../main/java/org/hibernate/dialect/DerbyDialect.java | 4 ++++ .../src/main/java/org/hibernate/dialect/TypeNames.java | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/DerbyDialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/DerbyDialect.java index 9fdcd6e73f..63869498f0 100755 --- a/hibernate-core/src/main/java/org/hibernate/dialect/DerbyDialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/DerbyDialect.java @@ -221,4 +221,8 @@ public class DerbyDialect extends DB2Dialect { public boolean supportsLobValueChangePropogation() { return false; } + + public boolean supportsUnboundedLobLocatorMaterialization() { + return false; + } } diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/TypeNames.java b/hibernate-core/src/main/java/org/hibernate/dialect/TypeNames.java index f5d06fa3d8..c58af8a234 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/TypeNames.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/TypeNames.java @@ -73,7 +73,7 @@ public class TypeNames { * @return the default type name associated with specified key */ public String get(int typecode) throws MappingException { - String result = defaults.get( new Integer(typecode) ); + String result = defaults.get( typecode ); if (result==null) throw new MappingException("No Dialect mapping for JDBC type: " + typecode); return result; } @@ -88,7 +88,7 @@ public class TypeNames { * if available and the default type name otherwise */ public String get(int typecode, int size, int precision, int scale) throws MappingException { - Map map = weighted.get( new Integer(typecode) ); + Map map = weighted.get( typecode ); if ( map!=null && map.size()>0 ) { // iterate entries ordered by capacity to find first fit for (Map.Entry entry: map.entrySet()) { @@ -111,10 +111,10 @@ public class TypeNames { * @param typecode the type key */ public void put(int typecode, int capacity, String value) { - Map map = weighted.get( new Integer(typecode) ); + Map map = weighted.get( typecode ); if (map == null) {// add new ordered map map = new TreeMap(); - weighted.put( new Integer(typecode), map ); + weighted.put( typecode, map ); } map.put(new Integer(capacity), value); } @@ -124,7 +124,7 @@ public class TypeNames { * @param typecode the type key */ public void put(int typecode, String value) { - defaults.put( new Integer(typecode), value ); + defaults.put( typecode, value ); } }