@ SuppressWarnings ( { "unchecked" } ) public < E > E findOne ( final Object criteria ) { return ( E ) query ( dbOom . entities ( ) . find ( criteria ) ) . autoClose ( ) . find ( criteria . getClass ( ) ) ; }
Finds one entity for given criteria .