Minor improvement to the previous backport commit
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
This commit is contained in:
parent
0af8755949
commit
0cbf0e5bf8
|
@ -61,6 +61,11 @@ public class EmbeddableWithManyToMany_HHH_11302_Test
|
|||
"@OneToMany, @ManyToMany or @ElementCollection cannot be used inside an @Embeddable that is also contained within an @ElementCollection"
|
||||
) );
|
||||
}
|
||||
finally {
|
||||
if ( serviceRegistry() != null ) {
|
||||
serviceRegistry().destroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
@ -61,6 +61,11 @@ public class EmbeddableWithOneToMany_HHH_11302_Test
|
|||
"@OneToMany, @ManyToMany or @ElementCollection cannot be used inside an @Embeddable that is also contained within an @ElementCollection"
|
||||
) );
|
||||
}
|
||||
finally {
|
||||
if ( serviceRegistry() != null ) {
|
||||
serviceRegistry().destroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
@ -55,6 +55,11 @@ public class EmbeddableWithOneToMany_HHH_8564_Test
|
|||
"@OneToMany, @ManyToMany or @ElementCollection cannot be used inside an @Embeddable that is also contained within an @ElementCollection"
|
||||
) );
|
||||
}
|
||||
finally {
|
||||
if ( serviceRegistry() != null ) {
|
||||
serviceRegistry().destroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
@ -53,6 +53,11 @@ public class EmbeddableWithOneToMany_HHH_8860_Test
|
|||
"@OneToMany, @ManyToMany or @ElementCollection cannot be used inside an @Embeddable that is also contained within an @ElementCollection"
|
||||
) );
|
||||
}
|
||||
finally {
|
||||
if ( serviceRegistry() != null ) {
|
||||
serviceRegistry().destroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue