Commit 5c0eab31 by Luis Gangas
parents b77a7ebb 2d17786e
......@@ -146,6 +146,7 @@ public class PersonaMysqlDAO implements PersonaDAO {
+ " apellidoPaterno, " // apellido_paterno
+ " apellidoMaterno, " // apellido_materno
+ " nombre, "
+ " apellido, "
+ " codigo_tipo_documento, "
+ " dni, " // numero_documento
+ " email, " // correo
......@@ -175,10 +176,11 @@ public class PersonaMysqlDAO implements PersonaDAO {
psPersona.setString(1, p.getApellidoPaterno());
psPersona.setString(2, p.getApellidoMaterno());
psPersona.setString(3, p.getNombre());
psPersona.setInt(4, p.getCodigoTipoDocumento());
psPersona.setString(5, p.getNumeroDocumento());
psPersona.setString(6, p.getCorreo());
psPersona.setInt(7, p.getIsDefaultMail());
psPersona.setString(4, p.getApellidoPaterno() + " " + p.getApellidoMaterno());
psPersona.setInt(5, p.getCodigoTipoDocumento());
psPersona.setString(6, p.getNumeroDocumento());
psPersona.setString(7, p.getCorreo());
psPersona.setInt(8, p.getIsDefaultMail());
int resultRegistrarPersona = psPersona.executeUpdate();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment