Skip to content
Browse files

JPA-43 - Impl Index and ForeignKey for JPA 2.1

  • Loading branch information...
1 parent 51a7df5 commit 0e6d08d414ceca425281960b7b336f55c26cbddb @stliu stliu committed Feb 28, 2013
View
4 hibernate-core/src/test/java/org/hibernate/test/annotations/index/jpa/IndexTest.java
@@ -144,9 +144,9 @@ public void testJoinTableIndex(){
Bag set = (Bag)property.getValue();
Table collectionTable = set.getCollectionTable();
- Iterator<UniqueKey> itr = collectionTable.getUniqueKeyIterator();
+ Iterator<Index> itr = collectionTable.getIndexIterator();
assertTrue( itr.hasNext() );
- UniqueKey index = itr.next();
+ Index index = itr.next();
assertFalse( itr.hasNext() );
assertTrue( "index name is not generated", StringHelper.isNotEmpty( index.getName() ) );
assertEquals( 1, index.getColumnSpan() );
View
2 hibernate-core/src/test/java/org/hibernate/test/event/collection/detached/Alias.java
@@ -69,7 +69,7 @@ public void setAlias(String alias) {
}
@ManyToMany( cascade = CascadeType.ALL )
- @JoinTable( name = "CHARACTER_ALIAS", indexes = @Index( columnList = "characters_id", unique = true))
+ @JoinTable( name = "CHARACTER_ALIAS", indexes = @Index( columnList = "characters_id"))
// @JoinTable(
// name = "CHARACTER_ALIAS",
// joinColumns = @JoinColumn(name="ALIAS_ID", referencedColumnName="ID"),

0 comments on commit 0e6d08d

Please sign in to comment.
Something went wrong with that request. Please try again.