Commit 5c0eab31 by Luis Gangas
parents b77a7ebb 2d17786e
...@@ -146,6 +146,7 @@ public class PersonaMysqlDAO implements PersonaDAO { ...@@ -146,6 +146,7 @@ public class PersonaMysqlDAO implements PersonaDAO {
+ " apellidoPaterno, " // apellido_paterno + " apellidoPaterno, " // apellido_paterno
+ " apellidoMaterno, " // apellido_materno + " apellidoMaterno, " // apellido_materno
+ " nombre, " + " nombre, "
+ " apellido, "
+ " codigo_tipo_documento, " + " codigo_tipo_documento, "
+ " dni, " // numero_documento + " dni, " // numero_documento
+ " email, " // correo + " email, " // correo
...@@ -175,10 +176,11 @@ public class PersonaMysqlDAO implements PersonaDAO { ...@@ -175,10 +176,11 @@ public class PersonaMysqlDAO implements PersonaDAO {
psPersona.setString(1, p.getApellidoPaterno()); psPersona.setString(1, p.getApellidoPaterno());
psPersona.setString(2, p.getApellidoMaterno()); psPersona.setString(2, p.getApellidoMaterno());
psPersona.setString(3, p.getNombre()); psPersona.setString(3, p.getNombre());
psPersona.setInt(4, p.getCodigoTipoDocumento()); psPersona.setString(4, p.getApellidoPaterno() + " " + p.getApellidoMaterno());
psPersona.setString(5, p.getNumeroDocumento()); psPersona.setInt(5, p.getCodigoTipoDocumento());
psPersona.setString(6, p.getCorreo()); psPersona.setString(6, p.getNumeroDocumento());
psPersona.setInt(7, p.getIsDefaultMail()); psPersona.setString(7, p.getCorreo());
psPersona.setInt(8, p.getIsDefaultMail());
int resultRegistrarPersona = psPersona.executeUpdate(); 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