Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: stliu/hibernate-orm
...
head fork: stliu/hibernate-orm
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
View
6 hibernate-core/src/main/java/org/hibernate/mapping/SimpleValue.java
@@ -334,8 +334,8 @@ public Type getType() throws MappingException {
createParameterImpl();
}
- type = mappings.getTypeResolver().heuristicType( typeName, typeParameters );
- if ( type == null ) {
+ Type result = mappings.getTypeResolver().heuristicType( typeName, typeParameters );
+ if ( result == null ) {
String msg = "Could not determine type for: " + typeName;
if ( table != null ) {
msg += ", at table: " + table.getName();
@@ -345,7 +345,7 @@ public Type getType() throws MappingException {
}
throw new MappingException( msg );
}
- return type;
+ return result;
}
@SuppressWarnings("unchecked")
View
15 hibernate-core/src/test/java/org/hibernate/test/annotations/index/jpa/IndexTest.java
@@ -78,7 +78,6 @@ public void testBasicIndex() {
@Test
public void testSecondaryTableIndex(){
PersistentClass entity = configuration().getClassMapping( Book.class.getName() );
-
Join join = (Join)entity.getJoinIterator().next();
Iterator<Index> itr = join.getTable().getIndexIterator();
assertTrue( itr.hasNext() );
@@ -92,6 +91,20 @@ public void testSecondaryTableIndex(){
column = columnIterator.next();
assertEquals( "text", column.getName() );
assertSame( join.getTable(), index.getTable() );
+ }
+
+ @Test
+ public void testJoinTableIndex(){
+
+ }
+
+ @Test
+ public void testCollectionTableIndex(){
+
+ }
+
+ @Test
+ public void testTableGeneratorIndex(){
}
}

No commit comments for this range

Something went wrong with that request. Please try again.