@ -208,12 +208,15 @@
<db-attribute name= "email_id" type= "INTEGER" isPrimaryKey= "true" isMandatory= "true" length= "10" />
<db-attribute name= "email_id" type= "INTEGER" isPrimaryKey= "true" isMandatory= "true" length= "10" />
<db-attribute name= "estabelecimento_id" type= "INTEGER" isPrimaryKey= "true" isMandatory= "true" length= "10" />
<db-attribute name= "estabelecimento_id" type= "INTEGER" isPrimaryKey= "true" isMandatory= "true" length= "10" />
</db-entity>
</db-entity>
<db-entity name= "hs_equipamento_medico" schema= "public" >
<db-entity name= "hs_equipamento" schema= "public" >
<db-attribute name= "deleted_date" type= "TIMESTAMP" length= "29" />
<db-attribute name= "id" type= "INTEGER" isPrimaryKey= "true" isMandatory= "true" length= "10" />
<db-attribute name= "id" type= "INTEGER" isPrimaryKey= "true" isMandatory= "true" length= "10" />
<db-attribute name= "nome" type= "VARCHAR" isMandatory= "true" length= "255" />
<db-attribute name= "marca" type= "VARCHAR" length= "255" />
<db-attribute name= "modelo" type= "VARCHAR" length= "255" />
<db-attribute name= "tipo" type= "VARCHAR" isMandatory= "true" length= "512" />
<db-key-generator >
<db-key-generator >
<db-generator-type > ORACLE</db-generator-type>
<db-generator-type > ORACLE</db-generator-type>
<db-generator-name > hs_equipamento_medico_ id_seq</db-generator-name>
<db-generator-name > hs_equipamento_id_seq</db-generator-name>
<db-key-cache-size > 1</db-key-cache-size>
<db-key-cache-size > 1</db-key-cache-size>
</db-key-generator>
</db-key-generator>
</db-entity>
</db-entity>
@ -334,8 +337,8 @@
<db-key-cache-size > 1</db-key-cache-size>
<db-key-cache-size > 1</db-key-cache-size>
</db-key-generator>
</db-key-generator>
</db-entity>
</db-entity>
<db-entity name= "hs_relatorio_equipamento _medico " schema= "public" >
<db-entity name= "hs_relatorio_equipamento " schema= "public" >
<db-attribute name= "hs_equipamento _medico_id " type= "INTEGER" isPrimaryKey= "true" isMandatory= "true" length= "10" />
<db-attribute name= "hs_equipamento " type= "INTEGER" isPrimaryKey= "true" isMandatory= "true" length= "10" />
<db-attribute name= "hs_relatorio_id" type= "INTEGER" isPrimaryKey= "true" isMandatory= "true" length= "10" />
<db-attribute name= "hs_relatorio_id" type= "INTEGER" isPrimaryKey= "true" isMandatory= "true" length= "10" />
</db-entity>
</db-entity>
<db-entity name= "hs_relatorio_legislacao" schema= "public" >
<db-entity name= "hs_relatorio_legislacao" schema= "public" >
@ -915,8 +918,11 @@
</obj-entity>
</obj-entity>
<obj-entity name= "HsEmailEstabelecimento" className= "siprp.database.cayenne.objects.HsEmailEstabelecimento" dbEntityName= "hs_email_estabelecimento" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-entity name= "HsEmailEstabelecimento" className= "siprp.database.cayenne.objects.HsEmailEstabelecimento" dbEntityName= "hs_email_estabelecimento" superClassName= "siprp.database.cayenne.objects.BaseObject" >
</obj-entity>
</obj-entity>
<obj-entity name= "HsEquipamentoMedico" className= "siprp.database.cayenne.objects.HsEquipamentoMedico" dbEntityName= "hs_equipamento_medico" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-entity name= "HsEquipamento" className= "siprp.database.cayenne.objects.HsEquipamento" dbEntityName= "hs_equipamento" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "nome" type= "java.lang.String" db-attribute-path= "nome" />
<obj-attribute name= "deletedDate" type= "java.util.Date" db-attribute-path= "deleted_date" />
<obj-attribute name= "marca" type= "java.lang.String" db-attribute-path= "marca" />
<obj-attribute name= "modelo" type= "java.lang.String" db-attribute-path= "modelo" />
<obj-attribute name= "tipo" type= "java.lang.String" db-attribute-path= "tipo" />
</obj-entity>
</obj-entity>
<obj-entity name= "HsLegislacao" className= "siprp.database.cayenne.objects.HsLegislacao" dbEntityName= "hs_legislacao" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-entity name= "HsLegislacao" className= "siprp.database.cayenne.objects.HsLegislacao" dbEntityName= "hs_legislacao" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "deletedDate" type= "java.util.Date" db-attribute-path= "deleted_date" />
<obj-attribute name= "deletedDate" type= "java.util.Date" db-attribute-path= "deleted_date" />
@ -976,7 +982,7 @@
<obj-attribute name= "deletedDate" type= "java.util.Date" db-attribute-path= "deleted_date" />
<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= "description" type= "java.lang.String" db-attribute-path= "description" />
</obj-entity>
</obj-entity>
<obj-entity name= "HsRelatorioEquipamento Medico " className= "siprp.database.cayenne.objects.HsRelatorioEquipamento Medico " dbEntityName= "hs_relatorio_equipament o_medic o" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-entity name= "HsRelatorioEquipamento " className= "siprp.database.cayenne.objects.HsRelatorioEquipamento " dbEntityName= "hs_relatorio_equipament o" superClassName= "siprp.database.cayenne.objects.BaseObject" >
</obj-entity>
</obj-entity>
<obj-entity name= "HsRelatorioLegislacao" className= "siprp.database.cayenne.objects.HsRelatorioLegislacao" dbEntityName= "hs_relatorio_legislacao" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-entity name= "HsRelatorioLegislacao" className= "siprp.database.cayenne.objects.HsRelatorioLegislacao" dbEntityName= "hs_relatorio_legislacao" superClassName= "siprp.database.cayenne.objects.BaseObject" >
</obj-entity>
</obj-entity>
@ -1355,8 +1361,8 @@
<db-relationship name= "toHsEmail" source= "hs_email_estabelecimento" target= "hs_email" toMany= "false" >
<db-relationship name= "toHsEmail" source= "hs_email_estabelecimento" target= "hs_email" toMany= "false" >
<db-attribute-pair source= "email_id" target= "id" />
<db-attribute-pair source= "email_id" target= "id" />
</db-relationship>
</db-relationship>
<db-relationship name= "hsRelatorioEquipamento Medico Array" source= "hs_equipamento _medico " target= "hs_relatorio_equipament o_medic o" toDependentPK= "true" toMany= "true" >
<db-relationship name= "hsRelatorioEquipamento Array" source= "hs_equipamento " target= "hs_relatorio_equipament o" toDependentPK= "true" toMany= "true" >
<db-attribute-pair source= "id" target= "hs_equipamento _medico_id "/>
<db-attribute-pair source= "id" target= "hs_equipamento "/>
</db-relationship>
</db-relationship>
<db-relationship name= "hsLegislacaoEmpresaArray" source= "hs_legislacao" target= "hs_legislacao_empresa" toDependentPK= "true" toMany= "true" >
<db-relationship name= "hsLegislacaoEmpresaArray" source= "hs_legislacao" target= "hs_legislacao_empresa" toDependentPK= "true" toMany= "true" >
<db-attribute-pair source= "id" target= "legislacao_id" />
<db-attribute-pair source= "id" target= "legislacao_id" />
@ -1445,7 +1451,7 @@
<db-relationship name= "hsRelatorioArea" source= "hs_relatorio" target= "hs_relatorio_area" toMany= "true" >
<db-relationship name= "hsRelatorioArea" source= "hs_relatorio" target= "hs_relatorio_area" toMany= "true" >
<db-attribute-pair source= "id" target= "relatorio_id" />
<db-attribute-pair source= "id" target= "relatorio_id" />
</db-relationship>
</db-relationship>
<db-relationship name= "hsRelatorioEquipamento Medico Array" source= "hs_relatorio" target= "hs_relatorio_equipament o_medic o" toDependentPK= "true" toMany= "true" >
<db-relationship name= "hsRelatorioEquipamento Array" source= "hs_relatorio" target= "hs_relatorio_equipament o" toDependentPK= "true" toMany= "true" >
<db-attribute-pair source= "id" target= "hs_relatorio_id" />
<db-attribute-pair source= "id" target= "hs_relatorio_id" />
</db-relationship>
</db-relationship>
<db-relationship name= "hsRelatorioLegislacaoArray" source= "hs_relatorio" target= "hs_relatorio_legislacao" toDependentPK= "true" toMany= "true" >
<db-relationship name= "hsRelatorioLegislacaoArray" source= "hs_relatorio" target= "hs_relatorio_legislacao" toDependentPK= "true" toMany= "true" >
@ -1466,10 +1472,10 @@
<db-relationship name= "toHsRelatorio" source= "hs_relatorio_area" target= "hs_relatorio" toMany= "false" >
<db-relationship name= "toHsRelatorio" source= "hs_relatorio_area" target= "hs_relatorio" toMany= "false" >
<db-attribute-pair source= "relatorio_id" target= "id" />
<db-attribute-pair source= "relatorio_id" target= "id" />
</db-relationship>
</db-relationship>
<db-relationship name= "toHsEquipamento Medico " source= "hs_relatorio_equipamento _medico " target= "hs_equipament o_medic o" toMany= "false" >
<db-relationship name= "toHsEquipamento " source= "hs_relatorio_equipamento " target= "hs_equipament o" toMany= "false" >
<db-attribute-pair source= "hs_equipamento _medico_id " target= "id" />
<db-attribute-pair source= "hs_equipamento " target= "id" />
</db-relationship>
</db-relationship>
<db-relationship name= "toHsRelatorio" source= "hs_relatorio_equipamento _medico " target= "hs_relatorio" toMany= "false" >
<db-relationship name= "toHsRelatorio" source= "hs_relatorio_equipamento " target= "hs_relatorio" toMany= "false" >
<db-attribute-pair source= "hs_relatorio_id" target= "id" />
<db-attribute-pair source= "hs_relatorio_id" target= "id" />
</db-relationship>
</db-relationship>
<db-relationship name= "toHsRelatorio" source= "hs_relatorio_legislacao" target= "hs_relatorio" toMany= "false" >
<db-relationship name= "toHsRelatorio" source= "hs_relatorio_legislacao" target= "hs_relatorio" toMany= "false" >
@ -1868,7 +1874,7 @@
<obj-relationship name= "toHsEmail" source= "HsEmailEmpresa" target= "HsEmail" deleteRule= "Nullify" db-relationship-path= "toHsEmail" />
<obj-relationship name= "toHsEmail" source= "HsEmailEmpresa" target= "HsEmail" deleteRule= "Nullify" db-relationship-path= "toHsEmail" />
<obj-relationship name= "toEstabelecimento" source= "HsEmailEstabelecimento" target= "Estabelecimentos" deleteRule= "Nullify" db-relationship-path= "toEstabelecimento" />
<obj-relationship name= "toEstabelecimento" source= "HsEmailEstabelecimento" target= "Estabelecimentos" deleteRule= "Nullify" db-relationship-path= "toEstabelecimento" />
<obj-relationship name= "toHsEmail" source= "HsEmailEstabelecimento" target= "HsEmail" deleteRule= "Nullify" db-relationship-path= "toHsEmail" />
<obj-relationship name= "toHsEmail" source= "HsEmailEstabelecimento" target= "HsEmail" deleteRule= "Nullify" db-relationship-path= "toHsEmail" />
<obj-relationship name= "hsRelatorioEquipamento Medico Array" source= "HsEquipament oMedic o" target= "HsRelatorioEquipamento Medico " db-relationship-path= "hsRelatorioEquipament oMedic oArray"/>
<obj-relationship name= "hsRelatorioEquipamento Array" source= "HsEquipament o" target= "HsRelatorioEquipamento " db-relationship-path= "hsRelatorioEquipament oArray"/>
<obj-relationship name= "hsLegislacaoEmpresaArray" source= "HsLegislacao" target= "HsLegislacaoEmpresa" deleteRule= "Cascade" db-relationship-path= "hsLegislacaoEmpresaArray" />
<obj-relationship name= "hsLegislacaoEmpresaArray" source= "HsLegislacao" target= "HsLegislacaoEmpresa" deleteRule= "Cascade" db-relationship-path= "hsLegislacaoEmpresaArray" />
<obj-relationship name= "hsLegislacaoEstabelecimentoArray" source= "HsLegislacao" target= "HsLegislacaoEstabelecimento" deleteRule= "Cascade" db-relationship-path= "hsLegislacaoEstabelecimentoArray" />
<obj-relationship name= "hsLegislacaoEstabelecimentoArray" source= "HsLegislacao" target= "HsLegislacaoEstabelecimento" deleteRule= "Cascade" db-relationship-path= "hsLegislacaoEstabelecimentoArray" />
<obj-relationship name= "toHsLegislacaoCategoria" source= "HsLegislacao" target= "HsLegislacaoCategoria" deleteRule= "Nullify" db-relationship-path= "toHsLegislacaoCategoria" />
<obj-relationship name= "toHsLegislacaoCategoria" source= "HsLegislacao" target= "HsLegislacaoCategoria" deleteRule= "Nullify" db-relationship-path= "toHsLegislacaoCategoria" />
@ -1897,15 +1903,15 @@
<obj-relationship name= "toHsRelatorioRiscoValorQualitativo" source= "HsPostoRisco" target= "HsRelatorioRiscoValorQualitativo" deleteRule= "Nullify" db-relationship-path= "toHsRelatorioRiscoValorQualitativo" />
<obj-relationship name= "toHsRelatorioRiscoValorQualitativo" source= "HsPostoRisco" target= "HsRelatorioRiscoValorQualitativo" deleteRule= "Nullify" db-relationship-path= "toHsRelatorioRiscoValorQualitativo" />
<obj-relationship name= "toHsRisco" source= "HsPostoRisco" target= "HsRisco" deleteRule= "Nullify" db-relationship-path= "toHsRisco" />
<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= "hsRelatorioArea" source= "HsRelatorio" target= "HsRelatorioArea" deleteRule= "Cascade" db-relationship-path= "hsRelatorioArea" />
<obj-relationship name= "hsRelatorioEquipamento Medico Array" source= "HsRelatorio" target= "HsRelatorioEquipamento Medico" deleteRule= "Cascade " db-relationship-path= "hsRelatorioEquipament oMedic oArray"/>
<obj-relationship name= "hsRelatorioEquipamento Array" source= "HsRelatorio" target= "HsRelatorioEquipamento " db-relationship-path= "hsRelatorioEquipament oArray"/>
<obj-relationship name= "hsRelatorioLegislacaoArray" source= "HsRelatorio" target= "HsRelatorioLegislacao" db-relationship-path= "hsRelatorioLegislacaoArray" />
<obj-relationship name= "hsRelatorioLegislacaoArray" source= "HsRelatorio" target= "HsRelatorioLegislacao" db-relationship-path= "hsRelatorioLegislacaoArray" />
<obj-relationship name= "hsRelatorioNormalizacaoArray" source= "HsRelatorio" target= "HsRelatorioNormalizacao" db-relationship-path= "hsRelatorioNormalizacaoArray" />
<obj-relationship name= "hsRelatorioNormalizacaoArray" source= "HsRelatorio" target= "HsRelatorioNormalizacao" db-relationship-path= "hsRelatorioNormalizacaoArray" />
<obj-relationship name= "hsRelatorioRiscoArray" source= "HsRelatorio" target= "HsRelatorioRisco" deleteRule= "Cascade" db-relationship-path= "hsRelatorioRiscoArray" />
<obj-relationship name= "hsRelatorioRiscoArray" source= "HsRelatorio" target= "HsRelatorioRisco" deleteRule= "Cascade" db-relationship-path= "hsRelatorioRiscoArray" />
<obj-relationship name= "toHsMarcacoesEstabelecimento" source= "HsRelatorio" target= "MarcacoesEstabelecimento" db-relationship-path= "toHsMarcacoesEstabelecimento" />
<obj-relationship name= "toHsMarcacoesEstabelecimento" source= "HsRelatorio" target= "MarcacoesEstabelecimento" db-relationship-path= "toHsMarcacoesEstabelecimento" />
<obj-relationship name= "hsRelatorioPostoArray" source= "HsRelatorioArea" target= "HsRelatorioPosto" deleteRule= "Cascade" db-relationship-path= "hsRelatorioPostoArray" />
<obj-relationship name= "hsRelatorioPostoArray" source= "HsRelatorioArea" target= "HsRelatorioPosto" deleteRule= "Cascade" db-relationship-path= "hsRelatorioPostoArray" />
<obj-relationship name= "toHsRelatorio" source= "HsRelatorioArea" target= "HsRelatorio" deleteRule= "Nullify" db-relationship-path= "toHsRelatorio" />
<obj-relationship name= "toHsRelatorio" source= "HsRelatorioArea" target= "HsRelatorio" deleteRule= "Nullify" db-relationship-path= "toHsRelatorio" />
<obj-relationship name= "toHsEquipamento Medico " source= "HsRelatorioEquipamento Medico " target= "HsEquipamento Medico" deleteRule= "Nullify " db-relationship-path= "toHsEquipament oMedic o"/>
<obj-relationship name= "toHsEquipamento " source= "HsRelatorioEquipamento " target= "HsEquipamento " db-relationship-path= "toHsEquipament o"/>
<obj-relationship name= "toHsRelatorio" source= "HsRelatorioEquipamento Medico " target= "HsRelatorio " deleteRule= "Nullify " db-relationship-path= "toHsRelatorio" />
<obj-relationship name= "toHsRelatorio" source= "HsRelatorioEquipamento " target= "HsRelatorio " db-relationship-path= "toHsRelatorio" />
<obj-relationship name= "toHsRelatorio" source= "HsRelatorioLegislacao" target= "HsRelatorio" db-relationship-path= "toHsRelatorio" />
<obj-relationship name= "toHsRelatorio" source= "HsRelatorioLegislacao" target= "HsRelatorio" db-relationship-path= "toHsRelatorio" />
<obj-relationship name= "hsRelatorioPostoMedidaArray" source= "HsRelatorioMedida" target= "HsRelatorioPostoMedida" deleteRule= "Cascade" db-relationship-path= "hsRelatorioPostoMedidaArray" />
<obj-relationship name= "hsRelatorioPostoMedidaArray" source= "HsRelatorioMedida" target= "HsRelatorioPostoMedida" deleteRule= "Cascade" db-relationship-path= "hsRelatorioPostoMedidaArray" />
<obj-relationship name= "toHsRelatorioRisco" source= "HsRelatorioMedida" target= "HsRelatorioRisco" deleteRule= "Nullify" db-relationship-path= "toHsRelatorioRisco" />
<obj-relationship name= "toHsRelatorioRisco" source= "HsRelatorioMedida" target= "HsRelatorioRisco" deleteRule= "Nullify" db-relationship-path= "toHsRelatorioRisco" />