-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
introduce FindOption interface and new overloads of EM.find() #454
Conversation
831c091
to
170aeb5
Compare
9d3b0f2
to
2ff9bf3
Compare
The purpose of these operations is to suppress defaulted EAGER association loading in load graphs, but it can be used more broadly to suppress loading of any graph node. see jakartaee#383.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Specify a timeout in seconds. | ||
* (Abbreviation of {@link #seconds(int)}.) | ||
*/ | ||
public Timeout s(int seconds) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoops, another oversight - this (and few other methods) should be static, right now there is no way to create/get an instance of the Timeout
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OMG I suck. Sorry.
…erloads of EM.find() * implemented public <T> T find(Class<T> entityClass, Object primaryKey, FindOption... options) * added FindOption processing for JPA API enums, Timeout class was not added yet Signed-off-by: Tomáš Kraus <tomas.kraus@oracle.com>
…erloads of EM.find() * implemented public <T> T find(Class<T> entityClass, Object primaryKey, FindOption... options) * added FindOption processing for JPA API enums, Timeout class was not added yet Signed-off-by: Tomáš Kraus <tomas.kraus@oracle.com>
…erloads of EM.find() * implemented public <T> T find(Class<T> entityClass, Object primaryKey, FindOption... options) * added FindOption processing for JPA API enums, Timeout class was not added yet Signed-off-by: Tomáš Kraus <tomas.kraus@oracle.com>
…erloads of EM.find() * implemented public <T> T find(Class<T> entityClass, Object primaryKey, FindOption... options) * added FindOption processing for JPA API enums, Timeout class was not added yet Signed-off-by: Tomáš Kraus <tomas.kraus@oracle.com>
…erloads of EM.find() jakartaee/persistence#467 - add joins to entity types (range variables) Signed-off-by: Tomáš Kraus <tomas.kraus@oracle.com>
…erloads of EM.find() jakartaee/persistence#467 - add joins to entity types (range variables) Signed-off-by: Tomáš Kraus <tomas.kraus@oracle.com>
…erloads of EM.find() jakartaee/persistence#467 - add joins to entity types (range variables) Signed-off-by: Tomáš Kraus <tomas.kraus@oracle.com>
…AttributeType) in Graph Signed-off-by: Tomáš Kraus <tomas.kraus@oracle.com>
…AttributeType) in Graph Signed-off-by: Tomáš Kraus <tomas.kraus@oracle.com>
…AttributeType) in Graph Signed-off-by: Tomáš Kraus <tomas.kraus@oracle.com>
Introduces:
FindOption
interface and new overloads ofEM.find()
RefreshOption
interface and new overloads ofEM.refresh()
LockOption
interface and new overloads ofEM.lock()
Graph.removeAttributeNode()
setCacheStoreMode()
/setCacheRetreiveMode()
onEntityManager
andQuery
see #383 and #65. (Also #64.)