packageprofesor;importentity.Profesor;importjava.sql.Connection;importjava.sql.DriverManager;importjava.sql.PreparedStatement;publicclassProfesorDao{publicstaticintsave(Profesorp){intstatus=0;try{Connectioncon=ProfesorDao.getConnection();PreparedStatementps=con.prepareStatement("insert into profesor (nombre,apellido,nro_cedula,correo) values (?,?,?,?)");ps.setString(1,p.getNombre());ps.setString(2,p.getApellido());ps.setInt(3,p.getNro_cedula());ps.setString(4,p.getCorreo());status=ps.executeUpdate();con.close();}catch(Exceptionex){ex.printStackTrace();}returnstatus;}}