File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
hibernate-core/src/main/java/org/hibernate Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1101,7 +1101,11 @@ public interface Session extends SharedSessionContract, EntityManager {
11011101 * @return an instance of {@link IdentifierLoadAccess} for executing the lookup
11021102 *
11031103 * @throws HibernateException If the given class does not resolve as a mapped entity
1104+ *
1105+ * @deprecated This method will be removed.
1106+ * Use {@link #find(Class, Object, FindOption...)} instead.
11041107 */
1108+ @ Deprecated (since = "7.2" , forRemoval = true )
11051109 <T > IdentifierLoadAccess <T > byId (Class <T > entityClass );
11061110
11071111 /**
@@ -1113,7 +1117,11 @@ public interface Session extends SharedSessionContract, EntityManager {
11131117 * @return an instance of {@link IdentifierLoadAccess} for executing the lookup
11141118 *
11151119 * @throws HibernateException If the given name does not resolve to a mapped entity
1120+ *
1121+ * @deprecated This method will be removed.
1122+ * Use {@link #find(Class, Object, FindOption...)} instead.
11161123 */
1124+ @ Deprecated (since = "7.2" , forRemoval = true )
11171125 <T > IdentifierLoadAccess <T > byId (String entityName );
11181126
11191127 /**
You can’t perform that action at this time.
0 commit comments