mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-03 19:57:36 +08:00
Deprecate EntityManager.setView() and addView() methods
This commit is contained in:
parent
d329f33a95
commit
6187cdd745
@ -175,22 +175,24 @@ public interface EntityManager {
|
||||
* Set View for this EntityManager instance and all created {@link Query}s.
|
||||
* All non-lazy view properties contained in a combination of all added views are eagerly fetched.
|
||||
*
|
||||
* <p/> WARNING: Use of this method is not recommended, it's better to specify view explicitly in
|
||||
* <code>find()</code> methods or in <code>Query</code> instances.
|
||||
* <p> DEPRECATED! Will be removed in 6.0. Specify view explicitly in <code>find()</code> methods or in
|
||||
* <code>Query</code> instances.
|
||||
*
|
||||
* @param view view instance. If null, eager fetching is performed according to JPA mappings.
|
||||
*/
|
||||
@Deprecated
|
||||
void setView(@Nullable View view);
|
||||
|
||||
/**
|
||||
* Adds View for this EntityManager instance and all created {@link Query}s.
|
||||
* All non-lazy view properties contained in a combination of all added views are eagerly fetched.
|
||||
*
|
||||
* <p/> WARNING: Use of this method is not recommended, it's better to specify view explicitly in
|
||||
* <code>find()</code> methods or in <code>Query</code> instances.
|
||||
* <p> DEPRECATED! Will be removed in 6.0. Specify view explicitly in <code>find()</code> methods or in
|
||||
* <code>Query</code> instances.
|
||||
*
|
||||
* @param view non-null view instance
|
||||
*/
|
||||
@Deprecated
|
||||
void addView(View view);
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user