public static PtroleresBean findFirst(String sSqlWhere, boolean isAutoRelease) throws Exception { PtroleresBean bean = new PtroleresBean(); bean.setAutoRelease(isAutoRelease); return (PtroleresBean) bean.findFirstByWhere(sSqlWhere); }