/** Buscar objetos en base de datos por campo en especifico */
@SuppressWarnings({})
public static Object findObjectByField(String Table, String field,
String value) {
JPAPersistenceManager gt = new JPAPersistenceManager();
Object objResul = null;
try {
objResul = gt.getObjects(
"Select a From " + Table + " a Where a." + field + "="
+ value).get(0);
} catch (Exception e) {
logger.warn("Error general: findObjectByField ", e);
objResul = null;