public boolean Insertar(Object o) {
        Transaction t = cx.beginTransaction();
        try {
            cx.save(o);
            t.commit();
            cx.flush();
            return true;
        } catch (Exception e) {
            System.out.println("no se inserto");
            t.rollback();

            return false;
        }
    }