|
|
|
|
@ -6,6 +6,7 @@
|
|
|
|
|
<property name="defaultLockType" value="optimistic"/>
|
|
|
|
|
<property name="defaultPackage" value="siprp.database.cayenne.objects"/>
|
|
|
|
|
<property name="defaultSchema" value="public"/>
|
|
|
|
|
<property name="quoteSqlIdentifiers" value="true"/>
|
|
|
|
|
<db-entity name="avisos" schema="public">
|
|
|
|
|
<db-attribute name="data_aviso" type="DATE" isMandatory="true" length="13"/>
|
|
|
|
|
<db-attribute name="data_evento" type="DATE" length="13"/>
|
|
|
|
|
@ -189,6 +190,7 @@
|
|
|
|
|
<db-attribute name="description" type="VARCHAR" isMandatory="true" length="1024"/>
|
|
|
|
|
<db-attribute name="empresa_id" type="INTEGER" length="10"/>
|
|
|
|
|
<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
|
|
|
|
|
<db-attribute name="ordem" type="INTEGER"/>
|
|
|
|
|
<db-key-generator>
|
|
|
|
|
<db-generator-type>ORACLE</db-generator-type>
|
|
|
|
|
<db-generator-name>hs_area_id_seq</db-generator-name>
|
|
|
|
|
@ -289,6 +291,7 @@
|
|
|
|
|
<db-attribute name="deleted_date" type="TIMESTAMP"/>
|
|
|
|
|
<db-attribute name="description" type="VARCHAR" isMandatory="true" length="1024"/>
|
|
|
|
|
<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
|
|
|
|
|
<db-attribute name="is_principal" type="BOOLEAN"/>
|
|
|
|
|
<db-key-generator>
|
|
|
|
|
<db-generator-type>ORACLE</db-generator-type>
|
|
|
|
|
<db-generator-name>hs_posto_id_seq</db-generator-name>
|
|
|
|
|
@ -305,6 +308,7 @@
|
|
|
|
|
</db-entity>
|
|
|
|
|
<db-entity name="hs_posto_risco" schema="public">
|
|
|
|
|
<db-attribute name="is_plano_actuacao" type="CHAR" length="1"/>
|
|
|
|
|
<db-attribute name="ordem" type="INTEGER"/>
|
|
|
|
|
<db-attribute name="posto_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
|
|
|
|
|
<db-attribute name="probabilidade" type="INTEGER" length="10"/>
|
|
|
|
|
<db-attribute name="risco_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
|
|
|
|
|
@ -335,6 +339,7 @@
|
|
|
|
|
<db-attribute name="deleted_date" type="TIMESTAMP" length="29"/>
|
|
|
|
|
<db-attribute name="description" type="VARCHAR" isMandatory="true" length="1024"/>
|
|
|
|
|
<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
|
|
|
|
|
<db-attribute name="ordem" type="INTEGER"/>
|
|
|
|
|
<db-attribute name="relatorio_id" type="INTEGER" length="10"/>
|
|
|
|
|
<db-key-generator>
|
|
|
|
|
<db-generator-type>ORACLE</db-generator-type>
|
|
|
|
|
@ -397,6 +402,7 @@
|
|
|
|
|
<db-attribute name="deleted_date" type="TIMESTAMP" length="29"/>
|
|
|
|
|
<db-attribute name="description" type="VARCHAR" isMandatory="true" length="1024"/>
|
|
|
|
|
<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
|
|
|
|
|
<db-attribute name="is_principal" type="BOOLEAN"/>
|
|
|
|
|
<db-key-generator>
|
|
|
|
|
<db-generator-type>ORACLE</db-generator-type>
|
|
|
|
|
<db-generator-name>hs_relatorio_posto_id_seq</db-generator-name>
|
|
|
|
|
@ -409,7 +415,7 @@
|
|
|
|
|
<db-attribute name="posto_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
|
|
|
|
|
</db-entity>
|
|
|
|
|
<db-entity name="hs_relatorio_posto_risco" schema="public">
|
|
|
|
|
<db-attribute name="id" type="INTEGER" length="10"/>
|
|
|
|
|
<db-attribute name="ordem" type="INTEGER"/>
|
|
|
|
|
<db-attribute name="posto_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
|
|
|
|
|
<db-attribute name="probabilidade" type="INTEGER" length="10"/>
|
|
|
|
|
<db-attribute name="risco_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
|
|
|
|
|
@ -951,6 +957,7 @@
|
|
|
|
|
<obj-attribute name="deletedDate" type="java.util.Date" db-attribute-path="deleted_date"/>
|
|
|
|
|
<obj-attribute name="description" type="java.lang.String" db-attribute-path="description"/>
|
|
|
|
|
<obj-attribute name="empresaId" type="java.lang.Integer" db-attribute-path="empresa_id"/>
|
|
|
|
|
<obj-attribute name="order" type="java.lang.Integer" db-attribute-path="ordem"/>
|
|
|
|
|
</obj-entity>
|
|
|
|
|
<obj-entity name="HsEmail" className="siprp.database.cayenne.objects.HsEmail" dbEntityName="hs_email" superClassName="siprp.database.cayenne.objects.BaseObject">
|
|
|
|
|
<obj-attribute name="email" type="java.lang.String" db-attribute-path="email"/>
|
|
|
|
|
@ -998,6 +1005,7 @@
|
|
|
|
|
<obj-entity name="HsPosto" className="siprp.database.cayenne.objects.HsPosto" dbEntityName="hs_posto" superClassName="siprp.database.cayenne.objects.BaseObject">
|
|
|
|
|
<obj-attribute name="deletedDate" type="java.util.Date" db-attribute-path="deleted_date"/>
|
|
|
|
|
<obj-attribute name="description" type="java.lang.String" db-attribute-path="description"/>
|
|
|
|
|
<obj-attribute name="isPrincipal" type="java.lang.Boolean" db-attribute-path="is_principal"/>
|
|
|
|
|
</obj-entity>
|
|
|
|
|
<obj-entity name="HsPostoEstabelecimento" className="siprp.database.cayenne.objects.HsPostoEstabelecimento" dbEntityName="hs_posto_estabelecimento" superClassName="siprp.database.cayenne.objects.BaseObject">
|
|
|
|
|
</obj-entity>
|
|
|
|
|
@ -1005,6 +1013,7 @@
|
|
|
|
|
</obj-entity>
|
|
|
|
|
<obj-entity name="HsPostoRisco" className="siprp.database.cayenne.objects.HsPostoRisco" dbEntityName="hs_posto_risco" superClassName="siprp.database.cayenne.objects.BaseObject">
|
|
|
|
|
<obj-attribute name="isPlanoActuacao" type="java.lang.String" db-attribute-path="is_plano_actuacao"/>
|
|
|
|
|
<obj-attribute name="order" type="java.lang.Integer" db-attribute-path="ordem"/>
|
|
|
|
|
<obj-attribute name="probabilidade" type="java.lang.Integer" db-attribute-path="probabilidade"/>
|
|
|
|
|
<obj-attribute name="severidade" type="java.lang.Integer" db-attribute-path="severidade"/>
|
|
|
|
|
<obj-attribute name="valorQualitativo" type="java.lang.Integer" db-attribute-path="valor_qualitativo"/>
|
|
|
|
|
@ -1026,6 +1035,7 @@
|
|
|
|
|
<obj-entity name="HsRelatorioArea" className="siprp.database.cayenne.objects.HsRelatorioArea" dbEntityName="hs_relatorio_area" superClassName="siprp.database.cayenne.objects.BaseObject">
|
|
|
|
|
<obj-attribute name="deletedDate" type="java.util.Date" db-attribute-path="deleted_date"/>
|
|
|
|
|
<obj-attribute name="description" type="java.lang.String" db-attribute-path="description"/>
|
|
|
|
|
<obj-attribute name="order" type="java.lang.Integer" db-attribute-path="ordem"/>
|
|
|
|
|
</obj-entity>
|
|
|
|
|
<obj-entity name="HsRelatorioEquipamento" className="siprp.database.cayenne.objects.HsRelatorioEquipamento" dbEntityName="hs_relatorio_equipamento" superClassName="siprp.database.cayenne.objects.BaseObject">
|
|
|
|
|
<obj-attribute name="hsEquipamento" type="java.lang.Integer" db-attribute-path="hs_equipamento"/>
|
|
|
|
|
@ -1053,12 +1063,13 @@
|
|
|
|
|
<obj-entity name="HsRelatorioPosto" className="siprp.database.cayenne.objects.HsRelatorioPosto" dbEntityName="hs_relatorio_posto" superClassName="siprp.database.cayenne.objects.BaseObject">
|
|
|
|
|
<obj-attribute name="deletedDate" type="java.util.Date" db-attribute-path="deleted_date"/>
|
|
|
|
|
<obj-attribute name="description" type="java.lang.String" db-attribute-path="description"/>
|
|
|
|
|
<obj-attribute name="isPrincipal" type="java.lang.Boolean" db-attribute-path="is_principal"/>
|
|
|
|
|
</obj-entity>
|
|
|
|
|
<obj-entity name="HsRelatorioPostoMedida" className="siprp.database.cayenne.objects.HsRelatorioPostoMedida" dbEntityName="hs_relatorio_posto_medida" superClassName="siprp.database.cayenne.objects.BaseObject">
|
|
|
|
|
<obj-attribute name="isPlanoActuacao" type="java.lang.Boolean" db-attribute-path="is_plano_actuacao"/>
|
|
|
|
|
</obj-entity>
|
|
|
|
|
<obj-entity name="HsRelatorioPostoRisco" className="siprp.database.cayenne.objects.HsRelatorioPostoRisco" dbEntityName="hs_relatorio_posto_risco" superClassName="siprp.database.cayenne.objects.BaseObject">
|
|
|
|
|
<obj-attribute name="id" type="java.lang.Integer" db-attribute-path="id"/>
|
|
|
|
|
<obj-attribute name="order" type="java.lang.Integer" db-attribute-path="ordem"/>
|
|
|
|
|
<obj-attribute name="probabilidade" type="java.lang.Integer" db-attribute-path="probabilidade"/>
|
|
|
|
|
<obj-attribute name="severidade" type="java.lang.Integer" db-attribute-path="severidade"/>
|
|
|
|
|
</obj-entity>
|
|
|
|
|
@ -1955,6 +1966,7 @@
|
|
|
|
|
<obj-relationship name="toHsPosto" source="HsPostoMedida" target="HsPosto" deleteRule="Nullify" db-relationship-path="toHsPosto"/>
|
|
|
|
|
<obj-relationship name="toHsPosto" source="HsPostoRisco" target="HsPosto" deleteRule="Nullify" db-relationship-path="toHsPosto"/>
|
|
|
|
|
<obj-relationship name="toHsRelatorioRiscoValorQualitativo" source="HsPostoRisco" target="HsRelatorioRiscoValorQualitativo" deleteRule="Nullify" db-relationship-path="toHsRelatorioRiscoValorQualitativo"/>
|
|
|
|
|
<obj-relationship name="toHsRelatorioRiscoValorQualitativo1" source="HsPostoRisco" target="HsRelatorioRiscoValorQualitativo" deleteRule="Nullify" db-relationship-path="toHsRelatorioRiscoValorQualitativo1"/>
|
|
|
|
|
<obj-relationship name="toHsRisco" source="HsPostoRisco" target="HsRisco" deleteRule="Nullify" db-relationship-path="toHsRisco"/>
|
|
|
|
|
<obj-relationship name="hsRelatorioArea" source="HsRelatorio" target="HsRelatorioArea" deleteRule="Cascade" db-relationship-path="hsRelatorioArea"/>
|
|
|
|
|
<obj-relationship name="hsRelatorioEquipamentoArray" source="HsRelatorio" target="HsRelatorioEquipamento" db-relationship-path="hsRelatorioEquipamentoArray"/>
|
|
|
|
|
|