Skip to content

Commit beb45aa

Browse files
committed
Suppress deprecation warning in PersistenceInjectionTests
1 parent 2b6971a commit beb45aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-orm/src/test/java/org/springframework/orm/jpa/support/PersistenceInjectionTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
import javax.persistence.PersistenceProperty;
3131
import javax.persistence.PersistenceUnit;
3232

33-
import org.hibernate.ejb.HibernateEntityManager;
34-
3533
import org.junit.Ignore;
3634
import org.junit.Test;
3735

@@ -715,7 +713,8 @@ public static class DefaultPrivatePersistenceContextField {
715713
public static class DefaultVendorSpecificPrivatePersistenceContextField {
716714

717715
@PersistenceContext
718-
private HibernateEntityManager em;
716+
@SuppressWarnings("deprecation")
717+
private org.hibernate.ejb.HibernateEntityManager em;
719718
}
720719

721720

@@ -896,4 +895,5 @@ public Object invoke(Object proxy, Method method, Object[] args) throws Throwabl
896895
throw new IllegalStateException();
897896
}
898897
}
898+
899899
}

0 commit comments

Comments
 (0)