@@ -828,7 +828,11 @@ public interface Session extends SharedSessionContract, EntityManager {
828828 * @param id an identifier
829829 *
830830 * @return a persistent instance or null
831+ *
832+ * @deprecated Because the semantics of this method may change in a future release.
833+ * Use {@link #find(Class, Object)} instead.
831834 */
835+ @ Deprecated (since = "7" )
832836 <T > T get (Class <T > entityType , Object id );
833837
834838 /**
@@ -848,7 +852,11 @@ public interface Session extends SharedSessionContract, EntityManager {
848852 * @return a persistent instance or null
849853 *
850854 * @see #get(Class, Object, LockOptions)
855+ *
856+ * @deprecated The semantics of this method may change in a future release.
857+ * Use {@link #find(Class, Object, LockMode)} instead.
851858 */
859+ @ Deprecated (since = "7" )
852860 <T > T get (Class <T > entityType , Object id , LockMode lockMode );
853861
854862 /**
@@ -862,7 +870,11 @@ public interface Session extends SharedSessionContract, EntityManager {
862870 * @param lockOptions the lock mode
863871 *
864872 * @return a persistent instance or null
873+ *
874+ * @deprecated The semantics of this method may change in a future release.
875+ * Use {@link #find(Class, Object, LockOptions)} instead.
865876 */
877+ @ Deprecated (since = "7" )
866878 <T > T get (Class <T > entityType , Object id , LockOptions lockOptions );
867879
868880 /**
@@ -875,7 +887,10 @@ public interface Session extends SharedSessionContract, EntityManager {
875887 * @param id an identifier
876888 *
877889 * @return a persistent instance or null
890+ *
891+ * @deprecated The semantics of this method may change in a future release.
878892 */
893+ @ Deprecated (since = "7" )
879894 Object get (String entityName , Object id );
880895
881896 /**
@@ -893,7 +908,10 @@ public interface Session extends SharedSessionContract, EntityManager {
893908 * @return a persistent instance or null
894909 *
895910 * @see #get(String, Object, LockOptions)
911+ *
912+ * @deprecated The semantics of this method may change in a future release.
896913 */
914+ @ Deprecated (since = "7" )
897915 Object get (String entityName , Object id , LockMode lockMode );
898916
899917 /**
@@ -907,7 +925,10 @@ public interface Session extends SharedSessionContract, EntityManager {
907925 * @param lockOptions contains the lock mode
908926 *
909927 * @return a persistent instance or null
928+ *
929+ * @deprecated The semantics of this method may change in a future release.
910930 */
931+ @ Deprecated (since = "7" )
911932 Object get (String entityName , Object id , LockOptions lockOptions );
912933
913934 /**
0 commit comments