HHH-17061 Remove PersistentClass#getJoinClosureIterator
This commit is contained in:
parent
c4b0a71722
commit
58c3460f1f
|
@ -727,11 +727,6 @@ public abstract class PersistentClass implements IdentifiableTypeClass, Attribut
|
|||
return joins.iterator();
|
||||
}
|
||||
|
||||
@Deprecated(since = "6.0")
|
||||
public Iterator<Join> getJoinClosureIterator() {
|
||||
return joins.iterator();
|
||||
}
|
||||
|
||||
public void addJoin(Join join) {
|
||||
if ( !joins.contains(join) ) {
|
||||
joins.add( join );
|
||||
|
|
|
@ -246,15 +246,6 @@ public class Subclass extends PersistentClass {
|
|||
return new JoinedList<>( getSuperclass().getJoinClosure(), super.getJoinClosure() );
|
||||
}
|
||||
|
||||
@Deprecated(since = "6.0") @SuppressWarnings("deprecation")
|
||||
public Iterator<Join> getJoinClosureIterator() {
|
||||
return new JoinedIterator<>(
|
||||
getSuperclass().getJoinClosureIterator(),
|
||||
super.getJoinClosureIterator()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isClassOrSuperclassJoin(Join join) {
|
||||
return super.isClassOrSuperclassJoin( join )
|
||||
|
|
|
@ -38,7 +38,7 @@ import static org.junit.Assert.fail;
|
|||
public class JoinTest extends BaseNonConfigCoreFunctionalTestCase {
|
||||
@Test
|
||||
public void testDefaultValue() {
|
||||
Join join = metadata().getEntityBinding( Life.class.getName() ).getJoinClosureIterator().next();
|
||||
Join join = metadata().getEntityBinding( Life.class.getName() ).getJoinClosure().get( 0 );
|
||||
assertEquals( "ExtendedLife", join.getTable().getName() );
|
||||
org.hibernate.mapping.Column owner = new org.hibernate.mapping.Column();
|
||||
owner.setName( "LIFE_ID" );
|
||||
|
@ -63,7 +63,7 @@ public class JoinTest extends BaseNonConfigCoreFunctionalTestCase {
|
|||
|
||||
@Test
|
||||
public void testCompositePK() {
|
||||
Join join = metadata().getEntityBinding( Dog.class.getName() ).getJoinClosureIterator().next();
|
||||
Join join = metadata().getEntityBinding( Dog.class.getName() ).getJoinClosure().get( 0 );
|
||||
assertEquals( "DogThoroughbred", join.getTable().getName() );
|
||||
org.hibernate.mapping.Column owner = new org.hibernate.mapping.Column();
|
||||
owner.setName( "OWNER_NAME" );
|
||||
|
|
Loading…
Reference in New Issue