The application reads all connection settings fromDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/kenri89/PROYECTO_UTP_AED_1_1/llms.txt
Use this file to discover all available pages before exploring further.
src/config.properties at startup through the ConexionSQL utility class, which calls ConexionSQL.class.getClassLoader().getResourceAsStream("config.properties") to load the file from the classpath. If a valid SQL Server connection is established, all reads and writes go through the JDBC-based DAOs (CursoDAO, EstudianteDAO, MatriculaDAO, UsuarioDAO). If the connection cannot be established, the application automatically switches to the local TSV persistence model managed by PersistenciaAcademica, which stores data as tab-separated files under ~/.proyecto_utp_aed_datos/.
Connection Properties
The hostname or IP address of the SQL Server instance. Use
localhost when running SQL Server on the same machine as the application.The TCP port SQL Server listens on. The default SQL Server port is
1433. Change this only if your instance is configured to use a non-standard port.The name of the target database. Must match the database created by
schema.sql. The expected value is iestp_peru_japon.The SQL Server login username used for authentication. The system user
sa works during development; use a dedicated application-scoped login in shared or production environments.The password for the SQL Server login specified in
db.user. Stored in plain text in this file — see the security warning at the bottom of this page.Passed to the
mssql-jdbc driver as the encrypt connection property. Set to true to enable TLS encryption on the JDBC connection.Passed to the driver as
trustServerCertificate. When true, the driver accepts self-signed certificates, which is typical for local developer SQL Server installations that do not have a CA-signed TLS certificate.Full Configuration File
The file below shows all properties as they appear insrc/config.properties:
Local File Persistence
When SQL Server is unavailable,PersistenciaAcademica reads from and writes to the directory:
C:\Users\<you>\.proyecto_utp_aed_datos\ on Windows or /home/<you>/.proyecto_utp_aed_datos/ on Linux/macOS. The directory is created automatically on first save via FileUtils.forceMkdir(...).
Four TSV files store the in-memory state of the five custom data structures:
| File | Columns | Backed structure |
|---|---|---|
cursos.tsv | codigo, nombre, creditos, semestre | ArregloCursos, MatrizSemestres, ListaCursos |
estudiantes.tsv | carnet, nombre, carrera | ArbolEstudiantes |
matriculas.tsv | carnet, codigo_curso | ListaMatricula |
solicitudes.tsv | carnet, tipo, descripcion, fecha, atendida, fecha_atencion | Queue<Solicitud> |
PersistenciaAcademica.guardar(...) and read back by PersistenciaAcademica.cargar(...). Lines beginning with # and blank lines are ignored. Each call to cargar clears all five in-memory structures before repopulating them, ensuring a clean load on every startup.
Default Users
schema.sql seeds three accounts into the usuarios table immediately after the schema is created:
usuarios table schema for reference:
dao.UsuarioDAO.autenticar(username, password, rol). The role value selected in the LoginFrame drop-down is matched against the rol column, so the username, password, and role must all be correct for a successful login.