@@ -828,7 +828,11 @@ public interface Session extends SharedSessionContract, EntityManager {
828
828
* @param id an identifier
829
829
*
830
830
* @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.
831
834
*/
835
+ @ Deprecated (since = "7" )
832
836
<T > T get (Class <T > entityType , Object id );
833
837
834
838
/**
@@ -848,7 +852,11 @@ public interface Session extends SharedSessionContract, EntityManager {
848
852
* @return a persistent instance or null
849
853
*
850
854
* @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.
851
858
*/
859
+ @ Deprecated (since = "7" )
852
860
<T > T get (Class <T > entityType , Object id , LockMode lockMode );
853
861
854
862
/**
@@ -862,7 +870,11 @@ public interface Session extends SharedSessionContract, EntityManager {
862
870
* @param lockOptions the lock mode
863
871
*
864
872
* @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.
865
876
*/
877
+ @ Deprecated (since = "7" )
866
878
<T > T get (Class <T > entityType , Object id , LockOptions lockOptions );
867
879
868
880
/**
@@ -875,7 +887,10 @@ public interface Session extends SharedSessionContract, EntityManager {
875
887
* @param id an identifier
876
888
*
877
889
* @return a persistent instance or null
890
+ *
891
+ * @deprecated The semantics of this method may change in a future release.
878
892
*/
893
+ @ Deprecated (since = "7" )
879
894
Object get (String entityName , Object id );
880
895
881
896
/**
@@ -893,7 +908,10 @@ public interface Session extends SharedSessionContract, EntityManager {
893
908
* @return a persistent instance or null
894
909
*
895
910
* @see #get(String, Object, LockOptions)
911
+ *
912
+ * @deprecated The semantics of this method may change in a future release.
896
913
*/
914
+ @ Deprecated (since = "7" )
897
915
Object get (String entityName , Object id , LockMode lockMode );
898
916
899
917
/**
@@ -907,7 +925,10 @@ public interface Session extends SharedSessionContract, EntityManager {
907
925
* @param lockOptions contains the lock mode
908
926
*
909
927
* @return a persistent instance or null
928
+ *
929
+ * @deprecated The semantics of this method may change in a future release.
910
930
*/
931
+ @ Deprecated (since = "7" )
911
932
Object get (String entityName , Object id , LockOptions lockOptions );
912
933
913
934
/**
0 commit comments