Package modelo

Examples of modelo.Persona


         
        try {
            List<Persona> results = (List<Persona>) q.execute(input.getApellido(), input.getNombre());
            if (results.isEmpty()) {
             
              Persona pers = new Persona(input.getApellido(), input.getNombre(), input.getNacionalidad());      
                try {
                    pm.makePersistent(pers);
                } finally {
                    pm.close();
                }
View Full Code Here


              List<Persona> results2 = (List<Persona>) q2.execute(input, input2);
              if (!results2.isEmpty()) {

                for (Persona e : results2) {
                     try {
                       Persona pers = pm.getObjectById(Persona.class, e.getKey());
                       pers.setApellido(input3.getApellido());
                       pers.setNombre(input3.getNombre());
                       pers.setNacionalidad(input3.getNacionalidad());
                     } finally {
                       pm.close();
                     }
                     if ((input+input2).equals(input3.getApellido()+input3.getNombre()))
                       return "La persona <b>" + input + ", " + input2 + "</b> se ha modificado correctamente.";
View Full Code Here

TOP

Related Classes of modelo.Persona

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.