mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-14 06:45:21 +00:00
#2419 - Add explicit @Nullable on findOne() methods
This commit is contained in:
1 parent
5a4924b6cb
commit
709eb369c9
2 files changed
+2
No files matched your search
@@ -1236,6 +1236,7 @@ public interface Database {
|
|||||||
* @param id the bean id value
|
* @param id the bean id value
|
||||||
* @param transaction the transaction to use (can be null)
|
* @param transaction the transaction to use (can be null)
|
||||||
*/
|
*/
|
||||||
|
@Nullable
|
||||||
<T> T find(Class<T> beanType, Object id, Transaction transaction);
|
<T> T find(Class<T> beanType, Object id, Transaction transaction);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -2302,6 +2302,7 @@ public final class DefaultServer implements SpiServer, SpiEbeanServer {
|
|||||||
/**
|
/**
|
||||||
* Returns a set of properties if saving the bean will violate the unique constraints (defined by given properties).
|
* Returns a set of properties if saving the bean will violate the unique constraints (defined by given properties).
|
||||||
*/
|
*/
|
||||||
|
@Nullable
|
||||||
private Set<Property> checkUniqueness(EntityBean entityBean, BeanDescriptor<?> beanDesc, BeanProperty[] props, Transaction transaction) {
|
private Set<Property> checkUniqueness(EntityBean entityBean, BeanDescriptor<?> beanDesc, BeanProperty[] props, Transaction transaction) {
|
||||||
BeanProperty idProperty = beanDesc.idProperty();
|
BeanProperty idProperty = beanDesc.idProperty();
|
||||||
Query<?> query = new DefaultOrmQuery<>(beanDesc, this, expressionFactory);
|
Query<?> query = new DefaultOrmQuery<>(beanDesc, this, expressionFactory);
|
||||||
|
|||||||
Reference in new issue
Block a user