MCPcopy Index your code
hub / github.com/ebean-orm/ebean / find

Method find

ebean-api/src/main/java/io/ebean/DB.java:672–675  ·  view source on GitHub ↗

Find a bean using its unique id. This will not use caching. // Fetch order 1 Order order = DB.find(Order.class, 1); If you want more control over the query then you can use createQuery() and Query.findOne(); {@code // ... additionally fetching customer, custome

(Class<T> beanType, Object id)

Source from the content-addressed store, hash-verified

670 * @param id the id value
671 */
672 @Nullable
673 public static <T> T find(Class<T> beanType, Object id) {
674 return getDefault().find(beanType, id);
675 }
676
677 /**
678 * Look to execute a native sql query that does not return beans but instead

Callers 15

uuid_getPutMethod · 0.95
naturalKey_inPairsMethod · 0.95
naturalKey_inTuplesMethod · 0.95
testBothNearMethod · 0.95
usingConnectionMethod · 0.95
insert_and_findMethod · 0.95
loadCountryCacheMethod · 0.95
testHasDirtyPropertyMethod · 0.95
testMethod · 0.95

Calls 2

getDefaultMethod · 0.95
findMethod · 0.65

Tested by 15

uuid_getPutMethod · 0.76
naturalKey_inPairsMethod · 0.76
naturalKey_inTuplesMethod · 0.76
testBothNearMethod · 0.76
usingConnectionMethod · 0.76
insert_and_findMethod · 0.76
loadCountryCacheMethod · 0.76
testHasDirtyPropertyMethod · 0.76
testMethod · 0.76