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)
| 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 |