Re-uploaded the project in only one repository
This commit is contained in:
BIN
colegio_api/target/classes/logica/CRUDTest.class
Normal file
BIN
colegio_api/target/classes/logica/CRUDTest.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/logica/ExNihilo.class
Normal file
BIN
colegio_api/target/classes/logica/ExNihilo.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/logica/Listas.class
Normal file
BIN
colegio_api/target/classes/logica/Listas.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/logica/Search.class
Normal file
BIN
colegio_api/target/classes/logica/Search.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/logica/Utilities.class
Normal file
BIN
colegio_api/target/classes/logica/Utilities.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/logica/reportes/Reporte.class
Normal file
BIN
colegio_api/target/classes/logica/reportes/Reporte.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
colegio_api/target/classes/logica/reportes/ReportesTest.class
Normal file
BIN
colegio_api/target/classes/logica/reportes/ReportesTest.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/logica/reportes/XslTransformer.class
Normal file
BIN
colegio_api/target/classes/logica/reportes/XslTransformer.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/main/App.class
Normal file
BIN
colegio_api/target/classes/main/App.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/Actividad$1.class
Normal file
BIN
colegio_api/target/classes/orm/Actividad$1.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/Actividad.class
Normal file
BIN
colegio_api/target/classes/orm/Actividad.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/ActividadDAO.class
Normal file
BIN
colegio_api/target/classes/orm/ActividadDAO.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/ActividadSetCollection.class
Normal file
BIN
colegio_api/target/classes/orm/ActividadSetCollection.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/Anotacion$1.class
Normal file
BIN
colegio_api/target/classes/orm/Anotacion$1.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/Anotacion.class
Normal file
BIN
colegio_api/target/classes/orm/Anotacion.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/AnotacionDAO.class
Normal file
BIN
colegio_api/target/classes/orm/AnotacionDAO.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/AnotacionSetCollection.class
Normal file
BIN
colegio_api/target/classes/orm/AnotacionSetCollection.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/Apoderado$1.class
Normal file
BIN
colegio_api/target/classes/orm/Apoderado$1.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/Apoderado.class
Normal file
BIN
colegio_api/target/classes/orm/Apoderado.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/ApoderadoDAO.class
Normal file
BIN
colegio_api/target/classes/orm/ApoderadoDAO.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/ApoderadoSetCollection.class
Normal file
BIN
colegio_api/target/classes/orm/ApoderadoSetCollection.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/Asignatura$1.class
Normal file
BIN
colegio_api/target/classes/orm/Asignatura$1.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/Asignatura.class
Normal file
BIN
colegio_api/target/classes/orm/Asignatura.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/AsignaturaDAO.class
Normal file
BIN
colegio_api/target/classes/orm/AsignaturaDAO.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/AsignaturaSetCollection.class
Normal file
BIN
colegio_api/target/classes/orm/AsignaturaSetCollection.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/Asistencia$1.class
Normal file
BIN
colegio_api/target/classes/orm/Asistencia$1.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/Asistencia.class
Normal file
BIN
colegio_api/target/classes/orm/Asistencia.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/AsistenciaDAO.class
Normal file
BIN
colegio_api/target/classes/orm/AsistenciaDAO.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/AsistenciaSetCollection.class
Normal file
BIN
colegio_api/target/classes/orm/AsistenciaSetCollection.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/Colegio$1.class
Normal file
BIN
colegio_api/target/classes/orm/Colegio$1.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/Colegio.class
Normal file
BIN
colegio_api/target/classes/orm/Colegio.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/ColegioDAO.class
Normal file
BIN
colegio_api/target/classes/orm/ColegioDAO.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/ColegioPersistentManager.class
Normal file
BIN
colegio_api/target/classes/orm/ColegioPersistentManager.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/Curso$1.class
Normal file
BIN
colegio_api/target/classes/orm/Curso$1.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/Curso.class
Normal file
BIN
colegio_api/target/classes/orm/Curso.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/CursoDAO.class
Normal file
BIN
colegio_api/target/classes/orm/CursoDAO.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/CursoSetCollection.class
Normal file
BIN
colegio_api/target/classes/orm/CursoSetCollection.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/Estudiante$1.class
Normal file
BIN
colegio_api/target/classes/orm/Estudiante$1.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/Estudiante.class
Normal file
BIN
colegio_api/target/classes/orm/Estudiante.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/EstudianteDAO.class
Normal file
BIN
colegio_api/target/classes/orm/EstudianteDAO.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/EstudianteSetCollection.class
Normal file
BIN
colegio_api/target/classes/orm/EstudianteSetCollection.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/Nota$1.class
Normal file
BIN
colegio_api/target/classes/orm/Nota$1.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/Nota.class
Normal file
BIN
colegio_api/target/classes/orm/Nota.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/NotaDAO.class
Normal file
BIN
colegio_api/target/classes/orm/NotaDAO.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/NotaSetCollection.class
Normal file
BIN
colegio_api/target/classes/orm/NotaSetCollection.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/ORMConstants.class
Normal file
BIN
colegio_api/target/classes/orm/ORMConstants.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/Profesor$1.class
Normal file
BIN
colegio_api/target/classes/orm/Profesor$1.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/Profesor.class
Normal file
BIN
colegio_api/target/classes/orm/Profesor.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/ProfesorDAO.class
Normal file
BIN
colegio_api/target/classes/orm/ProfesorDAO.class
Normal file
Binary file not shown.
BIN
colegio_api/target/classes/orm/ProfesorSetCollection.class
Normal file
BIN
colegio_api/target/classes/orm/ProfesorSetCollection.class
Normal file
Binary file not shown.
34
colegio_api/target/classes/ormmapping/Colegio.cfg.xml
Normal file
34
colegio_api/target/classes/ormmapping/Colegio.cfg.xml
Normal file
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Licensee: Universidad de La Frontera License Type: Academic -->
|
||||
<!DOCTYPE hibernate-configuration PUBLIC
|
||||
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
|
||||
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
|
||||
<hibernate-configuration>
|
||||
<session-factory>
|
||||
<!-- properties -->
|
||||
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
|
||||
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
|
||||
<property name="connection.url">jdbc:mysql://localhost:3306/colegio</property>
|
||||
<property name="connection.username">root</property>
|
||||
<property name="connection.password">daniel980</property>
|
||||
<property name="hibernate.connection.provider_class">org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider</property>
|
||||
<property name="hibernate.c3p0.acquire_increment">1</property>
|
||||
<property name="hibernate.c3p0.idle_test_period">0</property>
|
||||
<property name="hibernate.c3p0.min_size">1</property>
|
||||
<property name="hibernate.c3p0.max_size">15</property>
|
||||
<property name="hibernate.c3p0.timeout">0</property>
|
||||
<property name="show_sql">false</property>
|
||||
<property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property>
|
||||
<!-- mapping files -->
|
||||
<mapping resource="ormmapping/orm/Actividad.hbm.xml" />
|
||||
<mapping resource="ormmapping/orm/Anotacion.hbm.xml" />
|
||||
<mapping resource="ormmapping/orm/Apoderado.hbm.xml" />
|
||||
<mapping resource="ormmapping/orm/Asignatura.hbm.xml" />
|
||||
<mapping resource="ormmapping/orm/Asistencia.hbm.xml" />
|
||||
<mapping resource="ormmapping/orm/Colegio.hbm.xml" />
|
||||
<mapping resource="ormmapping/orm/Curso.hbm.xml" />
|
||||
<mapping resource="ormmapping/orm/Estudiante.hbm.xml" />
|
||||
<mapping resource="ormmapping/orm/Nota.hbm.xml" />
|
||||
<mapping resource="ormmapping/orm/Profesor.hbm.xml" />
|
||||
</session-factory>
|
||||
</hibernate-configuration>
|
||||
608
colegio_api/target/classes/ormmapping/Colegio.erd.xml
Normal file
608
colegio_api/target/classes/ormmapping/Colegio.erd.xml
Normal file
@@ -0,0 +1,608 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<Model quotesql="1" tablecharset="UTF8" mysql_version="504"
|
||||
mssql_version="2005" derby_version="106" ingres_version="9">
|
||||
<Entity name="colegio" Unlogged="false" PKClustered="0">
|
||||
<Column name="id_pk">
|
||||
<PrimaryKey>true</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>9</Type>
|
||||
<Length>10</Length>
|
||||
<Nullable>false</Nullable>
|
||||
<IDGenerator>increment</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="nombre">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>27</Type>
|
||||
<Length>100</Length>
|
||||
<Nullable>true</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
</Entity>
|
||||
<Entity name="curso" Unlogged="false" PKClustered="0">
|
||||
<Column name="id_pk">
|
||||
<PrimaryKey>true</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>9</Type>
|
||||
<Length>10</Length>
|
||||
<Nullable>false</Nullable>
|
||||
<IDGenerator>increment</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="colegio_id_fk">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>true</ForeignKey>
|
||||
<ReferencedColumn>colegio.id_pk</ReferencedColumn>
|
||||
<Type>9</Type>
|
||||
<Length>10</Length>
|
||||
<Nullable>false</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="nivel">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>9</Type>
|
||||
<Length>10</Length>
|
||||
<Nullable>true</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="letra">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>27</Type>
|
||||
<Length>1</Length>
|
||||
<Nullable>true</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
</Entity>
|
||||
<Entity name="asignatura" Unlogged="false" PKClustered="0">
|
||||
<Column name="id_pk">
|
||||
<PrimaryKey>true</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>9</Type>
|
||||
<Length>10</Length>
|
||||
<Nullable>false</Nullable>
|
||||
<IDGenerator>increment</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="curso_id_fk">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>true</ForeignKey>
|
||||
<ReferencedColumn>curso.id_pk</ReferencedColumn>
|
||||
<Type>9</Type>
|
||||
<Length>10</Length>
|
||||
<Nullable>false</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="profesor_id_fk">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>true</ForeignKey>
|
||||
<ReferencedColumn>profesor.id_pk</ReferencedColumn>
|
||||
<Type>9</Type>
|
||||
<Length>10</Length>
|
||||
<Nullable>false</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="nombre">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>27</Type>
|
||||
<Length>100</Length>
|
||||
<Nullable>true</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
</Entity>
|
||||
<Entity name="estudiante" Unlogged="false" PKClustered="0">
|
||||
<Column name="id_pk">
|
||||
<PrimaryKey>true</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>9</Type>
|
||||
<Length>10</Length>
|
||||
<Nullable>false</Nullable>
|
||||
<IDGenerator>increment</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="curso_id_fk">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>true</ForeignKey>
|
||||
<ReferencedColumn>curso.id_pk</ReferencedColumn>
|
||||
<Type>9</Type>
|
||||
<Length>10</Length>
|
||||
<Nullable>false</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="apoderado_id_fk">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>true</ForeignKey>
|
||||
<ReferencedColumn>apoderado.id_pk</ReferencedColumn>
|
||||
<Type>9</Type>
|
||||
<Length>10</Length>
|
||||
<Nullable>false</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="nombre">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>27</Type>
|
||||
<Length>100</Length>
|
||||
<Nullable>true</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="rut">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>27</Type>
|
||||
<Length>100</Length>
|
||||
<Nullable>true</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
</Entity>
|
||||
<Entity name="apoderado" Unlogged="false" PKClustered="0">
|
||||
<Column name="id_pk">
|
||||
<PrimaryKey>true</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>9</Type>
|
||||
<Length>10</Length>
|
||||
<Nullable>false</Nullable>
|
||||
<IDGenerator>increment</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="colegio_id_fk">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>true</ForeignKey>
|
||||
<ReferencedColumn>colegio.id_pk</ReferencedColumn>
|
||||
<Type>9</Type>
|
||||
<Length>10</Length>
|
||||
<Nullable>false</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="nombre">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>27</Type>
|
||||
<Length>100</Length>
|
||||
<Nullable>true</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="rut">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>27</Type>
|
||||
<Length>100</Length>
|
||||
<Nullable>true</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
</Entity>
|
||||
<Entity name="nota" Unlogged="false" PKClustered="0">
|
||||
<Column name="id_pk">
|
||||
<PrimaryKey>true</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>9</Type>
|
||||
<Length>10</Length>
|
||||
<Nullable>false</Nullable>
|
||||
<IDGenerator>increment</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="estudiante_id_fk">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>true</ForeignKey>
|
||||
<ReferencedColumn>estudiante.id_pk</ReferencedColumn>
|
||||
<Type>9</Type>
|
||||
<Length>10</Length>
|
||||
<Nullable>false</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="asignatura_id_fk">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>true</ForeignKey>
|
||||
<ReferencedColumn>asignatura.id_pk</ReferencedColumn>
|
||||
<Type>9</Type>
|
||||
<Length>10</Length>
|
||||
<Nullable>false</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="valor">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>6</Type>
|
||||
<Length>0</Length>
|
||||
<Nullable>true</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
</Entity>
|
||||
<Entity name="anotacion" Unlogged="false" PKClustered="0">
|
||||
<Column name="id_pk">
|
||||
<PrimaryKey>true</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>9</Type>
|
||||
<Length>10</Length>
|
||||
<Nullable>false</Nullable>
|
||||
<IDGenerator>increment</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="estudiante_id_fk">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>true</ForeignKey>
|
||||
<ReferencedColumn>estudiante.id_pk</ReferencedColumn>
|
||||
<Type>9</Type>
|
||||
<Length>10</Length>
|
||||
<Nullable>false</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="profesor_id_fk">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>true</ForeignKey>
|
||||
<ReferencedColumn>profesor.id_pk</ReferencedColumn>
|
||||
<Type>9</Type>
|
||||
<Length>10</Length>
|
||||
<Nullable>false</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="descripcion">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>27</Type>
|
||||
<Length>100</Length>
|
||||
<Nullable>true</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="positiva">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>1</Type>
|
||||
<Length>1</Length>
|
||||
<Nullable>true</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
</Entity>
|
||||
<Entity name="asistencia" Unlogged="false" PKClustered="0">
|
||||
<Column name="id_pk">
|
||||
<PrimaryKey>true</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>9</Type>
|
||||
<Length>10</Length>
|
||||
<Nullable>false</Nullable>
|
||||
<IDGenerator>increment</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="estudiante_id_fk">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>true</ForeignKey>
|
||||
<ReferencedColumn>estudiante.id_pk</ReferencedColumn>
|
||||
<Type>9</Type>
|
||||
<Length>10</Length>
|
||||
<Nullable>false</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="dia">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>17</Type>
|
||||
<Length>0</Length>
|
||||
<Nullable>true</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="asistio">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>1</Type>
|
||||
<Length>1</Length>
|
||||
<Nullable>true</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
</Entity>
|
||||
<Entity name="profesor" Unlogged="false" PKClustered="0">
|
||||
<Column name="id_pk">
|
||||
<PrimaryKey>true</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>9</Type>
|
||||
<Length>10</Length>
|
||||
<Nullable>false</Nullable>
|
||||
<IDGenerator>increment</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="colegio_id_fk">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>true</ForeignKey>
|
||||
<ReferencedColumn>colegio.id_pk</ReferencedColumn>
|
||||
<Type>9</Type>
|
||||
<Length>10</Length>
|
||||
<Nullable>false</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="nombre">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>27</Type>
|
||||
<Length>100</Length>
|
||||
<Nullable>true</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="rut">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>27</Type>
|
||||
<Length>100</Length>
|
||||
<Nullable>true</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
</Entity>
|
||||
<Entity name="actividad" Unlogged="false" PKClustered="0">
|
||||
<Column name="id_pk">
|
||||
<PrimaryKey>true</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>9</Type>
|
||||
<Length>10</Length>
|
||||
<Nullable>false</Nullable>
|
||||
<IDGenerator>increment</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="asignatura_id_fk">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>true</ForeignKey>
|
||||
<ReferencedColumn>asignatura.id_pk</ReferencedColumn>
|
||||
<Type>9</Type>
|
||||
<Length>10</Length>
|
||||
<Nullable>false</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="fecha">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>17</Type>
|
||||
<Length>0</Length>
|
||||
<Nullable>true</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
<Column name="tipo">
|
||||
<PrimaryKey>false</PrimaryKey>
|
||||
<ForeignKey>false</ForeignKey>
|
||||
<Type>27</Type>
|
||||
<Length>100</Length>
|
||||
<Nullable>true</Nullable>
|
||||
<IDGenerator>native</IDGenerator>
|
||||
<Unique>false</Unique>
|
||||
<Index>false</Index>
|
||||
<UserTypes />
|
||||
</Column>
|
||||
</Entity>
|
||||
<ForeignKey name="FKanotacion106484">
|
||||
<ReferenceTable>anotacion</ReferenceTable>
|
||||
<ReferencedTable>estudiante</ReferencedTable>
|
||||
<Columns>
|
||||
<Column>estudiante_id_fk</Column>
|
||||
</Columns>
|
||||
<RefColumns>
|
||||
<Column>id_pk</Column>
|
||||
</RefColumns>
|
||||
</ForeignKey>
|
||||
<ForeignKey name="FKnota970842">
|
||||
<ReferenceTable>nota</ReferenceTable>
|
||||
<ReferencedTable>estudiante</ReferencedTable>
|
||||
<Columns>
|
||||
<Column>estudiante_id_fk</Column>
|
||||
</Columns>
|
||||
<RefColumns>
|
||||
<Column>id_pk</Column>
|
||||
</RefColumns>
|
||||
</ForeignKey>
|
||||
<ForeignKey name="FKasignatura734940">
|
||||
<ReferenceTable>asignatura</ReferenceTable>
|
||||
<ReferencedTable>curso</ReferencedTable>
|
||||
<Columns>
|
||||
<Column>curso_id_fk</Column>
|
||||
</Columns>
|
||||
<RefColumns>
|
||||
<Column>id_pk</Column>
|
||||
</RefColumns>
|
||||
</ForeignKey>
|
||||
<ForeignKey name="FKestudiante399501">
|
||||
<ReferenceTable>estudiante</ReferenceTable>
|
||||
<ReferencedTable>curso</ReferencedTable>
|
||||
<Columns>
|
||||
<Column>curso_id_fk</Column>
|
||||
</Columns>
|
||||
<RefColumns>
|
||||
<Column>id_pk</Column>
|
||||
</RefColumns>
|
||||
</ForeignKey>
|
||||
<ForeignKey name="FKactividad385633">
|
||||
<ReferenceTable>actividad</ReferenceTable>
|
||||
<ReferencedTable>asignatura</ReferencedTable>
|
||||
<Columns>
|
||||
<Column>asignatura_id_fk</Column>
|
||||
</Columns>
|
||||
<RefColumns>
|
||||
<Column>id_pk</Column>
|
||||
</RefColumns>
|
||||
</ForeignKey>
|
||||
<ForeignKey name="FKestudiante816093">
|
||||
<ReferenceTable>estudiante</ReferenceTable>
|
||||
<ReferencedTable>apoderado</ReferencedTable>
|
||||
<Columns>
|
||||
<Column>apoderado_id_fk</Column>
|
||||
</Columns>
|
||||
<RefColumns>
|
||||
<Column>id_pk</Column>
|
||||
</RefColumns>
|
||||
</ForeignKey>
|
||||
<ForeignKey name="FKcurso1967">
|
||||
<ReferenceTable>curso</ReferenceTable>
|
||||
<ReferencedTable>colegio</ReferencedTable>
|
||||
<Columns>
|
||||
<Column>colegio_id_fk</Column>
|
||||
</Columns>
|
||||
<RefColumns>
|
||||
<Column>id_pk</Column>
|
||||
</RefColumns>
|
||||
</ForeignKey>
|
||||
<ForeignKey name="FKasistencia331039">
|
||||
<ReferenceTable>asistencia</ReferenceTable>
|
||||
<ReferencedTable>estudiante</ReferencedTable>
|
||||
<Columns>
|
||||
<Column>estudiante_id_fk</Column>
|
||||
</Columns>
|
||||
<RefColumns>
|
||||
<Column>id_pk</Column>
|
||||
</RefColumns>
|
||||
</ForeignKey>
|
||||
<ForeignKey name="FKasignatura442837">
|
||||
<ReferenceTable>asignatura</ReferenceTable>
|
||||
<ReferencedTable>profesor</ReferencedTable>
|
||||
<Columns>
|
||||
<Column>profesor_id_fk</Column>
|
||||
</Columns>
|
||||
<RefColumns>
|
||||
<Column>id_pk</Column>
|
||||
</RefColumns>
|
||||
</ForeignKey>
|
||||
<ForeignKey name="FKanotacion379168">
|
||||
<ReferenceTable>anotacion</ReferenceTable>
|
||||
<ReferencedTable>profesor</ReferencedTable>
|
||||
<Columns>
|
||||
<Column>profesor_id_fk</Column>
|
||||
</Columns>
|
||||
<RefColumns>
|
||||
<Column>id_pk</Column>
|
||||
</RefColumns>
|
||||
</ForeignKey>
|
||||
<ForeignKey name="FKnota157065">
|
||||
<ReferenceTable>nota</ReferenceTable>
|
||||
<ReferencedTable>asignatura</ReferencedTable>
|
||||
<Columns>
|
||||
<Column>asignatura_id_fk</Column>
|
||||
</Columns>
|
||||
<RefColumns>
|
||||
<Column>id_pk</Column>
|
||||
</RefColumns>
|
||||
</ForeignKey>
|
||||
<ForeignKey name="FKapoderado153902">
|
||||
<ReferenceTable>apoderado</ReferenceTable>
|
||||
<ReferencedTable>colegio</ReferencedTable>
|
||||
<Columns>
|
||||
<Column>colegio_id_fk</Column>
|
||||
</Columns>
|
||||
<RefColumns>
|
||||
<Column>id_pk</Column>
|
||||
</RefColumns>
|
||||
</ForeignKey>
|
||||
<ForeignKey name="FKprofesor406122">
|
||||
<ReferenceTable>profesor</ReferenceTable>
|
||||
<ReferencedTable>colegio</ReferencedTable>
|
||||
<Columns>
|
||||
<Column>colegio_id_fk</Column>
|
||||
</Columns>
|
||||
<RefColumns>
|
||||
<Column>id_pk</Column>
|
||||
</RefColumns>
|
||||
</ForeignKey>
|
||||
</Model>
|
||||
34
colegio_api/target/classes/ormmapping/Untitled.cfg.xml
Normal file
34
colegio_api/target/classes/ormmapping/Untitled.cfg.xml
Normal file
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Licensee: Universidad de La Frontera License Type: Academic -->
|
||||
<!DOCTYPE hibernate-configuration PUBLIC
|
||||
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
|
||||
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
|
||||
<hibernate-configuration>
|
||||
<session-factory>
|
||||
<!-- properties -->
|
||||
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
|
||||
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
|
||||
<property name="connection.url">jdbc:mysql://localhost:3306/colegio</property>
|
||||
<property name="connection.username">root</property>
|
||||
<property name="connection.password">admin</property>
|
||||
<property name="hibernate.connection.provider_class">org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider</property>
|
||||
<property name="hibernate.c3p0.acquire_increment">1</property>
|
||||
<property name="hibernate.c3p0.idle_test_period">0</property>
|
||||
<property name="hibernate.c3p0.min_size">1</property>
|
||||
<property name="hibernate.c3p0.max_size">15</property>
|
||||
<property name="hibernate.c3p0.timeout">0</property>
|
||||
<property name="show_sql">false</property>
|
||||
<property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property>
|
||||
<!-- mapping files -->
|
||||
<mapping resource="ormmapping/orm/Actividad.hbm.xml" />
|
||||
<mapping resource="ormmapping/orm/Anotacion.hbm.xml" />
|
||||
<mapping resource="ormmapping/orm/Apoderado.hbm.xml" />
|
||||
<mapping resource="ormmapping/orm/Asignatura.hbm.xml" />
|
||||
<mapping resource="ormmapping/orm/Asistencia.hbm.xml" />
|
||||
<mapping resource="ormmapping/orm/Colegio.hbm.xml" />
|
||||
<mapping resource="ormmapping/orm/Curso.hbm.xml" />
|
||||
<mapping resource="ormmapping/orm/Estudiante.hbm.xml" />
|
||||
<mapping resource="ormmapping/orm/Nota.hbm.xml" />
|
||||
<mapping resource="ormmapping/orm/Profesor.hbm.xml" />
|
||||
</session-factory>
|
||||
</hibernate-configuration>
|
||||
304
colegio_api/target/classes/ormmapping/database.cfg.xml
Normal file
304
colegio_api/target/classes/ormmapping/database.cfg.xml
Normal file
@@ -0,0 +1,304 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<Database>
|
||||
<Setting type="512">
|
||||
<Driver></Driver>
|
||||
<DriverFiles></DriverFiles>
|
||||
<Dialect></Dialect>
|
||||
<DriverClass></DriverClass>
|
||||
<URL></URL>
|
||||
<UserName></UserName>
|
||||
<EncryptedPassword>32F3ACE632ECEBAFB24DCAF99A8C6CDC</EncryptedPassword>
|
||||
<HostName></HostName>
|
||||
<PortNO></PortNO>
|
||||
<DBName></DBName>
|
||||
<ServiceName></ServiceName>
|
||||
<ServerName></ServerName>
|
||||
<SelectedForm>true</SelectedForm>
|
||||
</Setting>
|
||||
<Setting type="1024">
|
||||
<Driver></Driver>
|
||||
<DriverFiles></DriverFiles>
|
||||
<Dialect></Dialect>
|
||||
<DriverClass></DriverClass>
|
||||
<URL></URL>
|
||||
<UserName></UserName>
|
||||
<EncryptedPassword>32F3ACE632ECEBAFB24DCAF99A8C6CDC</EncryptedPassword>
|
||||
<HostName></HostName>
|
||||
<PortNO></PortNO>
|
||||
<DBName></DBName>
|
||||
<ServiceName></ServiceName>
|
||||
<ServerName></ServerName>
|
||||
<SelectedForm>true</SelectedForm>
|
||||
</Setting>
|
||||
<Setting type="131072">
|
||||
<Driver></Driver>
|
||||
<DriverFiles></DriverFiles>
|
||||
<Dialect></Dialect>
|
||||
<DriverClass></DriverClass>
|
||||
<URL></URL>
|
||||
<UserName></UserName>
|
||||
<EncryptedPassword>32F3ACE632ECEBAFB24DCAF99A8C6CDC</EncryptedPassword>
|
||||
<HostName></HostName>
|
||||
<PortNO></PortNO>
|
||||
<DBName></DBName>
|
||||
<ServiceName></ServiceName>
|
||||
<ServerName></ServerName>
|
||||
<SelectedForm>true</SelectedForm>
|
||||
</Setting>
|
||||
<Setting type="128">
|
||||
<Driver></Driver>
|
||||
<DriverFiles></DriverFiles>
|
||||
<Dialect></Dialect>
|
||||
<DriverClass></DriverClass>
|
||||
<URL></URL>
|
||||
<UserName></UserName>
|
||||
<EncryptedPassword>32F3ACE632ECEBAFB24DCAF99A8C6CDC</EncryptedPassword>
|
||||
<HostName></HostName>
|
||||
<PortNO></PortNO>
|
||||
<DBName></DBName>
|
||||
<ServiceName></ServiceName>
|
||||
<ServerName></ServerName>
|
||||
<SelectedForm>true</SelectedForm>
|
||||
</Setting>
|
||||
<Setting type="32">
|
||||
<Driver></Driver>
|
||||
<DriverFiles></DriverFiles>
|
||||
<Dialect></Dialect>
|
||||
<DriverClass></DriverClass>
|
||||
<URL></URL>
|
||||
<UserName></UserName>
|
||||
<EncryptedPassword>32F3ACE632ECEBAFB24DCAF99A8C6CDC</EncryptedPassword>
|
||||
<HostName></HostName>
|
||||
<PortNO></PortNO>
|
||||
<DBName></DBName>
|
||||
<ServiceName></ServiceName>
|
||||
<ServerName></ServerName>
|
||||
<SelectedForm>true</SelectedForm>
|
||||
</Setting>
|
||||
<Setting type="16384">
|
||||
<Driver></Driver>
|
||||
<DriverFiles></DriverFiles>
|
||||
<Dialect></Dialect>
|
||||
<DriverClass></DriverClass>
|
||||
<URL></URL>
|
||||
<UserName></UserName>
|
||||
<EncryptedPassword>32F3ACE632ECEBAFB24DCAF99A8C6CDC</EncryptedPassword>
|
||||
<HostName></HostName>
|
||||
<PortNO></PortNO>
|
||||
<DBName></DBName>
|
||||
<ServiceName></ServiceName>
|
||||
<ServerName></ServerName>
|
||||
<SelectedForm>true</SelectedForm>
|
||||
</Setting>
|
||||
<Setting type="2048">
|
||||
<Driver></Driver>
|
||||
<DriverFiles></DriverFiles>
|
||||
<Dialect></Dialect>
|
||||
<DriverClass></DriverClass>
|
||||
<URL></URL>
|
||||
<UserName></UserName>
|
||||
<EncryptedPassword>32F3ACE632ECEBAFB24DCAF99A8C6CDC</EncryptedPassword>
|
||||
<HostName></HostName>
|
||||
<PortNO></PortNO>
|
||||
<DBName></DBName>
|
||||
<ServiceName></ServiceName>
|
||||
<ServerName></ServerName>
|
||||
<SelectedForm>true</SelectedForm>
|
||||
</Setting>
|
||||
<Setting type="262144">
|
||||
<Driver></Driver>
|
||||
<DriverFiles></DriverFiles>
|
||||
<Dialect></Dialect>
|
||||
<DriverClass></DriverClass>
|
||||
<URL></URL>
|
||||
<UserName></UserName>
|
||||
<EncryptedPassword>32F3ACE632ECEBAFB24DCAF99A8C6CDC</EncryptedPassword>
|
||||
<HostName></HostName>
|
||||
<PortNO></PortNO>
|
||||
<DBName></DBName>
|
||||
<ServiceName></ServiceName>
|
||||
<ServerName></ServerName>
|
||||
<SelectedForm>true</SelectedForm>
|
||||
</Setting>
|
||||
<Setting type="256">
|
||||
<Driver></Driver>
|
||||
<DriverFiles></DriverFiles>
|
||||
<Dialect></Dialect>
|
||||
<DriverClass></DriverClass>
|
||||
<URL></URL>
|
||||
<UserName></UserName>
|
||||
<EncryptedPassword>32F3ACE632ECEBAFB24DCAF99A8C6CDC</EncryptedPassword>
|
||||
<HostName></HostName>
|
||||
<PortNO></PortNO>
|
||||
<DBName></DBName>
|
||||
<ServiceName></ServiceName>
|
||||
<ServerName></ServerName>
|
||||
<SelectedForm>true</SelectedForm>
|
||||
</Setting>
|
||||
<Setting type="65536">
|
||||
<Driver></Driver>
|
||||
<DriverFiles></DriverFiles>
|
||||
<Dialect></Dialect>
|
||||
<DriverClass></DriverClass>
|
||||
<URL></URL>
|
||||
<UserName></UserName>
|
||||
<EncryptedPassword>32F3ACE632ECEBAFB24DCAF99A8C6CDC</EncryptedPassword>
|
||||
<HostName></HostName>
|
||||
<PortNO></PortNO>
|
||||
<DBName></DBName>
|
||||
<ServiceName></ServiceName>
|
||||
<ServerName></ServerName>
|
||||
<SelectedForm>true</SelectedForm>
|
||||
</Setting>
|
||||
<Setting type="64">
|
||||
<Driver></Driver>
|
||||
<DriverFiles></DriverFiles>
|
||||
<Dialect></Dialect>
|
||||
<DriverClass></DriverClass>
|
||||
<URL></URL>
|
||||
<UserName></UserName>
|
||||
<EncryptedPassword>32F3ACE632ECEBAFB24DCAF99A8C6CDC</EncryptedPassword>
|
||||
<HostName></HostName>
|
||||
<PortNO></PortNO>
|
||||
<DBName></DBName>
|
||||
<ServiceName></ServiceName>
|
||||
<ServerName></ServerName>
|
||||
<SelectedForm>true</SelectedForm>
|
||||
</Setting>
|
||||
<Setting type="16">
|
||||
<Driver></Driver>
|
||||
<DriverFiles></DriverFiles>
|
||||
<Dialect></Dialect>
|
||||
<DriverClass></DriverClass>
|
||||
<URL></URL>
|
||||
<UserName></UserName>
|
||||
<EncryptedPassword>32F3ACE632ECEBAFB24DCAF99A8C6CDC</EncryptedPassword>
|
||||
<HostName></HostName>
|
||||
<PortNO></PortNO>
|
||||
<DBName></DBName>
|
||||
<ServiceName></ServiceName>
|
||||
<ServerName></ServerName>
|
||||
<SelectedForm>true</SelectedForm>
|
||||
</Setting>
|
||||
<Setting type="8192">
|
||||
<Driver></Driver>
|
||||
<DriverFiles></DriverFiles>
|
||||
<Dialect></Dialect>
|
||||
<DriverClass></DriverClass>
|
||||
<URL></URL>
|
||||
<UserName></UserName>
|
||||
<EncryptedPassword>32F3ACE632ECEBAFB24DCAF99A8C6CDC</EncryptedPassword>
|
||||
<HostName></HostName>
|
||||
<PortNO></PortNO>
|
||||
<DBName></DBName>
|
||||
<ServiceName></ServiceName>
|
||||
<ServerName></ServerName>
|
||||
<SelectedForm>true</SelectedForm>
|
||||
</Setting>
|
||||
<Setting type="32768">
|
||||
<Driver></Driver>
|
||||
<DriverFiles></DriverFiles>
|
||||
<Dialect></Dialect>
|
||||
<DriverClass></DriverClass>
|
||||
<URL></URL>
|
||||
<UserName></UserName>
|
||||
<EncryptedPassword>32F3ACE632ECEBAFB24DCAF99A8C6CDC</EncryptedPassword>
|
||||
<HostName></HostName>
|
||||
<PortNO></PortNO>
|
||||
<DBName></DBName>
|
||||
<ServiceName></ServiceName>
|
||||
<ServerName></ServerName>
|
||||
<SelectedForm>true</SelectedForm>
|
||||
</Setting>
|
||||
<Setting type="8">
|
||||
<Driver></Driver>
|
||||
<DriverFiles></DriverFiles>
|
||||
<Dialect></Dialect>
|
||||
<DriverClass></DriverClass>
|
||||
<URL></URL>
|
||||
<UserName></UserName>
|
||||
<EncryptedPassword>32F3ACE632ECEBAFB24DCAF99A8C6CDC</EncryptedPassword>
|
||||
<HostName></HostName>
|
||||
<PortNO></PortNO>
|
||||
<DBName></DBName>
|
||||
<ServiceName></ServiceName>
|
||||
<ServerName></ServerName>
|
||||
<SelectedForm>true</SelectedForm>
|
||||
</Setting>
|
||||
<Setting type="4096">
|
||||
<Driver></Driver>
|
||||
<DriverFiles></DriverFiles>
|
||||
<Dialect></Dialect>
|
||||
<DriverClass></DriverClass>
|
||||
<URL></URL>
|
||||
<UserName></UserName>
|
||||
<EncryptedPassword>32F3ACE632ECEBAFB24DCAF99A8C6CDC</EncryptedPassword>
|
||||
<HostName></HostName>
|
||||
<PortNO></PortNO>
|
||||
<DBName></DBName>
|
||||
<ServiceName></ServiceName>
|
||||
<ServerName></ServerName>
|
||||
<SelectedForm>true</SelectedForm>
|
||||
</Setting>
|
||||
<Setting type="33554432">
|
||||
<Driver></Driver>
|
||||
<DriverFiles></DriverFiles>
|
||||
<Dialect></Dialect>
|
||||
<DriverClass></DriverClass>
|
||||
<URL></URL>
|
||||
<UserName></UserName>
|
||||
<EncryptedPassword>32F3ACE632ECEBAFB24DCAF99A8C6CDC</EncryptedPassword>
|
||||
<HostName></HostName>
|
||||
<PortNO></PortNO>
|
||||
<DBName></DBName>
|
||||
<ServiceName></ServiceName>
|
||||
<ServerName></ServerName>
|
||||
<SelectedForm>true</SelectedForm>
|
||||
</Setting>
|
||||
<Setting type="524288">
|
||||
<Driver></Driver>
|
||||
<DriverFiles></DriverFiles>
|
||||
<Dialect></Dialect>
|
||||
<DriverClass></DriverClass>
|
||||
<URL></URL>
|
||||
<UserName></UserName>
|
||||
<EncryptedPassword>32F3ACE632ECEBAFB24DCAF99A8C6CDC</EncryptedPassword>
|
||||
<HostName></HostName>
|
||||
<PortNO></PortNO>
|
||||
<DBName></DBName>
|
||||
<ServiceName></ServiceName>
|
||||
<ServerName></ServerName>
|
||||
<SelectedForm>true</SelectedForm>
|
||||
</Setting>
|
||||
<Setting type="16777216">
|
||||
<Driver></Driver>
|
||||
<DriverFiles></DriverFiles>
|
||||
<Dialect></Dialect>
|
||||
<DriverClass></DriverClass>
|
||||
<URL></URL>
|
||||
<UserName></UserName>
|
||||
<EncryptedPassword>32F3ACE632ECEBAFB24DCAF99A8C6CDC</EncryptedPassword>
|
||||
<HostName></HostName>
|
||||
<PortNO></PortNO>
|
||||
<DBName></DBName>
|
||||
<ServiceName></ServiceName>
|
||||
<ServerName></ServerName>
|
||||
<SelectedForm>true</SelectedForm>
|
||||
</Setting>
|
||||
<Setting type="2">
|
||||
<Driver>MySQL (Connector/J Driver)</Driver>
|
||||
<DriverFiles><<MySQL Connector/J 5.1.33>></DriverFiles>
|
||||
<Dialect>org.hibernate.dialect.MySQLDialect</Dialect>
|
||||
<DriverClass>com.mysql.jdbc.Driver</DriverClass>
|
||||
<URL>jdbc:mysql://localhost:3306/colegio</URL>
|
||||
<UserName>root</UserName>
|
||||
<EncryptedPassword>AC56CC10CDF6B07FCCD3D10F3C1884D2</EncryptedPassword>
|
||||
<HostName>localhost</HostName>
|
||||
<PortNO>3306</PortNO>
|
||||
<DBName>colegio</DBName>
|
||||
<ServiceName></ServiceName>
|
||||
<ServerName></ServerName>
|
||||
<SelectedForm>true</SelectedForm>
|
||||
</Setting>
|
||||
</Database>
|
||||
19
colegio_api/target/classes/ormmapping/orm/Actividad.hbm.xml
Normal file
19
colegio_api/target/classes/ormmapping/orm/Actividad.hbm.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Licensee: Universidad de La Frontera License Type: Academic -->
|
||||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
<hibernate-mapping>
|
||||
<class name="orm.Actividad" table="actividad" lazy="false">
|
||||
<id name="id_pk" column="id_pk" type="integer" unsaved-value="0">
|
||||
<generator class="increment">
|
||||
</generator>
|
||||
</id>
|
||||
<many-to-one name="asignatura_id_fk" cascade="lock"
|
||||
column="asignatura_id_fk" class="orm.Asignatura" not-null="true"
|
||||
lazy="no-proxy" access="field">
|
||||
</many-to-one>
|
||||
<property name="fecha" column="fecha" type="date" not-null="false"
|
||||
lazy="false" />
|
||||
<property name="tipo" column="tipo" type="string" length="100"
|
||||
not-null="false" lazy="false" />
|
||||
</class>
|
||||
</hibernate-mapping>
|
||||
23
colegio_api/target/classes/ormmapping/orm/Anotacion.hbm.xml
Normal file
23
colegio_api/target/classes/ormmapping/orm/Anotacion.hbm.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Licensee: Universidad de La Frontera License Type: Academic -->
|
||||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
<hibernate-mapping>
|
||||
<class name="orm.Anotacion" table="anotacion" lazy="false">
|
||||
<id name="id_pk" column="id_pk" type="integer" unsaved-value="0">
|
||||
<generator class="increment">
|
||||
</generator>
|
||||
</id>
|
||||
<many-to-one name="estudiante_id_fk" cascade="lock"
|
||||
column="estudiante_id_fk" class="orm.Estudiante" not-null="true"
|
||||
lazy="no-proxy" access="field">
|
||||
</many-to-one>
|
||||
<many-to-one name="profesor_id_fk" cascade="lock"
|
||||
column="profesor_id_fk" class="orm.Profesor" not-null="true" lazy="no-proxy"
|
||||
access="field">
|
||||
</many-to-one>
|
||||
<property name="descripcion" column="descripcion" type="string"
|
||||
length="100" not-null="false" lazy="false" />
|
||||
<property name="positiva" column="positiva" type="boolean"
|
||||
length="1" not-null="false" lazy="false" />
|
||||
</class>
|
||||
</hibernate-mapping>
|
||||
23
colegio_api/target/classes/ormmapping/orm/Apoderado.hbm.xml
Normal file
23
colegio_api/target/classes/ormmapping/orm/Apoderado.hbm.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Licensee: Universidad de La Frontera License Type: Academic -->
|
||||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
<hibernate-mapping>
|
||||
<class name="orm.Apoderado" table="apoderado" lazy="false">
|
||||
<id name="id_pk" column="id_pk" type="integer" unsaved-value="0">
|
||||
<generator class="increment">
|
||||
</generator>
|
||||
</id>
|
||||
<many-to-one name="colegio_id_fk" cascade="lock" column="colegio_id_fk"
|
||||
class="orm.Colegio" not-null="true" lazy="no-proxy" access="field">
|
||||
</many-to-one>
|
||||
<property name="nombre" column="nombre" type="string" length="100"
|
||||
not-null="false" lazy="false" />
|
||||
<property name="rut" column="rut" type="string" length="100"
|
||||
not-null="false" lazy="false" />
|
||||
<set name="ORM_Estudiante" lazy="true" cascade="save-update,lock"
|
||||
inverse="true">
|
||||
<key column="apoderado_id_fk" not-null="true" />
|
||||
<one-to-many class="orm.Estudiante" />
|
||||
</set>
|
||||
</class>
|
||||
</hibernate-mapping>
|
||||
30
colegio_api/target/classes/ormmapping/orm/Asignatura.hbm.xml
Normal file
30
colegio_api/target/classes/ormmapping/orm/Asignatura.hbm.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Licensee: Universidad de La Frontera License Type: Academic -->
|
||||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
<hibernate-mapping>
|
||||
<class name="orm.Asignatura" table="asignatura" lazy="false">
|
||||
<id name="id_pk" column="id_pk" type="integer" unsaved-value="0">
|
||||
<generator class="increment">
|
||||
</generator>
|
||||
</id>
|
||||
<many-to-one name="curso_id_fk" cascade="lock" column="curso_id_fk"
|
||||
class="orm.Curso" not-null="true" lazy="no-proxy" access="field">
|
||||
</many-to-one>
|
||||
<many-to-one name="profesor_id_fk" cascade="lock"
|
||||
column="profesor_id_fk" class="orm.Profesor" not-null="true" lazy="no-proxy"
|
||||
access="field">
|
||||
</many-to-one>
|
||||
<property name="nombre" column="nombre" type="string" length="100"
|
||||
not-null="false" lazy="false" />
|
||||
<set name="ORM_Actividad" lazy="true" cascade="save-update,lock"
|
||||
inverse="true">
|
||||
<key column="asignatura_id_fk" not-null="true" />
|
||||
<one-to-many class="orm.Actividad" />
|
||||
</set>
|
||||
<set name="ORM_Nota" lazy="true" cascade="save-update,lock"
|
||||
inverse="true">
|
||||
<key column="asignatura_id_fk" not-null="true" />
|
||||
<one-to-many class="orm.Nota" />
|
||||
</set>
|
||||
</class>
|
||||
</hibernate-mapping>
|
||||
19
colegio_api/target/classes/ormmapping/orm/Asistencia.hbm.xml
Normal file
19
colegio_api/target/classes/ormmapping/orm/Asistencia.hbm.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Licensee: Universidad de La Frontera License Type: Academic -->
|
||||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
<hibernate-mapping>
|
||||
<class name="orm.Asistencia" table="asistencia" lazy="false">
|
||||
<id name="id_pk" column="id_pk" type="integer" unsaved-value="0">
|
||||
<generator class="increment">
|
||||
</generator>
|
||||
</id>
|
||||
<many-to-one name="estudiante_id_fk" cascade="lock"
|
||||
column="estudiante_id_fk" class="orm.Estudiante" not-null="true"
|
||||
lazy="no-proxy" access="field">
|
||||
</many-to-one>
|
||||
<property name="dia" column="dia" type="date" not-null="false"
|
||||
lazy="false" />
|
||||
<property name="asistio" column="asistio" type="boolean"
|
||||
length="1" not-null="false" lazy="false" />
|
||||
</class>
|
||||
</hibernate-mapping>
|
||||
28
colegio_api/target/classes/ormmapping/orm/Colegio.hbm.xml
Normal file
28
colegio_api/target/classes/ormmapping/orm/Colegio.hbm.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Licensee: Universidad de La Frontera License Type: Academic -->
|
||||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
<hibernate-mapping>
|
||||
<class name="orm.Colegio" table="colegio" lazy="false">
|
||||
<id name="id_pk" column="id_pk" type="integer" unsaved-value="0">
|
||||
<generator class="increment">
|
||||
</generator>
|
||||
</id>
|
||||
<property name="nombre" column="nombre" type="string" length="100"
|
||||
not-null="false" lazy="false" />
|
||||
<set name="ORM_Curso" lazy="true" cascade="save-update,lock"
|
||||
inverse="true">
|
||||
<key column="colegio_id_fk" not-null="true" />
|
||||
<one-to-many class="orm.Curso" />
|
||||
</set>
|
||||
<set name="ORM_Apoderado" lazy="true" cascade="save-update,lock"
|
||||
inverse="true">
|
||||
<key column="colegio_id_fk" not-null="true" />
|
||||
<one-to-many class="orm.Apoderado" />
|
||||
</set>
|
||||
<set name="ORM_Profesor" lazy="true" cascade="save-update,lock"
|
||||
inverse="true">
|
||||
<key column="colegio_id_fk" not-null="true" />
|
||||
<one-to-many class="orm.Profesor" />
|
||||
</set>
|
||||
</class>
|
||||
</hibernate-mapping>
|
||||
28
colegio_api/target/classes/ormmapping/orm/Curso.hbm.xml
Normal file
28
colegio_api/target/classes/ormmapping/orm/Curso.hbm.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Licensee: Universidad de La Frontera License Type: Academic -->
|
||||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
<hibernate-mapping>
|
||||
<class name="orm.Curso" table="curso" lazy="false">
|
||||
<id name="id_pk" column="id_pk" type="integer" unsaved-value="0">
|
||||
<generator class="increment">
|
||||
</generator>
|
||||
</id>
|
||||
<many-to-one name="colegio_id_fk" cascade="lock" column="colegio_id_fk"
|
||||
class="orm.Colegio" not-null="true" lazy="no-proxy" access="field">
|
||||
</many-to-one>
|
||||
<property name="nivel" column="nivel" type="integer" length="10"
|
||||
not-null="false" lazy="false" />
|
||||
<property name="letra" column="letra" type="string" length="1"
|
||||
not-null="false" lazy="false" />
|
||||
<set name="ORM_Asignatura" lazy="true" cascade="save-update,lock"
|
||||
inverse="true">
|
||||
<key column="curso_id_fk" not-null="true" />
|
||||
<one-to-many class="orm.Asignatura" />
|
||||
</set>
|
||||
<set name="ORM_Estudiante" lazy="true" cascade="save-update,lock"
|
||||
inverse="true">
|
||||
<key column="curso_id_fk" not-null="true" />
|
||||
<one-to-many class="orm.Estudiante" />
|
||||
</set>
|
||||
</class>
|
||||
</hibernate-mapping>
|
||||
37
colegio_api/target/classes/ormmapping/orm/Estudiante.hbm.xml
Normal file
37
colegio_api/target/classes/ormmapping/orm/Estudiante.hbm.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Licensee: Universidad de La Frontera License Type: Academic -->
|
||||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
<hibernate-mapping>
|
||||
<class name="orm.Estudiante" table="estudiante" lazy="false">
|
||||
<id name="id_pk" column="id_pk" type="integer" unsaved-value="0">
|
||||
<generator class="increment">
|
||||
</generator>
|
||||
</id>
|
||||
<many-to-one name="curso_id_fk" cascade="lock" column="curso_id_fk"
|
||||
class="orm.Curso" not-null="true" lazy="no-proxy" access="field">
|
||||
</many-to-one>
|
||||
<many-to-one name="apoderado_id_fk" cascade="lock"
|
||||
column="apoderado_id_fk" class="orm.Apoderado" not-null="true" lazy="no-proxy"
|
||||
access="field">
|
||||
</many-to-one>
|
||||
<property name="nombre" column="nombre" type="string" length="100"
|
||||
not-null="false" lazy="false" />
|
||||
<property name="rut" column="rut" type="string" length="100"
|
||||
not-null="false" lazy="false" />
|
||||
<set name="ORM_Anotacion" lazy="true" cascade="save-update,lock"
|
||||
inverse="true">
|
||||
<key column="estudiante_id_fk" not-null="true" />
|
||||
<one-to-many class="orm.Anotacion" />
|
||||
</set>
|
||||
<set name="ORM_Nota" lazy="true" cascade="save-update,lock"
|
||||
inverse="true">
|
||||
<key column="estudiante_id_fk" not-null="true" />
|
||||
<one-to-many class="orm.Nota" />
|
||||
</set>
|
||||
<set name="ORM_Asistencia" lazy="true" cascade="save-update,lock"
|
||||
inverse="true">
|
||||
<key column="estudiante_id_fk" not-null="true" />
|
||||
<one-to-many class="orm.Asistencia" />
|
||||
</set>
|
||||
</class>
|
||||
</hibernate-mapping>
|
||||
21
colegio_api/target/classes/ormmapping/orm/Nota.hbm.xml
Normal file
21
colegio_api/target/classes/ormmapping/orm/Nota.hbm.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Licensee: Universidad de La Frontera License Type: Academic -->
|
||||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
<hibernate-mapping>
|
||||
<class name="orm.Nota" table="nota" lazy="false">
|
||||
<id name="id_pk" column="id_pk" type="integer" unsaved-value="0">
|
||||
<generator class="increment">
|
||||
</generator>
|
||||
</id>
|
||||
<many-to-one name="estudiante_id_fk" cascade="lock"
|
||||
column="estudiante_id_fk" class="orm.Estudiante" not-null="true"
|
||||
lazy="no-proxy" access="field">
|
||||
</many-to-one>
|
||||
<many-to-one name="asignatura_id_fk" cascade="lock"
|
||||
column="asignatura_id_fk" class="orm.Asignatura" not-null="true"
|
||||
lazy="no-proxy" access="field">
|
||||
</many-to-one>
|
||||
<property name="valor" column="valor" type="double" not-null="false"
|
||||
lazy="false" />
|
||||
</class>
|
||||
</hibernate-mapping>
|
||||
28
colegio_api/target/classes/ormmapping/orm/Profesor.hbm.xml
Normal file
28
colegio_api/target/classes/ormmapping/orm/Profesor.hbm.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Licensee: Universidad de La Frontera License Type: Academic -->
|
||||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
<hibernate-mapping>
|
||||
<class name="orm.Profesor" table="profesor" lazy="false">
|
||||
<id name="id_pk" column="id_pk" type="integer" unsaved-value="0">
|
||||
<generator class="increment">
|
||||
</generator>
|
||||
</id>
|
||||
<many-to-one name="colegio_id_fk" cascade="lock" column="colegio_id_fk"
|
||||
class="orm.Colegio" not-null="true" lazy="no-proxy" access="field">
|
||||
</many-to-one>
|
||||
<property name="nombre" column="nombre" type="string" length="100"
|
||||
not-null="false" lazy="false" />
|
||||
<property name="rut" column="rut" type="string" length="100"
|
||||
not-null="false" lazy="false" />
|
||||
<set name="ORM_Asignatura" lazy="true" cascade="save-update,lock"
|
||||
inverse="true">
|
||||
<key column="profesor_id_fk" not-null="true" />
|
||||
<one-to-many class="orm.Asignatura" />
|
||||
</set>
|
||||
<set name="ORM_Anotacion" lazy="true" cascade="save-update,lock"
|
||||
inverse="true">
|
||||
<key column="profesor_id_fk" not-null="true" />
|
||||
<one-to-many class="orm.Anotacion" />
|
||||
</set>
|
||||
</class>
|
||||
</hibernate-mapping>
|
||||
Reference in New Issue
Block a user