mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 00:24:57 +00:00
change the names because Steve didn't like fetching()/loading()
This commit is contained in:
parent
d424957cac
commit
dc1fe43f52
@ -43,19 +43,20 @@ public interface IdentifierLoadAccess<T> {
|
||||
*/
|
||||
IdentifierLoadAccess<T> withReadOnly(boolean readOnly);
|
||||
|
||||
default IdentifierLoadAccess<T> fetching(RootGraph<T> graph) {
|
||||
default IdentifierLoadAccess<T> withFetchGraph(RootGraph<T> graph) {
|
||||
return with( graph, GraphSemantic.FETCH );
|
||||
}
|
||||
default IdentifierLoadAccess<T> loading(RootGraph<T> graph) {
|
||||
|
||||
default IdentifierLoadAccess<T> withLoadGraph(RootGraph<T> graph) {
|
||||
return with( graph, GraphSemantic.LOAD );
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #loading}
|
||||
* @deprecated use {@link #withLoadGraph}
|
||||
*/
|
||||
@Deprecated(since = "6.3")
|
||||
default IdentifierLoadAccess<T> with(RootGraph<T> graph) {
|
||||
return loading( graph );
|
||||
return withLoadGraph( graph );
|
||||
}
|
||||
|
||||
IdentifierLoadAccess<T> with(RootGraph<T> graph, GraphSemantic semantic);
|
||||
|
@ -36,15 +36,16 @@ public interface MultiIdentifierLoadAccess<T> {
|
||||
*/
|
||||
MultiIdentifierLoadAccess<T> with(CacheMode cacheMode);
|
||||
|
||||
default MultiIdentifierLoadAccess<T> fetching(RootGraph<T> graph) {
|
||||
default MultiIdentifierLoadAccess<T> withFetchGraph(RootGraph<T> graph) {
|
||||
return with( graph, GraphSemantic.FETCH );
|
||||
}
|
||||
default MultiIdentifierLoadAccess<T> loading(RootGraph<T> graph) {
|
||||
|
||||
default MultiIdentifierLoadAccess<T> withLoadGraph(RootGraph<T> graph) {
|
||||
return with( graph, GraphSemantic.LOAD );
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #loading}
|
||||
* @deprecated use {@link #withLoadGraph}
|
||||
*/
|
||||
@Deprecated(since = "6.3")
|
||||
default MultiIdentifierLoadAccess<T> with(RootGraph<T> graph) {
|
||||
|
@ -35,15 +35,16 @@ public interface NaturalIdMultiLoadAccess<T> {
|
||||
*/
|
||||
NaturalIdMultiLoadAccess<T> with(CacheMode cacheMode);
|
||||
|
||||
default NaturalIdMultiLoadAccess<T> fetching(RootGraph<T> graph) {
|
||||
default NaturalIdMultiLoadAccess<T> withFetchGraph(RootGraph<T> graph) {
|
||||
return with( graph, GraphSemantic.FETCH );
|
||||
}
|
||||
default NaturalIdMultiLoadAccess<T> loading(RootGraph<T> graph) {
|
||||
|
||||
default NaturalIdMultiLoadAccess<T> withLoadGraph(RootGraph<T> graph) {
|
||||
return with( graph, GraphSemantic.LOAD );
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #loading}
|
||||
* @deprecated use {@link #withLoadGraph}
|
||||
*/
|
||||
@Deprecated(since = "6.3")
|
||||
default NaturalIdMultiLoadAccess<T> with(RootGraph<T> graph) {
|
||||
|
@ -14,7 +14,6 @@
|
||||
import org.hibernate.HibernateException;
|
||||
import org.hibernate.LockOptions;
|
||||
import org.hibernate.SimpleNaturalIdLoadAccess;
|
||||
import org.hibernate.engine.spi.SessionImplementor;
|
||||
import org.hibernate.loader.LoaderLogging;
|
||||
import org.hibernate.metamodel.mapping.EntityMappingType;
|
||||
import org.hibernate.metamodel.mapping.internal.SimpleNaturalIdMapping;
|
||||
|
Loading…
x
Reference in New Issue
Block a user