Commit da71691a558ee6c8e935b151235eeaaa9caf27c0
1 parent
2c3e4513
Exists in
master
[Redmine Atendimento #4823] Auditoria Contrato
Showing
70 changed files
with
1402 additions
and
4 deletions
Show diff stats
cit-contratos-api/src/main/java/br/com/centralit/api/model/Contrato.java
| ... | ... | @@ -19,6 +19,10 @@ import javax.persistence.Temporal; |
| 19 | 19 | import javax.persistence.TemporalType; |
| 20 | 20 | import javax.persistence.Transient; |
| 21 | 21 | |
| 22 | +import org.hibernate.envers.AuditTable; | |
| 23 | +import org.hibernate.envers.Audited; | |
| 24 | +import org.hibernate.envers.NotAudited; | |
| 25 | + | |
| 22 | 26 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 23 | 27 | import br.com.centralit.framework.json.JsonCalendarSimpleDateDeserializer; |
| 24 | 28 | import br.com.centralit.framework.json.JsonCalendarSimpleDateSerializer; |
| ... | ... | @@ -64,6 +68,8 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| 64 | 68 | * @author iago.almeida |
| 65 | 69 | * |
| 66 | 70 | */ |
| 71 | +@Audited | |
| 72 | +@AuditTable(value = "cnt_contrato_aud") | |
| 67 | 73 | @Entity |
| 68 | 74 | @Table(name = "cnt_contrato") |
| 69 | 75 | @JsonIgnoreProperties({ "valorTotalItens", "cnpjFornecedor", "valorTotalLiberado", "ultimaDataVigenciaFinal" }) |
| ... | ... | @@ -214,6 +220,7 @@ public class Contrato extends PersistentObjectAuditOrganizacao { |
| 214 | 220 | private Dominio dominioSituacaoAtual; |
| 215 | 221 | |
| 216 | 222 | /** Atributo fornecedor. */ |
| 223 | + @NotAudited | |
| 217 | 224 | @ManyToOne(fetch = FetchType.LAZY, optional = false) |
| 218 | 225 | @JsonView({ ViewsContrato.ContratoEditView.class, |
| 219 | 226 | ViewsContrato.ContratoAutoCompleteView.class, |
| ... | ... | @@ -359,6 +366,7 @@ public class Contrato extends PersistentObjectAuditOrganizacao { |
| 359 | 366 | private Collection<ContratoDocumento> documentos; |
| 360 | 367 | |
| 361 | 368 | /** Atributo observacoes. */ |
| 369 | + @NotAudited | |
| 362 | 370 | @OneToMany(fetch = FetchType.LAZY, mappedBy = "contrato", cascade = CascadeType.ALL, orphanRemoval = true) |
| 363 | 371 | @JsonView({ ViewsContrato.ContratoEditView.class }) |
| 364 | 372 | private Collection<ContratoObservacao> observacoes; | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/ContratoDocumento.java
| ... | ... | @@ -5,6 +5,9 @@ import javax.persistence.FetchType; |
| 5 | 5 | import javax.persistence.ManyToOne; |
| 6 | 6 | import javax.persistence.Table; |
| 7 | 7 | |
| 8 | +import org.hibernate.envers.AuditTable; | |
| 9 | +import org.hibernate.envers.Audited; | |
| 10 | + | |
| 8 | 11 | |
| 9 | 12 | /** |
| 10 | 13 | * <p><img src="http://centralit.com.br/images/logo_central.png"></p> |
| ... | ... | @@ -26,6 +29,8 @@ import javax.persistence.Table; |
| 26 | 29 | * @author iago.almeida |
| 27 | 30 | * |
| 28 | 31 | */ |
| 32 | +@Audited | |
| 33 | +@AuditTable(value = "cnt_cn_documento_aud") | |
| 29 | 34 | @Entity |
| 30 | 35 | @Table(name="cnt_cn_documento") |
| 31 | 36 | public class ContratoDocumento extends Documento { | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/ContratoEmpenho.java
| ... | ... | @@ -14,6 +14,10 @@ import javax.persistence.Table; |
| 14 | 14 | import javax.persistence.Temporal; |
| 15 | 15 | import javax.persistence.TemporalType; |
| 16 | 16 | |
| 17 | +import org.hibernate.envers.AuditTable; | |
| 18 | +import org.hibernate.envers.Audited; | |
| 19 | +import org.hibernate.envers.NotAudited; | |
| 20 | + | |
| 17 | 21 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 18 | 22 | import br.com.centralit.framework.json.JsonCalendarSimpleDateDeserializer; |
| 19 | 23 | import br.com.centralit.framework.json.JsonCalendarSimpleDateSerializer; |
| ... | ... | @@ -45,6 +49,8 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| 45 | 49 | * @author iago.almeida |
| 46 | 50 | * |
| 47 | 51 | */ |
| 52 | +@Audited | |
| 53 | +@AuditTable(value = "cnt_cn_empenho_aud") | |
| 48 | 54 | @Entity |
| 49 | 55 | @Table(name = "cnt_cn_empenho") |
| 50 | 56 | @JsonIgnoreProperties({ "$checked" }) |
| ... | ... | @@ -105,6 +111,7 @@ public class ContratoEmpenho extends ContratoEvento { |
| 105 | 111 | private Collection<ContratoEmpenhoDocumento> documentos; |
| 106 | 112 | |
| 107 | 113 | /** Atributo observacoes. */ |
| 114 | + @NotAudited | |
| 108 | 115 | @OneToMany(fetch = FetchType.LAZY, mappedBy = "contratoEmpenho", cascade = CascadeType.ALL, orphanRemoval = true) |
| 109 | 116 | @JsonView({ ViewsContrato.ContratoEmpenhoEditView.class, ViewsContrato.ContratoEditView.class }) |
| 110 | 117 | private Collection<ContratoEmpenhoObservacao> observacoes; | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/ContratoEmpenhoDocumento.java
| ... | ... | @@ -5,6 +5,9 @@ import javax.persistence.FetchType; |
| 5 | 5 | import javax.persistence.ManyToOne; |
| 6 | 6 | import javax.persistence.Table; |
| 7 | 7 | |
| 8 | +import org.hibernate.envers.AuditTable; | |
| 9 | +import org.hibernate.envers.Audited; | |
| 10 | + | |
| 8 | 11 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 9 | 12 | |
| 10 | 13 | |
| ... | ... | @@ -29,6 +32,8 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 29 | 32 | * @author luis.camargo |
| 30 | 33 | * |
| 31 | 34 | */ |
| 35 | +@Audited | |
| 36 | +@AuditTable(value = "cnt_ep_documento_aud") | |
| 32 | 37 | @Entity |
| 33 | 38 | @Table(name="cnt_ep_documento") |
| 34 | 39 | @JsonIgnoreProperties({ "uploadsDocumento", "$uuid", "$checked", "$index", "size", "name", "$error" }) | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/ContratoEnvolvido.java
| ... | ... | @@ -13,6 +13,9 @@ import javax.persistence.ManyToOne; |
| 13 | 13 | import javax.persistence.OneToMany; |
| 14 | 14 | import javax.persistence.Table; |
| 15 | 15 | |
| 16 | +import org.hibernate.envers.AuditTable; | |
| 17 | +import org.hibernate.envers.Audited; | |
| 18 | + | |
| 16 | 19 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 17 | 20 | import com.fasterxml.jackson.annotation.JsonView; |
| 18 | 21 | |
| ... | ... | @@ -53,6 +56,8 @@ import br.com.centralit.framework.model.arquitetura.PersistentObjectAudit; |
| 53 | 56 | * @author iago.almeida |
| 54 | 57 | * |
| 55 | 58 | */ |
| 59 | +@Audited | |
| 60 | +@AuditTable(value = "cnt_cn_envolvido_aud") | |
| 56 | 61 | @Entity |
| 57 | 62 | @Table(name = "cnt_cn_envolvido") |
| 58 | 63 | @JsonIgnoreProperties({ "$checked", "justificativasAnterioresLength" }) | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/ContratoEnvolvidoJustificativa.java
| ... | ... | @@ -9,6 +9,9 @@ import javax.persistence.Id; |
| 9 | 9 | import javax.persistence.ManyToOne; |
| 10 | 10 | import javax.persistence.Table; |
| 11 | 11 | |
| 12 | +import org.hibernate.envers.AuditTable; | |
| 13 | +import org.hibernate.envers.Audited; | |
| 14 | + | |
| 12 | 15 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 13 | 16 | import br.com.centralit.framework.json.Views; |
| 14 | 17 | import br.com.centralit.framework.model.arquitetura.PersistentObjectAudit; |
| ... | ... | @@ -36,6 +39,8 @@ import com.fasterxml.jackson.annotation.JsonView; |
| 36 | 39 | * @author luis.camargo |
| 37 | 40 | * |
| 38 | 41 | */ |
| 42 | +@Audited | |
| 43 | +@AuditTable(value = "cnt_en_justificativa_aud") | |
| 39 | 44 | @Entity |
| 40 | 45 | @Table(name="cnt_en_justificativa") |
| 41 | 46 | public class ContratoEnvolvidoJustificativa extends PersistentObjectAudit { | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/ContratoEvento.java
| ... | ... | @@ -15,6 +15,9 @@ import javax.persistence.Table; |
| 15 | 15 | import javax.persistence.Temporal; |
| 16 | 16 | import javax.persistence.TemporalType; |
| 17 | 17 | |
| 18 | +import org.hibernate.envers.AuditTable; | |
| 19 | +import org.hibernate.envers.Audited; | |
| 20 | + | |
| 18 | 21 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 19 | 22 | import br.com.centralit.framework.json.JsonCalendarSimpleDateDeserializer; |
| 20 | 23 | import br.com.centralit.framework.json.JsonCalendarSimpleDateSerializer; |
| ... | ... | @@ -59,6 +62,8 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| 59 | 62 | * @author geovane.filho |
| 60 | 63 | * |
| 61 | 64 | */ |
| 65 | +@Audited | |
| 66 | +@AuditTable(value = "cnt_cn_evento_aud") | |
| 62 | 67 | @Entity |
| 63 | 68 | @Inheritance(strategy = InheritanceType.JOINED) |
| 64 | 69 | @Table(name = "cnt_cn_evento") | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/ContratoItem.java
| ... | ... | @@ -12,6 +12,9 @@ import javax.persistence.JoinColumn; |
| 12 | 12 | import javax.persistence.ManyToOne; |
| 13 | 13 | import javax.persistence.Table; |
| 14 | 14 | |
| 15 | +import org.hibernate.envers.AuditTable; | |
| 16 | +import org.hibernate.envers.Audited; | |
| 17 | + | |
| 15 | 18 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 16 | 19 | import com.fasterxml.jackson.annotation.JsonView; |
| 17 | 20 | import com.fasterxml.jackson.databind.annotation.JsonDeserialize; |
| ... | ... | @@ -42,6 +45,8 @@ import br.com.centralit.framework.model.arquitetura.PersistentObjectAudit; |
| 42 | 45 | * @author iago.almeida |
| 43 | 46 | * |
| 44 | 47 | */ |
| 48 | +@Audited | |
| 49 | +@AuditTable(value = "cnt_cn_item_aud") | |
| 45 | 50 | @Entity |
| 46 | 51 | @Table(name="cnt_cn_item") |
| 47 | 52 | @JsonIgnoreProperties({ "$checked" }) | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/ContratoValorPagamento.java
| ... | ... | @@ -14,6 +14,9 @@ import javax.persistence.Table; |
| 14 | 14 | import javax.persistence.Temporal; |
| 15 | 15 | import javax.persistence.TemporalType; |
| 16 | 16 | |
| 17 | +import org.hibernate.envers.AuditTable; | |
| 18 | +import org.hibernate.envers.Audited; | |
| 19 | + | |
| 17 | 20 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 18 | 21 | import br.com.centralit.framework.json.JsonCalendarSimpleDateDeserializer; |
| 19 | 22 | import br.com.centralit.framework.json.JsonCalendarSimpleDateSerializer; |
| ... | ... | @@ -47,6 +50,8 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| 47 | 50 | * @author iago.almeida |
| 48 | 51 | * |
| 49 | 52 | */ |
| 53 | +@Audited | |
| 54 | +@AuditTable(value = "cnt_cn_valorpagamento_aud") | |
| 50 | 55 | @Entity |
| 51 | 56 | @Table(name = "cnt_cn_valorpagamento") |
| 52 | 57 | @JsonIgnoreProperties({ "$checked"}) | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/CronogramaExecucao.java
| ... | ... | @@ -14,6 +14,10 @@ import javax.persistence.ManyToOne; |
| 14 | 14 | import javax.persistence.OneToMany; |
| 15 | 15 | import javax.persistence.Table; |
| 16 | 16 | |
| 17 | +import org.hibernate.envers.AuditTable; | |
| 18 | +import org.hibernate.envers.Audited; | |
| 19 | +import org.hibernate.envers.NotAudited; | |
| 20 | + | |
| 17 | 21 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 18 | 22 | import br.com.centralit.framework.json.MoneyDeserializer; |
| 19 | 23 | import br.com.centralit.framework.json.Views; |
| ... | ... | @@ -26,6 +30,8 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; |
| 26 | 30 | * @author luis.camargo |
| 27 | 31 | * |
| 28 | 32 | */ |
| 33 | +@Audited | |
| 34 | +@AuditTable(value = "cnt_cronogramaexecucao_aud") | |
| 29 | 35 | @Entity |
| 30 | 36 | @Table(name="cnt_cronogramaexecucao") |
| 31 | 37 | public class CronogramaExecucao extends PersistentObjectAuditOrganizacao { |
| ... | ... | @@ -54,6 +60,7 @@ public class CronogramaExecucao extends PersistentObjectAuditOrganizacao { |
| 54 | 60 | @JsonView({ ViewsContrato.CronogramaExecucaoEditView.class }) |
| 55 | 61 | private Collection<CronogramaExecucaoDocumento> documentos; |
| 56 | 62 | |
| 63 | + @NotAudited | |
| 57 | 64 | @OneToMany(fetch = FetchType.LAZY, mappedBy = "cronogramaExecucao", cascade = CascadeType.ALL, orphanRemoval = true) |
| 58 | 65 | @JsonView({ ViewsContrato.CronogramaExecucaoEditView.class }) |
| 59 | 66 | private Collection<CronogramaExecucaoObservacao> observacoes; | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/CronogramaExecucaoDocumento.java
| ... | ... | @@ -5,6 +5,9 @@ import javax.persistence.FetchType; |
| 5 | 5 | import javax.persistence.ManyToOne; |
| 6 | 6 | import javax.persistence.Table; |
| 7 | 7 | |
| 8 | +import org.hibernate.envers.AuditTable; | |
| 9 | +import org.hibernate.envers.Audited; | |
| 10 | + | |
| 8 | 11 | |
| 9 | 12 | /** |
| 10 | 13 | * <p><img src="http://centralit.com.br/images/logo_central.png"></p> |
| ... | ... | @@ -26,6 +29,8 @@ import javax.persistence.Table; |
| 26 | 29 | * @author luis.camargo |
| 27 | 30 | * |
| 28 | 31 | */ |
| 32 | +@Audited | |
| 33 | +@AuditTable(value = "cnt_ce_documento_aud") | |
| 29 | 34 | @Entity |
| 30 | 35 | @Table(name="cnt_ce_documento") |
| 31 | 36 | public class CronogramaExecucaoDocumento extends Documento { | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/CronogramaExecucaoItem.java
| ... | ... | @@ -15,6 +15,9 @@ import javax.persistence.OneToMany; |
| 15 | 15 | import javax.persistence.Table; |
| 16 | 16 | import javax.persistence.Transient; |
| 17 | 17 | |
| 18 | +import org.hibernate.envers.AuditTable; | |
| 19 | +import org.hibernate.envers.Audited; | |
| 20 | + | |
| 18 | 21 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 19 | 22 | import br.com.centralit.framework.json.MoneyDeserializer; |
| 20 | 23 | import br.com.centralit.framework.json.Views; |
| ... | ... | @@ -29,6 +32,8 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; |
| 29 | 32 | * @author luis.camargo |
| 30 | 33 | * |
| 31 | 34 | */ |
| 35 | +@Audited | |
| 36 | +@AuditTable(value = "cnt_ce_item_aud") | |
| 32 | 37 | @Entity |
| 33 | 38 | @Table(name="cnt_ce_item") |
| 34 | 39 | @JsonIgnoreProperties({ "$checked", "$index", "numeroParcelas" }) | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/CronogramaExecucaoItemParcela.java
| ... | ... | @@ -15,6 +15,9 @@ import javax.persistence.Table; |
| 15 | 15 | import javax.persistence.Temporal; |
| 16 | 16 | import javax.persistence.TemporalType; |
| 17 | 17 | |
| 18 | +import org.hibernate.envers.AuditTable; | |
| 19 | +import org.hibernate.envers.Audited; | |
| 20 | + | |
| 18 | 21 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 19 | 22 | import br.com.centralit.framework.json.JsonCalendarSimpleDateDeserializer; |
| 20 | 23 | import br.com.centralit.framework.json.JsonCalendarSimpleDateSerializer; |
| ... | ... | @@ -31,6 +34,8 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| 31 | 34 | * @author luis.camargo |
| 32 | 35 | * |
| 33 | 36 | */ |
| 37 | +@Audited | |
| 38 | +@AuditTable(value = "cnt_cei_parcela_aud") | |
| 34 | 39 | @Entity |
| 35 | 40 | @Table(name="cnt_cei_parcela") |
| 36 | 41 | @JsonIgnoreProperties({ "sequencia", "$checked", "$index" }) | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EncerramentoContrato.java
| ... | ... | @@ -17,6 +17,10 @@ import javax.persistence.Temporal; |
| 17 | 17 | import javax.persistence.TemporalType; |
| 18 | 18 | import javax.persistence.Transient; |
| 19 | 19 | |
| 20 | +import org.hibernate.envers.AuditTable; | |
| 21 | +import org.hibernate.envers.Audited; | |
| 22 | +import org.hibernate.envers.NotAudited; | |
| 23 | + | |
| 20 | 24 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 21 | 25 | import br.com.centralit.framework.json.JsonCalendarSimpleDateDeserializer; |
| 22 | 26 | import br.com.centralit.framework.json.JsonCalendarSimpleDateSerializer; |
| ... | ... | @@ -51,6 +55,8 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| 51 | 55 | * @author geovane.filho |
| 52 | 56 | * |
| 53 | 57 | */ |
| 58 | +@Audited | |
| 59 | +@AuditTable(value = "cnt_encerramentocontrato_aud") | |
| 54 | 60 | @Entity |
| 55 | 61 | @Table(name="cnt_encerramentocontrato") |
| 56 | 62 | @JsonIgnoreProperties({ "$checked", "existePendencia" }) |
| ... | ... | @@ -71,6 +77,7 @@ public class EncerramentoContrato extends PersistentObjectAudit { |
| 71 | 77 | private Contrato contrato; |
| 72 | 78 | |
| 73 | 79 | /** Atributo contratante. */ |
| 80 | + @NotAudited | |
| 74 | 81 | @ManyToOne(fetch = FetchType.LAZY, optional = false) |
| 75 | 82 | @JsonView({ ViewsContrato.EncerramentoContratoEditView.class }) |
| 76 | 83 | private Organizacao contratante; |
| ... | ... | @@ -119,6 +126,7 @@ public class EncerramentoContrato extends PersistentObjectAudit { |
| 119 | 126 | private Collection<EncerramentoContratoDocumento> documentos; |
| 120 | 127 | |
| 121 | 128 | /** Atributo observacoes. */ |
| 129 | + @NotAudited | |
| 122 | 130 | @OneToMany(fetch = FetchType.LAZY, mappedBy = "encerramentoContrato", cascade = CascadeType.ALL, orphanRemoval = true) |
| 123 | 131 | @JsonView({ ViewsContrato.EncerramentoContratoEditView.class }) |
| 124 | 132 | private Collection<EncerramentoContratoObservacao> observacoes; | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EncerramentoContratoDocumento.java
| ... | ... | @@ -5,6 +5,9 @@ import javax.persistence.FetchType; |
| 5 | 5 | import javax.persistence.ManyToOne; |
| 6 | 6 | import javax.persistence.Table; |
| 7 | 7 | |
| 8 | +import org.hibernate.envers.AuditTable; | |
| 9 | +import org.hibernate.envers.Audited; | |
| 10 | + | |
| 8 | 11 | |
| 9 | 12 | /** |
| 10 | 13 | * |
| ... | ... | @@ -27,6 +30,8 @@ import javax.persistence.Table; |
| 27 | 30 | * @author geovane.filho |
| 28 | 31 | * |
| 29 | 32 | */ |
| 33 | +@Audited | |
| 34 | +@AuditTable(value = "cnt_ec_documento_aud") | |
| 30 | 35 | @Entity |
| 31 | 36 | @Table(name="cnt_ec_documento") |
| 32 | 37 | public class EncerramentoContratoDocumento extends Documento { | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EstudoTecnico.java
| ... | ... | @@ -18,16 +18,20 @@ import javax.persistence.Temporal; |
| 18 | 18 | import javax.persistence.TemporalType; |
| 19 | 19 | import javax.persistence.Transient; |
| 20 | 20 | |
| 21 | +import org.hibernate.envers.AuditTable; | |
| 22 | +import org.hibernate.envers.Audited; | |
| 23 | +import org.hibernate.envers.NotAudited; | |
| 24 | + | |
| 25 | +import com.fasterxml.jackson.annotation.JsonView; | |
| 26 | +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | |
| 27 | +import com.fasterxml.jackson.databind.annotation.JsonSerialize; | |
| 28 | + | |
| 21 | 29 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 22 | 30 | import br.com.centralit.framework.json.JsonCalendarSimpleDateDeserializer; |
| 23 | 31 | import br.com.centralit.framework.json.JsonCalendarSimpleDateSerializer; |
| 24 | 32 | import br.com.centralit.framework.json.Views; |
| 25 | 33 | import br.com.centralit.framework.model.arquitetura.PersistentObjectAuditOrganizacao; |
| 26 | 34 | |
| 27 | -import com.fasterxml.jackson.annotation.JsonView; | |
| 28 | -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | |
| 29 | -import com.fasterxml.jackson.databind.annotation.JsonSerialize; | |
| 30 | - | |
| 31 | 35 | |
| 32 | 36 | /** |
| 33 | 37 | * <p><img src="http://centralit.com.br/images/logo_central.png"></p> |
| ... | ... | @@ -49,6 +53,8 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| 49 | 53 | * @author iago.almeida |
| 50 | 54 | * |
| 51 | 55 | */ |
| 56 | +@Audited | |
| 57 | +@AuditTable(value = "cnt_estudoTecnico_aud") | |
| 52 | 58 | @Entity |
| 53 | 59 | @Table(name="cnt_estudoTecnico") |
| 54 | 60 | public class EstudoTecnico extends PersistentObjectAuditOrganizacao { |
| ... | ... | @@ -159,6 +165,7 @@ public class EstudoTecnico extends PersistentObjectAuditOrganizacao { |
| 159 | 165 | private Collection<EstudoTecnicoAcaoContingencia> etAcoesContingencia; |
| 160 | 166 | |
| 161 | 167 | /** Atributo observacoes. */ |
| 168 | + @NotAudited | |
| 162 | 169 | @OneToMany(fetch = FetchType.LAZY, mappedBy = "estudoTecnico", cascade = CascadeType.ALL, orphanRemoval = true) |
| 163 | 170 | @JsonView({ ViewsContrato.EstudoTecnicoEditView.class }) |
| 164 | 171 | private Collection<EstudoTecnicoObservacao> observacoes; | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EstudoTecnicoAcaoContingencia.java
| ... | ... | @@ -9,6 +9,10 @@ import javax.persistence.Id; |
| 9 | 9 | import javax.persistence.ManyToOne; |
| 10 | 10 | import javax.persistence.Table; |
| 11 | 11 | |
| 12 | +import org.hibernate.envers.AuditTable; | |
| 13 | +import org.hibernate.envers.Audited; | |
| 14 | +import org.hibernate.envers.NotAudited; | |
| 15 | + | |
| 12 | 16 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 13 | 17 | import br.com.centralit.framework.json.Views; |
| 14 | 18 | import br.com.centralit.framework.model.arquitetura.PersistentObjectAuditOrganizacao; |
| ... | ... | @@ -37,6 +41,8 @@ import com.fasterxml.jackson.annotation.JsonView; |
| 37 | 41 | * @author iago.almeida |
| 38 | 42 | * |
| 39 | 43 | */ |
| 44 | +@Audited | |
| 45 | +@AuditTable(value = "cnt_et_acaocontingencia_aud") | |
| 40 | 46 | @Entity |
| 41 | 47 | @Table(name="cnt_et_acaocontingencia") |
| 42 | 48 | @JsonIgnoreProperties({ "$index", "$checked" }) |
| ... | ... | @@ -64,6 +70,7 @@ public class EstudoTecnicoAcaoContingencia extends PersistentObjectAuditOrganiza |
| 64 | 70 | private String acaoContigencia; |
| 65 | 71 | |
| 66 | 72 | /** Atributo responsavel. */ |
| 73 | + @NotAudited | |
| 67 | 74 | @ManyToOne(fetch = FetchType.LAZY, optional = false) |
| 68 | 75 | @JsonView({ ViewsContrato.EstudoTecnicoEditView.class }) |
| 69 | 76 | private Funcao responsavel; | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EstudoTecnicoBemServicoSolucao.java
| ... | ... | @@ -9,6 +9,9 @@ import javax.persistence.Id; |
| 9 | 9 | import javax.persistence.ManyToOne; |
| 10 | 10 | import javax.persistence.Table; |
| 11 | 11 | |
| 12 | +import org.hibernate.envers.AuditTable; | |
| 13 | +import org.hibernate.envers.Audited; | |
| 14 | + | |
| 12 | 15 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 13 | 16 | import br.com.centralit.framework.json.Views; |
| 14 | 17 | import br.com.centralit.framework.model.arquitetura.PersistentObjectAuditOrganizacao; |
| ... | ... | @@ -37,6 +40,8 @@ import com.fasterxml.jackson.annotation.JsonView; |
| 37 | 40 | * @author iago.almeida |
| 38 | 41 | * |
| 39 | 42 | */ |
| 43 | +@Audited | |
| 44 | +@AuditTable(value = "cnt_et_bemservicosolucao_aud") | |
| 40 | 45 | @Entity |
| 41 | 46 | @Table(name="cnt_et_bemservicosolucao") |
| 42 | 47 | @JsonIgnoreProperties({ "$index", "$checked" }) | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EstudoTecnicoBeneficioEsperado.java
| ... | ... | @@ -9,6 +9,9 @@ import javax.persistence.Id; |
| 9 | 9 | import javax.persistence.ManyToOne; |
| 10 | 10 | import javax.persistence.Table; |
| 11 | 11 | |
| 12 | +import org.hibernate.envers.AuditTable; | |
| 13 | +import org.hibernate.envers.Audited; | |
| 14 | + | |
| 12 | 15 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 13 | 16 | import br.com.centralit.framework.json.Views; |
| 14 | 17 | import br.com.centralit.framework.model.arquitetura.PersistentObjectAuditOrganizacao; |
| ... | ... | @@ -48,6 +51,8 @@ import com.fasterxml.jackson.annotation.JsonView; |
| 48 | 51 | * @author iago.almeida |
| 49 | 52 | * |
| 50 | 53 | */ |
| 54 | +@Audited | |
| 55 | +@AuditTable(value = "cnt_et_beneficioesperado_aud") | |
| 51 | 56 | @Entity |
| 52 | 57 | @Table(name="cnt_et_beneficioesperado") |
| 53 | 58 | @JsonIgnoreProperties({ "$index", "$checked" }) | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EstudoTecnicoDocumento.java
| ... | ... | @@ -5,6 +5,9 @@ import javax.persistence.FetchType; |
| 5 | 5 | import javax.persistence.ManyToOne; |
| 6 | 6 | import javax.persistence.Table; |
| 7 | 7 | |
| 8 | +import org.hibernate.envers.AuditTable; | |
| 9 | +import org.hibernate.envers.Audited; | |
| 10 | + | |
| 8 | 11 | |
| 9 | 12 | /** |
| 10 | 13 | * <p><img src="http://centralit.com.br/images/logo_central.png"></p> |
| ... | ... | @@ -26,6 +29,8 @@ import javax.persistence.Table; |
| 26 | 29 | * @author iago.almeida |
| 27 | 30 | * |
| 28 | 31 | */ |
| 32 | +@Audited | |
| 33 | +@AuditTable(value = "cnt_et_documento_aud") | |
| 29 | 34 | @Entity |
| 30 | 35 | @Table(name="cnt_et_documento") |
| 31 | 36 | public class EstudoTecnicoDocumento extends Documento { | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EstudoTecnicoLevantamentoAlternativaQuestionario.java
| ... | ... | @@ -16,6 +16,9 @@ import javax.persistence.Table; |
| 16 | 16 | import javax.persistence.Temporal; |
| 17 | 17 | import javax.persistence.TemporalType; |
| 18 | 18 | |
| 19 | +import org.hibernate.envers.AuditTable; | |
| 20 | +import org.hibernate.envers.Audited; | |
| 21 | + | |
| 19 | 22 | import com.fasterxml.jackson.annotation.JsonView; |
| 20 | 23 | import com.fasterxml.jackson.databind.annotation.JsonDeserialize; |
| 21 | 24 | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| ... | ... | @@ -47,6 +50,8 @@ import br.com.centralit.framework.model.arquitetura.PersistentObjectAuditOrganiz |
| 47 | 50 | * @author geovane.filho |
| 48 | 51 | * |
| 49 | 52 | */ |
| 53 | +@Audited | |
| 54 | +@AuditTable(value = "cnt_etla_questionario_aud") | |
| 50 | 55 | @Entity |
| 51 | 56 | @Table(name="cnt_etla_questionario") |
| 52 | 57 | public class EstudoTecnicoLevantamentoAlternativaQuestionario extends PersistentObjectAuditOrganizacao { | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EstudoTecnicoLevantamentoAlternativas.java
| ... | ... | @@ -13,6 +13,9 @@ import javax.persistence.ManyToOne; |
| 13 | 13 | import javax.persistence.OneToOne; |
| 14 | 14 | import javax.persistence.Table; |
| 15 | 15 | |
| 16 | +import org.hibernate.envers.AuditTable; | |
| 17 | +import org.hibernate.envers.Audited; | |
| 18 | + | |
| 16 | 19 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 17 | 20 | import br.com.centralit.framework.json.MoneyDeserializer; |
| 18 | 21 | import br.com.centralit.framework.json.Views; |
| ... | ... | @@ -43,6 +46,8 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; |
| 43 | 46 | * @author iago.almeida |
| 44 | 47 | * |
| 45 | 48 | */ |
| 49 | +@Audited | |
| 50 | +@AuditTable(value = "cnt_et_levantalternat_aud") | |
| 46 | 51 | @Entity |
| 47 | 52 | @Table(name="cnt_et_levantamentoalternativa") |
| 48 | 53 | @JsonIgnoreProperties({ "$index", "$checked" }) | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EstudoTecnicoQuestionario.java
| ... | ... | @@ -12,6 +12,9 @@ import javax.persistence.Id; |
| 12 | 12 | import javax.persistence.OneToMany; |
| 13 | 13 | import javax.persistence.Table; |
| 14 | 14 | |
| 15 | +import org.hibernate.envers.AuditTable; | |
| 16 | +import org.hibernate.envers.Audited; | |
| 17 | + | |
| 15 | 18 | import br.com.centralit.framework.json.Views; |
| 16 | 19 | import br.com.centralit.framework.model.arquitetura.PersistentObjectAuditOrganizacao; |
| 17 | 20 | |
| ... | ... | @@ -38,6 +41,8 @@ import com.fasterxml.jackson.annotation.JsonView; |
| 38 | 41 | * @author iago.almeida |
| 39 | 42 | * |
| 40 | 43 | */ |
| 44 | +@Audited | |
| 45 | +@AuditTable(value = "cnt_et_questionario_aud") | |
| 41 | 46 | @Entity |
| 42 | 47 | @Table(name="cnt_et_questionario") |
| 43 | 48 | public class EstudoTecnicoQuestionario extends PersistentObjectAuditOrganizacao { | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EstudoTecnicoQuestionarioResposta.java
| ... | ... | @@ -9,6 +9,9 @@ import javax.persistence.Id; |
| 9 | 9 | import javax.persistence.ManyToOne; |
| 10 | 10 | import javax.persistence.Table; |
| 11 | 11 | |
| 12 | +import org.hibernate.envers.AuditTable; | |
| 13 | +import org.hibernate.envers.Audited; | |
| 14 | + | |
| 12 | 15 | import br.com.centralit.framework.json.Views; |
| 13 | 16 | import br.com.centralit.framework.model.arquitetura.PersistentObjectAuditOrganizacao; |
| 14 | 17 | |
| ... | ... | @@ -36,6 +39,8 @@ import com.fasterxml.jackson.annotation.JsonView; |
| 36 | 39 | * @author geovane.filho |
| 37 | 40 | * |
| 38 | 41 | */ |
| 42 | +@Audited | |
| 43 | +@AuditTable(value = "cnt_etq_resposta_aud") | |
| 39 | 44 | @Entity |
| 40 | 45 | @Table(name="cnt_etq_resposta") |
| 41 | 46 | @JsonIgnoreProperties({ "index", "edit", "$checked" }) | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EstudoTecnicoRecursoHumano.java
| ... | ... | @@ -9,6 +9,9 @@ import javax.persistence.Id; |
| 9 | 9 | import javax.persistence.ManyToOne; |
| 10 | 10 | import javax.persistence.Table; |
| 11 | 11 | |
| 12 | +import org.hibernate.envers.AuditTable; | |
| 13 | +import org.hibernate.envers.Audited; | |
| 14 | + | |
| 12 | 15 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 13 | 16 | import br.com.centralit.framework.json.Views; |
| 14 | 17 | import br.com.centralit.framework.model.arquitetura.PersistentObjectAuditOrganizacao; |
| ... | ... | @@ -37,6 +40,8 @@ import com.fasterxml.jackson.annotation.JsonView; |
| 37 | 40 | * @author iago.almeida |
| 38 | 41 | * |
| 39 | 42 | */ |
| 43 | +@Audited | |
| 44 | +@AuditTable(value = "cnt_et_recursohumano_aud") | |
| 40 | 45 | @Entity |
| 41 | 46 | @Table(name="cnt_et_recursohumano") |
| 42 | 47 | @JsonIgnoreProperties({ "$index", "$checked" }) | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EstudoTecnicoRecursoMaterial.java
| ... | ... | @@ -9,6 +9,9 @@ import javax.persistence.Id; |
| 9 | 9 | import javax.persistence.ManyToOne; |
| 10 | 10 | import javax.persistence.Table; |
| 11 | 11 | |
| 12 | +import org.hibernate.envers.AuditTable; | |
| 13 | +import org.hibernate.envers.Audited; | |
| 14 | + | |
| 12 | 15 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 13 | 16 | import br.com.centralit.framework.json.Views; |
| 14 | 17 | import br.com.centralit.framework.model.arquitetura.PersistentObjectAuditOrganizacao; |
| ... | ... | @@ -37,6 +40,8 @@ import com.fasterxml.jackson.annotation.JsonView; |
| 37 | 40 | * @author iago.almeida |
| 38 | 41 | * |
| 39 | 42 | */ |
| 43 | +@Audited | |
| 44 | +@AuditTable(value = "cnt_et_recursomaterial_aud") | |
| 40 | 45 | @Entity |
| 41 | 46 | @Table(name="cnt_et_recursomaterial") |
| 42 | 47 | @JsonIgnoreProperties({ "$index", "$checked" }) | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EstudoTecnicoRequisitoNegocio.java
| ... | ... | @@ -11,6 +11,9 @@ import javax.persistence.JoinColumn; |
| 11 | 11 | import javax.persistence.ManyToOne; |
| 12 | 12 | import javax.persistence.Table; |
| 13 | 13 | |
| 14 | +import org.hibernate.envers.AuditTable; | |
| 15 | +import org.hibernate.envers.Audited; | |
| 16 | + | |
| 14 | 17 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 15 | 18 | import br.com.centralit.framework.json.Views; |
| 16 | 19 | import br.com.centralit.framework.model.arquitetura.PersistentObjectAuditOrganizacao; |
| ... | ... | @@ -39,6 +42,8 @@ import com.fasterxml.jackson.annotation.JsonView; |
| 39 | 42 | * @author iago.almeida |
| 40 | 43 | * |
| 41 | 44 | */ |
| 45 | +@Audited | |
| 46 | +@AuditTable(value = "cnt_et_requisitonegocio_aud") | |
| 42 | 47 | @Entity |
| 43 | 48 | @Table(name="cnt_et_requisitonegocio") |
| 44 | 49 | @JsonIgnoreProperties({ "$index", "$checked" }) | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EventoAditivo.java
| ... | ... | @@ -15,6 +15,10 @@ import javax.persistence.Table; |
| 15 | 15 | import javax.persistence.Temporal; |
| 16 | 16 | import javax.persistence.TemporalType; |
| 17 | 17 | |
| 18 | +import org.hibernate.envers.AuditTable; | |
| 19 | +import org.hibernate.envers.Audited; | |
| 20 | +import org.hibernate.envers.NotAudited; | |
| 21 | + | |
| 18 | 22 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 19 | 23 | import br.com.centralit.framework.json.JsonCalendarSimpleDateDeserializer; |
| 20 | 24 | import br.com.centralit.framework.json.JsonCalendarSimpleDateSerializer; |
| ... | ... | @@ -49,6 +53,8 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| 49 | 53 | * @author geovane.filho |
| 50 | 54 | * |
| 51 | 55 | */ |
| 56 | +@Audited | |
| 57 | +@AuditTable(value = "cnt_ev_aditivo_aud") | |
| 52 | 58 | @Entity |
| 53 | 59 | @Table(name="cnt_ev_aditivo") |
| 54 | 60 | @JsonIgnoreProperties({ "$checked" }) |
| ... | ... | @@ -145,6 +151,7 @@ public class EventoAditivo extends ContratoEvento { |
| 145 | 151 | private Collection<EventoAditivoDocumento> documentos; |
| 146 | 152 | |
| 147 | 153 | /** Atributo observacoes. */ |
| 154 | + @NotAudited | |
| 148 | 155 | @OneToMany(fetch = FetchType.LAZY, mappedBy = "eventoAditivo", cascade = CascadeType.ALL, orphanRemoval = true) |
| 149 | 156 | @JsonView({ ViewsContrato.EventoAditivoEditView.class, ViewsContrato.ContratoEditView.class }) |
| 150 | 157 | private Collection<EventoAditivoObservacao> observacoes; | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EventoAditivoDocumento.java
| ... | ... | @@ -5,6 +5,9 @@ import javax.persistence.FetchType; |
| 5 | 5 | import javax.persistence.ManyToOne; |
| 6 | 6 | import javax.persistence.Table; |
| 7 | 7 | |
| 8 | +import org.hibernate.envers.AuditTable; | |
| 9 | +import org.hibernate.envers.Audited; | |
| 10 | + | |
| 8 | 11 | |
| 9 | 12 | /** |
| 10 | 13 | * |
| ... | ... | @@ -27,6 +30,8 @@ import javax.persistence.Table; |
| 27 | 30 | * @author geovane.filho |
| 28 | 31 | * |
| 29 | 32 | */ |
| 33 | +@Audited | |
| 34 | +@AuditTable(value = "cnt_ad_documento_aud") | |
| 30 | 35 | @Entity |
| 31 | 36 | @Table(name="cnt_ad_documento") |
| 32 | 37 | public class EventoAditivoDocumento extends Documento { | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EventoApostilamento.java
| ... | ... | @@ -13,6 +13,10 @@ import javax.persistence.Table; |
| 13 | 13 | import javax.persistence.Temporal; |
| 14 | 14 | import javax.persistence.TemporalType; |
| 15 | 15 | |
| 16 | +import org.hibernate.envers.AuditTable; | |
| 17 | +import org.hibernate.envers.Audited; | |
| 18 | +import org.hibernate.envers.NotAudited; | |
| 19 | + | |
| 16 | 20 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 17 | 21 | import br.com.centralit.framework.json.JsonCalendarSimpleDateDeserializer; |
| 18 | 22 | import br.com.centralit.framework.json.JsonCalendarSimpleDateSerializer; |
| ... | ... | @@ -44,6 +48,8 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| 44 | 48 | * @author geovane.filho |
| 45 | 49 | * |
| 46 | 50 | */ |
| 51 | +@Audited | |
| 52 | +@AuditTable(value = "cnt_ev_apostilamento_aud") | |
| 47 | 53 | @Entity |
| 48 | 54 | @Table(name="cnt_ev_apostilamento") |
| 49 | 55 | @JsonIgnoreProperties({ "cnpjFornecedor" }) |
| ... | ... | @@ -80,6 +86,7 @@ public class EventoApostilamento extends ContratoEvento { |
| 80 | 86 | private Collection<EventoApostilamentoDocumento> documentos; |
| 81 | 87 | |
| 82 | 88 | /** Atributo observacoes. */ |
| 89 | + @NotAudited | |
| 83 | 90 | @OneToMany(fetch = FetchType.LAZY, mappedBy = "eventoApostilamento", cascade = CascadeType.ALL, orphanRemoval = true) |
| 84 | 91 | @JsonView({ ViewsContrato.EventoApostilamentoEditView.class }) |
| 85 | 92 | private Collection<EventoApostilamentoObservacao> observacoes; | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EventoApostilamentoDocumento.java
| ... | ... | @@ -5,6 +5,9 @@ import javax.persistence.FetchType; |
| 5 | 5 | import javax.persistence.ManyToOne; |
| 6 | 6 | import javax.persistence.Table; |
| 7 | 7 | |
| 8 | +import org.hibernate.envers.AuditTable; | |
| 9 | +import org.hibernate.envers.Audited; | |
| 10 | + | |
| 8 | 11 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 9 | 12 | |
| 10 | 13 | |
| ... | ... | @@ -29,6 +32,8 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 29 | 32 | * @author geovane.filho |
| 30 | 33 | * |
| 31 | 34 | */ |
| 35 | +@Audited | |
| 36 | +@AuditTable(value = "cnt_ap_documento_aud") | |
| 32 | 37 | @Entity |
| 33 | 38 | @Table(name="cnt_ap_documento") |
| 34 | 39 | @JsonIgnoreProperties({ "uploadsDocumento", "$uuid", "$checked", "$index", "size", "name", "$error" }) | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EventoAtualizacaoStatus.java
| ... | ... | @@ -13,6 +13,10 @@ import javax.persistence.Table; |
| 13 | 13 | import javax.persistence.Temporal; |
| 14 | 14 | import javax.persistence.TemporalType; |
| 15 | 15 | |
| 16 | +import org.hibernate.envers.AuditTable; | |
| 17 | +import org.hibernate.envers.Audited; | |
| 18 | +import org.hibernate.envers.NotAudited; | |
| 19 | + | |
| 16 | 20 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 17 | 21 | import br.com.centralit.framework.json.JsonCalendarSimpleDateDeserializer; |
| 18 | 22 | import br.com.centralit.framework.model.Dominio; |
| ... | ... | @@ -43,6 +47,8 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; |
| 43 | 47 | * @author geovane.filho |
| 44 | 48 | * |
| 45 | 49 | */ |
| 50 | +@Audited | |
| 51 | +@AuditTable(value = "cnt_ev_atualizacaostatus_aud") | |
| 46 | 52 | @Entity |
| 47 | 53 | @Table(name="cnt_ev_atualizacaostatus") |
| 48 | 54 | @JsonIgnoreProperties({ "$checked" }) |
| ... | ... | @@ -79,6 +85,7 @@ public class EventoAtualizacaoStatus extends ContratoEvento { |
| 79 | 85 | private Collection<EventoAtualizacaoStatusDocumento> documentos; |
| 80 | 86 | |
| 81 | 87 | /** Atributo observacoes. */ |
| 88 | + @NotAudited | |
| 82 | 89 | @OneToMany(fetch = FetchType.LAZY, mappedBy = "eventoAtualizacaoStatus", cascade = CascadeType.ALL, orphanRemoval = true) |
| 83 | 90 | @JsonView({ ViewsContrato.EventoAtualizacaoStatusEditView.class }) |
| 84 | 91 | private Collection<EventoAtualizacaoStatusObservacao> observacoes; | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EventoAtualizacaoStatusDocumento.java
| ... | ... | @@ -6,6 +6,9 @@ import javax.persistence.JoinColumn; |
| 6 | 6 | import javax.persistence.ManyToOne; |
| 7 | 7 | import javax.persistence.Table; |
| 8 | 8 | |
| 9 | +import org.hibernate.envers.AuditTable; | |
| 10 | +import org.hibernate.envers.Audited; | |
| 11 | + | |
| 9 | 12 | |
| 10 | 13 | /** |
| 11 | 14 | * |
| ... | ... | @@ -28,6 +31,8 @@ import javax.persistence.Table; |
| 28 | 31 | * @author geovane.filho |
| 29 | 32 | * |
| 30 | 33 | */ |
| 34 | +@Audited | |
| 35 | +@AuditTable(value = "cnt_as_documento_aud") | |
| 31 | 36 | @Entity |
| 32 | 37 | @Table(name="cnt_as_documento") |
| 33 | 38 | public class EventoAtualizacaoStatusDocumento extends Documento { | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EventoLiberacaoPagamento.java
| ... | ... | @@ -14,6 +14,10 @@ import javax.persistence.Table; |
| 14 | 14 | import javax.persistence.Temporal; |
| 15 | 15 | import javax.persistence.TemporalType; |
| 16 | 16 | |
| 17 | +import org.hibernate.envers.AuditTable; | |
| 18 | +import org.hibernate.envers.Audited; | |
| 19 | +import org.hibernate.envers.NotAudited; | |
| 20 | + | |
| 17 | 21 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 18 | 22 | import br.com.centralit.framework.json.JsonCalendarSimpleDateDeserializer; |
| 19 | 23 | import br.com.centralit.framework.json.MoneyDeserializer; |
| ... | ... | @@ -55,6 +59,8 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; |
| 55 | 59 | * @author erick.sato |
| 56 | 60 | * |
| 57 | 61 | */ |
| 62 | +@Audited | |
| 63 | +@AuditTable(value = "cnt_ev_lib_pagamento_aud") | |
| 58 | 64 | @Entity |
| 59 | 65 | @Table(name = "cnt_ev_liberacao_pagamento") |
| 60 | 66 | @JsonIgnoreProperties({ "valorLiberadoPagamento", "valorExecutado", "percentualEmpenho", "liberarPagamentoValorContrata", "valorTotalOS", "valorGlosa" }) |
| ... | ... | @@ -100,6 +106,7 @@ public class EventoLiberacaoPagamento extends ContratoEvento { |
| 100 | 106 | @JsonView({ ViewsContrato.EventoLiberacaoPagamentoView.class }) |
| 101 | 107 | private Collection<EventoLiberacaoPagamentoEmpenho> empenhos; |
| 102 | 108 | |
| 109 | + @NotAudited | |
| 103 | 110 | @OneToMany(fetch = FetchType.LAZY, mappedBy = "liberacaoPagamento", cascade = CascadeType.ALL, orphanRemoval = true) |
| 104 | 111 | @JsonView({ ViewsContrato.EventoLiberacaoPagamentoView.class }) |
| 105 | 112 | private Collection<EventoLiberacaoPagamentoObservacao> observacoes; | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EventoLiberacaoPagamentoDocumento.java
| ... | ... | @@ -5,6 +5,9 @@ import javax.persistence.FetchType; |
| 5 | 5 | import javax.persistence.ManyToOne; |
| 6 | 6 | import javax.persistence.Table; |
| 7 | 7 | |
| 8 | +import org.hibernate.envers.AuditTable; | |
| 9 | +import org.hibernate.envers.Audited; | |
| 10 | + | |
| 8 | 11 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 9 | 12 | |
| 10 | 13 | /** |
| ... | ... | @@ -25,6 +28,8 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 25 | 28 | * @author erick.sato |
| 26 | 29 | * |
| 27 | 30 | */ |
| 31 | +@Audited | |
| 32 | +@AuditTable(value = "cnt_lp_documento_aud") | |
| 28 | 33 | @Entity |
| 29 | 34 | @Table(name = "cnt_lp_documento") |
| 30 | 35 | @JsonIgnoreProperties({ "uploadsDocumento", "$uuid", "$checked", "$index","size", "name", "$error" }) | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EventoLiberacaoPagamentoEmpenho.java
| ... | ... | @@ -11,6 +11,9 @@ import javax.persistence.Id; |
| 11 | 11 | import javax.persistence.ManyToOne; |
| 12 | 12 | import javax.persistence.Table; |
| 13 | 13 | |
| 14 | +import org.hibernate.envers.AuditTable; | |
| 15 | +import org.hibernate.envers.Audited; | |
| 16 | + | |
| 14 | 17 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 15 | 18 | import br.com.centralit.framework.json.MoneyDeserializer; |
| 16 | 19 | import br.com.centralit.framework.model.arquitetura.PersistentObjectAuditOrganizacao; |
| ... | ... | @@ -50,6 +53,8 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; |
| 50 | 53 | * @author erick.sato |
| 51 | 54 | * |
| 52 | 55 | */ |
| 56 | +@Audited | |
| 57 | +@AuditTable(value = "cnt_lp_empenho_aud") | |
| 53 | 58 | @Entity |
| 54 | 59 | @Table(name = "cnt_lp_empenho") |
| 55 | 60 | public class EventoLiberacaoPagamentoEmpenho extends PersistentObjectAuditOrganizacao { | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EventoLiberacaoPagamentoOrdemFornecimento.java
| ... | ... | @@ -11,6 +11,9 @@ import javax.persistence.Id; |
| 11 | 11 | import javax.persistence.ManyToOne; |
| 12 | 12 | import javax.persistence.Table; |
| 13 | 13 | |
| 14 | +import org.hibernate.envers.AuditTable; | |
| 15 | +import org.hibernate.envers.Audited; | |
| 16 | + | |
| 14 | 17 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 15 | 18 | import br.com.centralit.framework.json.MoneyDeserializer; |
| 16 | 19 | import br.com.centralit.framework.model.arquitetura.PersistentObjectAuditOrganizacao; |
| ... | ... | @@ -50,6 +53,8 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; |
| 50 | 53 | * @author erick.sato |
| 51 | 54 | * |
| 52 | 55 | */ |
| 56 | +@Audited | |
| 57 | +@AuditTable(value = "cnt_lp_odfornecimento_aud") | |
| 53 | 58 | @Entity |
| 54 | 59 | @Table(name = "cnt_lp_ordemfornecimento") |
| 55 | 60 | public class EventoLiberacaoPagamentoOrdemFornecimento extends PersistentObjectAuditOrganizacao { | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EventoPenalidade.java
| ... | ... | @@ -13,6 +13,10 @@ import javax.persistence.Table; |
| 13 | 13 | import javax.persistence.Temporal; |
| 14 | 14 | import javax.persistence.TemporalType; |
| 15 | 15 | |
| 16 | +import org.hibernate.envers.AuditTable; | |
| 17 | +import org.hibernate.envers.Audited; | |
| 18 | +import org.hibernate.envers.NotAudited; | |
| 19 | + | |
| 16 | 20 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 17 | 21 | import br.com.centralit.framework.json.JsonCalendarSimpleDateDeserializer; |
| 18 | 22 | |
| ... | ... | @@ -42,6 +46,8 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; |
| 42 | 46 | * @author geovane.filho |
| 43 | 47 | * |
| 44 | 48 | */ |
| 49 | +@Audited | |
| 50 | +@AuditTable(value = "cnt_ev_penalidade_aud") | |
| 45 | 51 | @Entity |
| 46 | 52 | @Table(name="cnt_ev_penalidade") |
| 47 | 53 | @JsonIgnoreProperties({ "$checked", "cnpjFornecedor" }) |
| ... | ... | @@ -76,6 +82,7 @@ public class EventoPenalidade extends ContratoEvento { |
| 76 | 82 | private Collection<EventoPenalidadeDocumento> documentos; |
| 77 | 83 | |
| 78 | 84 | /** Atributo observacoes. */ |
| 85 | + @NotAudited | |
| 79 | 86 | @OneToMany(fetch = FetchType.LAZY, mappedBy = "eventoPenalidade", cascade = CascadeType.ALL, orphanRemoval = true) |
| 80 | 87 | @JsonView({ ViewsContrato.EventoPenalidadeEditView.class }) |
| 81 | 88 | private Collection<EventoPenalidadeObservacao> observacoes; | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EventoPenalidadeDocumento.java
| ... | ... | @@ -5,6 +5,9 @@ import javax.persistence.FetchType; |
| 5 | 5 | import javax.persistence.ManyToOne; |
| 6 | 6 | import javax.persistence.Table; |
| 7 | 7 | |
| 8 | +import org.hibernate.envers.AuditTable; | |
| 9 | +import org.hibernate.envers.Audited; | |
| 10 | + | |
| 8 | 11 | |
| 9 | 12 | /** |
| 10 | 13 | * |
| ... | ... | @@ -27,6 +30,8 @@ import javax.persistence.Table; |
| 27 | 30 | * @author geovane.filho |
| 28 | 31 | * |
| 29 | 32 | */ |
| 33 | +@Audited | |
| 34 | +@AuditTable(value = "cnt_pn_documento_aud") | |
| 30 | 35 | @Entity |
| 31 | 36 | @Table(name="cnt_pn_documento") |
| 32 | 37 | public class EventoPenalidadeDocumento extends Documento { | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EventoPenalidadeRegistroOcorrencia.java
| ... | ... | @@ -8,6 +8,9 @@ import javax.persistence.Id; |
| 8 | 8 | import javax.persistence.ManyToOne; |
| 9 | 9 | import javax.persistence.Table; |
| 10 | 10 | |
| 11 | +import org.hibernate.envers.AuditTable; | |
| 12 | +import org.hibernate.envers.Audited; | |
| 13 | + | |
| 11 | 14 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 12 | 15 | import br.com.centralit.framework.json.Views; |
| 13 | 16 | import br.com.centralit.framework.model.arquitetura.PersistentObjectAudit; |
| ... | ... | @@ -36,6 +39,8 @@ import com.fasterxml.jackson.annotation.JsonView; |
| 36 | 39 | * @author luis.camargo |
| 37 | 40 | * |
| 38 | 41 | */ |
| 42 | +@Audited | |
| 43 | +@AuditTable(value = "cnt_pn_regocorrencia_aud") | |
| 39 | 44 | @Entity |
| 40 | 45 | @Table(name="cnt_pn_registroocorrencia") |
| 41 | 46 | public class EventoPenalidadeRegistroOcorrencia extends PersistentObjectAudit { | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EventoRecebimentoObjeto.java
| ... | ... | @@ -14,6 +14,10 @@ import javax.persistence.Table; |
| 14 | 14 | import javax.persistence.Temporal; |
| 15 | 15 | import javax.persistence.TemporalType; |
| 16 | 16 | |
| 17 | +import org.hibernate.envers.AuditTable; | |
| 18 | +import org.hibernate.envers.Audited; | |
| 19 | +import org.hibernate.envers.NotAudited; | |
| 20 | + | |
| 17 | 21 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 18 | 22 | import br.com.centralit.framework.json.JsonCalendarSimpleDateDeserializer; |
| 19 | 23 | import br.com.centralit.framework.json.JsonCalendarSimpleDateSerializer; |
| ... | ... | @@ -57,6 +61,8 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| 57 | 61 | * @author geovane.filho |
| 58 | 62 | * |
| 59 | 63 | */ |
| 64 | +@Audited | |
| 65 | +@AuditTable(value = "cnt_ev_recebimentoobjeto_aud") | |
| 60 | 66 | @Entity |
| 61 | 67 | @Table(name = "cnt_ev_recebimentoobjeto") |
| 62 | 68 | @JsonIgnoreProperties({ "$checked", "$index", "originalElement"}) |
| ... | ... | @@ -108,6 +114,7 @@ public class EventoRecebimentoObjeto extends ContratoEvento { |
| 108 | 114 | private Collection<EventoRecebimentoObjetoDocumento> documentos; |
| 109 | 115 | |
| 110 | 116 | /** Atributo observacoes. */ |
| 117 | + @NotAudited | |
| 111 | 118 | @OneToMany(fetch = FetchType.LAZY, mappedBy = "eventoRecebimentoObjeto", cascade = CascadeType.ALL, orphanRemoval = true) |
| 112 | 119 | @JsonView({ ViewsContrato.EventoRecebimentoObjetoEditView.class }) |
| 113 | 120 | private Collection<EventoRecebimentoObjetoObservacao> observacoes; | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EventoRecebimentoObjetoDocumento.java
| ... | ... | @@ -6,6 +6,9 @@ import javax.persistence.JoinColumn; |
| 6 | 6 | import javax.persistence.ManyToOne; |
| 7 | 7 | import javax.persistence.Table; |
| 8 | 8 | |
| 9 | +import org.hibernate.envers.AuditTable; | |
| 10 | +import org.hibernate.envers.Audited; | |
| 11 | + | |
| 9 | 12 | /** |
| 10 | 13 | * |
| 11 | 14 | * <p> |
| ... | ... | @@ -39,6 +42,8 @@ import javax.persistence.Table; |
| 39 | 42 | * @author geovane.filho |
| 40 | 43 | * |
| 41 | 44 | */ |
| 45 | +@Audited | |
| 46 | +@AuditTable(value = "cnt_ev_ro_documento_aud") | |
| 42 | 47 | @Entity |
| 43 | 48 | @Table(name = "cnt_ev_ro_documento") |
| 44 | 49 | public class EventoRecebimentoObjetoDocumento extends Documento { | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EventoRegistroNaoConformidade.java
| ... | ... | @@ -14,6 +14,10 @@ import javax.persistence.Table; |
| 14 | 14 | import javax.persistence.Temporal; |
| 15 | 15 | import javax.persistence.TemporalType; |
| 16 | 16 | |
| 17 | +import org.hibernate.envers.AuditTable; | |
| 18 | +import org.hibernate.envers.Audited; | |
| 19 | +import org.hibernate.envers.NotAudited; | |
| 20 | + | |
| 17 | 21 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 18 | 22 | import br.com.centralit.framework.json.JsonCalendarSimpleDateDeserializer; |
| 19 | 23 | import br.com.centralit.framework.json.MoneyDeserializer; |
| ... | ... | @@ -44,6 +48,8 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; |
| 44 | 48 | * @author geovane.filho |
| 45 | 49 | * |
| 46 | 50 | */ |
| 51 | +@Audited | |
| 52 | +@AuditTable(value = "cnt_ev_registro_nc_aud") | |
| 47 | 53 | @Entity |
| 48 | 54 | @Table(name="cnt_ev_registro_nc") |
| 49 | 55 | @JsonIgnoreProperties({ "$checked"}) |
| ... | ... | @@ -87,6 +93,7 @@ public class EventoRegistroNaoConformidade extends ContratoEvento { |
| 87 | 93 | private Collection<EventoRegistroNaoConformidadeDocumento> documentos; |
| 88 | 94 | |
| 89 | 95 | /** Atributo observacoes. */ |
| 96 | + @NotAudited | |
| 90 | 97 | @OneToMany(fetch = FetchType.LAZY, mappedBy = "eventoRegistroNaoConformidade", cascade = CascadeType.ALL, orphanRemoval = true) |
| 91 | 98 | @JsonView({ ViewsContrato.EventoRegistroNaoConformidadeView.class }) |
| 92 | 99 | private Collection<EventoRegistroNaoConformidadeObservacao> observacoes; | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EventoRegistroNaoConformidadeDocumento.java
| ... | ... | @@ -6,6 +6,9 @@ import javax.persistence.JoinColumn; |
| 6 | 6 | import javax.persistence.ManyToOne; |
| 7 | 7 | import javax.persistence.Table; |
| 8 | 8 | |
| 9 | +import org.hibernate.envers.AuditTable; | |
| 10 | +import org.hibernate.envers.Audited; | |
| 11 | + | |
| 9 | 12 | |
| 10 | 13 | /** |
| 11 | 14 | * |
| ... | ... | @@ -28,6 +31,8 @@ import javax.persistence.Table; |
| 28 | 31 | * @author geovane.filho |
| 29 | 32 | * |
| 30 | 33 | */ |
| 34 | +@Audited | |
| 35 | +@AuditTable(value = "cnt_nc_empenho_aud") | |
| 31 | 36 | @Entity |
| 32 | 37 | @Table(name="cnt_nc_documento") |
| 33 | 38 | public class EventoRegistroNaoConformidadeDocumento extends Documento { | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EventoRepactuacao.java
| ... | ... | @@ -13,6 +13,10 @@ import javax.persistence.Table; |
| 13 | 13 | import javax.persistence.Temporal; |
| 14 | 14 | import javax.persistence.TemporalType; |
| 15 | 15 | |
| 16 | +import org.hibernate.envers.AuditTable; | |
| 17 | +import org.hibernate.envers.Audited; | |
| 18 | +import org.hibernate.envers.NotAudited; | |
| 19 | + | |
| 16 | 20 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 17 | 21 | import br.com.centralit.framework.json.JsonCalendarSimpleDateDeserializer; |
| 18 | 22 | import br.com.centralit.framework.json.JsonCalendarSimpleDateSerializer; |
| ... | ... | @@ -43,6 +47,8 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| 43 | 47 | * @author geovane.filho |
| 44 | 48 | * |
| 45 | 49 | */ |
| 50 | +@Audited | |
| 51 | +@AuditTable(value = "cnt_ev_repactuacao_aud") | |
| 46 | 52 | @Entity |
| 47 | 53 | @Table(name="cnt_ev_repactuacao") |
| 48 | 54 | public class EventoRepactuacao extends ContratoEvento { |
| ... | ... | @@ -77,6 +83,7 @@ public class EventoRepactuacao extends ContratoEvento { |
| 77 | 83 | private Collection<EventoRepactuacaoDocumento> documentos; |
| 78 | 84 | |
| 79 | 85 | /** Atributo observacoes. */ |
| 86 | + @NotAudited | |
| 80 | 87 | @OneToMany(fetch = FetchType.LAZY, mappedBy = "eventoRepactuacao", cascade = CascadeType.ALL, orphanRemoval = true) |
| 81 | 88 | @JsonView({ ViewsContrato.EventoRepactuacaoEditView.class }) |
| 82 | 89 | private Collection<EventoRepactuacaoObservacao> observacoes; | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EventoRepactuacaoDocumento.java
| ... | ... | @@ -5,6 +5,9 @@ import javax.persistence.FetchType; |
| 5 | 5 | import javax.persistence.ManyToOne; |
| 6 | 6 | import javax.persistence.Table; |
| 7 | 7 | |
| 8 | +import org.hibernate.envers.AuditTable; | |
| 9 | +import org.hibernate.envers.Audited; | |
| 10 | + | |
| 8 | 11 | |
| 9 | 12 | /** |
| 10 | 13 | * |
| ... | ... | @@ -27,6 +30,8 @@ import javax.persistence.Table; |
| 27 | 30 | * @author geovane.filho |
| 28 | 31 | * |
| 29 | 32 | */ |
| 33 | +@Audited | |
| 34 | +@AuditTable(value = "cnt_rep_documento_aud") | |
| 30 | 35 | @Entity |
| 31 | 36 | @Table(name="cnt_rep_documento") |
| 32 | 37 | public class EventoRepactuacaoDocumento extends Documento { | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EventoRescisaoContrato.java
| ... | ... | @@ -14,6 +14,10 @@ import javax.persistence.Table; |
| 14 | 14 | import javax.persistence.Temporal; |
| 15 | 15 | import javax.persistence.TemporalType; |
| 16 | 16 | |
| 17 | +import org.hibernate.envers.AuditTable; | |
| 18 | +import org.hibernate.envers.Audited; | |
| 19 | +import org.hibernate.envers.NotAudited; | |
| 20 | + | |
| 17 | 21 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 18 | 22 | import br.com.centralit.framework.json.JsonCalendarSimpleDateDeserializer; |
| 19 | 23 | import br.com.centralit.framework.json.MoneyDeserializer; |
| ... | ... | @@ -56,6 +60,8 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; |
| 56 | 60 | * @author erick.sato |
| 57 | 61 | * |
| 58 | 62 | */ |
| 63 | +@Audited | |
| 64 | +@AuditTable(value = "cnt_ev_rescisaocontrato_aud") | |
| 59 | 65 | @Entity |
| 60 | 66 | @Table(name = "cnt_ev_rescisaocontrato") |
| 61 | 67 | @JsonIgnoreProperties({ "$checked" }) |
| ... | ... | @@ -98,6 +104,7 @@ public class EventoRescisaoContrato extends ContratoEvento { |
| 98 | 104 | private Collection<EventoRescisaoContratoDocumento> documentos; |
| 99 | 105 | |
| 100 | 106 | /** Atributo observacoes. */ |
| 107 | + @NotAudited | |
| 101 | 108 | @OneToMany(fetch = FetchType.LAZY, mappedBy = "eventoRescisaoContrato", cascade = CascadeType.ALL, orphanRemoval = true) |
| 102 | 109 | @JsonView({ ViewsContrato.EventoRescisaoContratoView.class }) |
| 103 | 110 | private Collection<EventoRescisaoContratoObservacao> observacoes; | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/EventoRescisaoContratoDocumento.java
| ... | ... | @@ -6,6 +6,9 @@ import javax.persistence.JoinColumn; |
| 6 | 6 | import javax.persistence.ManyToOne; |
| 7 | 7 | import javax.persistence.Table; |
| 8 | 8 | |
| 9 | +import org.hibernate.envers.AuditTable; | |
| 10 | +import org.hibernate.envers.Audited; | |
| 11 | + | |
| 9 | 12 | /** |
| 10 | 13 | * |
| 11 | 14 | * <p> |
| ... | ... | @@ -39,6 +42,8 @@ import javax.persistence.Table; |
| 39 | 42 | * @author erick.sato |
| 40 | 43 | * |
| 41 | 44 | */ |
| 45 | +@Audited | |
| 46 | +@AuditTable(value = "cnt_rc_documento_aud") | |
| 42 | 47 | @Entity |
| 43 | 48 | @Table(name = "cnt_rc_documento") |
| 44 | 49 | public class EventoRescisaoContratoDocumento extends Documento { | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/NotificacaoContrato.java
| ... | ... | @@ -20,6 +20,9 @@ import javax.persistence.TemporalType; |
| 20 | 20 | import javax.persistence.Transient; |
| 21 | 21 | |
| 22 | 22 | import org.apache.commons.lang3.StringUtils; |
| 23 | +import org.hibernate.envers.AuditTable; | |
| 24 | +import org.hibernate.envers.Audited; | |
| 25 | +import org.hibernate.envers.NotAudited; | |
| 23 | 26 | |
| 24 | 27 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 25 | 28 | import br.com.centralit.framework.json.JsonCalendarSimpleDateDeserializer; |
| ... | ... | @@ -51,6 +54,8 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; |
| 51 | 54 | * @author erick.sato |
| 52 | 55 | * |
| 53 | 56 | */ |
| 57 | +@Audited | |
| 58 | +@AuditTable(value = "cnt_notificacao_aud") | |
| 54 | 59 | @Entity |
| 55 | 60 | @Table(name="cnt_notificacao") |
| 56 | 61 | public class NotificacaoContrato extends PersistentObjectAuditOrganizacao { |
| ... | ... | @@ -94,6 +99,7 @@ public class NotificacaoContrato extends PersistentObjectAuditOrganizacao { |
| 94 | 99 | @JsonView({ ViewsContrato.GenericView.class }) |
| 95 | 100 | private String descricao; |
| 96 | 101 | |
| 102 | + @NotAudited | |
| 97 | 103 | @OneToMany(fetch = FetchType.LAZY, mappedBy = "notificacaoContrato", cascade = CascadeType.ALL, orphanRemoval = true) |
| 98 | 104 | @JsonView({ ViewsContrato.GenericView.class }) |
| 99 | 105 | private Collection<NotificacaoContratoObservacao> observacoes; | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/NotificacaoContratoDocumento.java
| ... | ... | @@ -5,6 +5,9 @@ import javax.persistence.FetchType; |
| 5 | 5 | import javax.persistence.ManyToOne; |
| 6 | 6 | import javax.persistence.Table; |
| 7 | 7 | |
| 8 | +import org.hibernate.envers.AuditTable; | |
| 9 | +import org.hibernate.envers.Audited; | |
| 10 | + | |
| 8 | 11 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 9 | 12 | |
| 10 | 13 | /** |
| ... | ... | @@ -27,6 +30,8 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 27 | 30 | * @author erick.sato |
| 28 | 31 | * |
| 29 | 32 | */ |
| 33 | +@Audited | |
| 34 | +@AuditTable(value = "cnt_n_documento_aud") | |
| 30 | 35 | @Entity |
| 31 | 36 | @Table(name="cnt_n_documento") |
| 32 | 37 | @JsonIgnoreProperties({ "uploadsDocumento", "$uuid", "$checked", "$index","size", "name", "$error" }) | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/NotificacaoContratoOcorrencia.java
| ... | ... | @@ -9,6 +9,9 @@ import javax.persistence.Id; |
| 9 | 9 | import javax.persistence.ManyToOne; |
| 10 | 10 | import javax.persistence.Table; |
| 11 | 11 | |
| 12 | +import org.hibernate.envers.AuditTable; | |
| 13 | +import org.hibernate.envers.Audited; | |
| 14 | + | |
| 12 | 15 | import br.com.centralit.framework.json.Views; |
| 13 | 16 | import br.com.centralit.framework.model.arquitetura.PersistentObjectAuditOrganizacao; |
| 14 | 17 | |
| ... | ... | @@ -46,6 +49,8 @@ import com.fasterxml.jackson.annotation.JsonView; |
| 46 | 49 | * @author erick.sato |
| 47 | 50 | * |
| 48 | 51 | */ |
| 52 | +@Audited | |
| 53 | +@AuditTable(value = "cnt_n_ocorrencia_aud") | |
| 49 | 54 | @Entity |
| 50 | 55 | @Table(name="cnt_n_ocorrencia") |
| 51 | 56 | public class NotificacaoContratoOcorrencia extends PersistentObjectAuditOrganizacao { | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/ObjetivoEstrategico.java
| ... | ... | @@ -12,6 +12,9 @@ import javax.persistence.OneToMany; |
| 12 | 12 | import javax.persistence.Table; |
| 13 | 13 | import javax.persistence.Transient; |
| 14 | 14 | |
| 15 | +import org.hibernate.envers.AuditTable; | |
| 16 | +import org.hibernate.envers.Audited; | |
| 17 | + | |
| 15 | 18 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 16 | 19 | import br.com.centralit.framework.json.Views; |
| 17 | 20 | import br.com.centralit.framework.model.arquitetura.PersistentObjectAuditOrganizacao; |
| ... | ... | @@ -22,6 +25,8 @@ import com.fasterxml.jackson.annotation.JsonView; |
| 22 | 25 | * @author luis.camargo |
| 23 | 26 | * |
| 24 | 27 | */ |
| 28 | +@Audited | |
| 29 | +@AuditTable(value = "cnt_objetivoestrategico_aud") | |
| 25 | 30 | @Entity |
| 26 | 31 | @Table(name="cnt_objetivoestrategico") |
| 27 | 32 | public class ObjetivoEstrategico extends PersistentObjectAuditOrganizacao { | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/ObjetivoEstrategicoNecessidade.java
| ... | ... | @@ -9,6 +9,9 @@ import javax.persistence.Id; |
| 9 | 9 | import javax.persistence.ManyToOne; |
| 10 | 10 | import javax.persistence.Table; |
| 11 | 11 | |
| 12 | +import org.hibernate.envers.AuditTable; | |
| 13 | +import org.hibernate.envers.Audited; | |
| 14 | + | |
| 12 | 15 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 13 | 16 | import br.com.centralit.framework.json.Views; |
| 14 | 17 | import br.com.centralit.framework.model.arquitetura.PersistentObjectAuditOrganizacao; |
| ... | ... | @@ -20,6 +23,8 @@ import com.fasterxml.jackson.annotation.JsonView; |
| 20 | 23 | * @author luis.camargo |
| 21 | 24 | * |
| 22 | 25 | */ |
| 26 | +@Audited | |
| 27 | +@AuditTable(value = "cnt_oe_necessidade_aud") | |
| 23 | 28 | @Entity |
| 24 | 29 | @Table(name="cnt_oe_necessidade") |
| 25 | 30 | @JsonIgnoreProperties({ "$selected", "$index" }) | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/OrdemFornecimento.java
| ... | ... | @@ -16,6 +16,10 @@ import javax.persistence.Table; |
| 16 | 16 | import javax.persistence.Temporal; |
| 17 | 17 | import javax.persistence.TemporalType; |
| 18 | 18 | |
| 19 | +import org.hibernate.envers.AuditTable; | |
| 20 | +import org.hibernate.envers.Audited; | |
| 21 | +import org.hibernate.envers.NotAudited; | |
| 22 | + | |
| 19 | 23 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 20 | 24 | import br.com.centralit.framework.json.JsonCalendarSimpleDateDeserializer; |
| 21 | 25 | import br.com.centralit.framework.json.JsonCalendarSimpleDateSerializer; |
| ... | ... | @@ -60,6 +64,8 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| 60 | 64 | * @author geovane.filho |
| 61 | 65 | * |
| 62 | 66 | */ |
| 67 | +@Audited | |
| 68 | +@AuditTable(value = "cnt_ordemfornecimento_aud") | |
| 63 | 69 | @Entity |
| 64 | 70 | @Table(name = "cnt_ordemfornecimento") |
| 65 | 71 | public class OrdemFornecimento extends PersistentObjectAuditOrganizacao { |
| ... | ... | @@ -116,6 +122,7 @@ public class OrdemFornecimento extends PersistentObjectAuditOrganizacao { |
| 116 | 122 | private Collection<OrdemFornecimentoDocumento> documentos; |
| 117 | 123 | |
| 118 | 124 | /** Atributo observacoes. */ |
| 125 | + @NotAudited | |
| 119 | 126 | @OneToMany(fetch = FetchType.LAZY, mappedBy = "ordemFornecimento", cascade = CascadeType.ALL, orphanRemoval = true) |
| 120 | 127 | @JsonView({ ViewsContrato.OrdemFornecimentoEditView.class, ViewsContrato.ContratoEditView.class }) |
| 121 | 128 | private Collection<OrdemFornecimentoObservacao> observacoes; | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/OrdemFornecimentoDocumento.java
| ... | ... | @@ -5,6 +5,9 @@ import javax.persistence.FetchType; |
| 5 | 5 | import javax.persistence.ManyToOne; |
| 6 | 6 | import javax.persistence.Table; |
| 7 | 7 | |
| 8 | +import org.hibernate.envers.AuditTable; | |
| 9 | +import org.hibernate.envers.Audited; | |
| 10 | + | |
| 8 | 11 | |
| 9 | 12 | /** |
| 10 | 13 | * |
| ... | ... | @@ -27,6 +30,8 @@ import javax.persistence.Table; |
| 27 | 30 | * @author geovane.filho |
| 28 | 31 | * |
| 29 | 32 | */ |
| 33 | +@Audited | |
| 34 | +@AuditTable(value = "cnt_of_documento_aud") | |
| 30 | 35 | @Entity |
| 31 | 36 | @Table(name="cnt_of_documento") |
| 32 | 37 | public class OrdemFornecimentoDocumento extends Documento { | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/OrdemFornecimentoItem.java
| ... | ... | @@ -14,6 +14,9 @@ import javax.persistence.Table; |
| 14 | 14 | import javax.persistence.Temporal; |
| 15 | 15 | import javax.persistence.TemporalType; |
| 16 | 16 | |
| 17 | +import org.hibernate.envers.AuditTable; | |
| 18 | +import org.hibernate.envers.Audited; | |
| 19 | + | |
| 17 | 20 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 18 | 21 | import br.com.centralit.framework.json.JsonCalendarSimpleDateDeserializer; |
| 19 | 22 | import br.com.centralit.framework.json.JsonCalendarSimpleDateSerializer; |
| ... | ... | @@ -48,6 +51,8 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| 48 | 51 | * @author geovane.filho |
| 49 | 52 | * |
| 50 | 53 | */ |
| 54 | +@Audited | |
| 55 | +@AuditTable(value = "cnt_of_item_aud") | |
| 51 | 56 | @Entity |
| 52 | 57 | @Table(name="cnt_of_item") |
| 53 | 58 | @JsonIgnoreProperties({ "$checked", "$index" }) | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/PossivelRespostaQuestionarioPergunta.java
| ... | ... | @@ -9,6 +9,9 @@ import javax.persistence.Id; |
| 9 | 9 | import javax.persistence.ManyToOne; |
| 10 | 10 | import javax.persistence.Table; |
| 11 | 11 | |
| 12 | +import org.hibernate.envers.AuditTable; | |
| 13 | +import org.hibernate.envers.Audited; | |
| 14 | + | |
| 12 | 15 | import br.com.centralit.framework.json.Views; |
| 13 | 16 | import br.com.centralit.framework.model.arquitetura.PersistentObjectAuditOrganizacao; |
| 14 | 17 | |
| ... | ... | @@ -36,6 +39,8 @@ import com.fasterxml.jackson.annotation.JsonView; |
| 36 | 39 | * @author geovane.filho |
| 37 | 40 | * |
| 38 | 41 | */ |
| 42 | +@Audited | |
| 43 | +@AuditTable(value = "cnt_qp_possivelresposta_aud") | |
| 39 | 44 | @Entity |
| 40 | 45 | @Table(name="cnt_qp_possivelresposta") |
| 41 | 46 | @JsonIgnoreProperties({ "$selected", "$index" }) | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/Programa.java
| ... | ... | @@ -12,6 +12,9 @@ import javax.persistence.ManyToOne; |
| 12 | 12 | import javax.persistence.OneToMany; |
| 13 | 13 | import javax.persistence.Table; |
| 14 | 14 | |
| 15 | +import org.hibernate.envers.AuditTable; | |
| 16 | +import org.hibernate.envers.Audited; | |
| 17 | + | |
| 15 | 18 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 16 | 19 | import br.com.centralit.framework.json.Views; |
| 17 | 20 | import br.com.centralit.framework.model.Dominio; |
| ... | ... | @@ -23,6 +26,8 @@ import com.fasterxml.jackson.annotation.JsonView; |
| 23 | 26 | * @author luis.camargo |
| 24 | 27 | * |
| 25 | 28 | */ |
| 29 | +@Audited | |
| 30 | +@AuditTable(value = "cnt_programa_aud") | |
| 26 | 31 | @Entity |
| 27 | 32 | @Table(name="cnt_programa") |
| 28 | 33 | public class Programa extends PersistentObjectAuditOrganizacao { | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/ProgramaAcao.java
| ... | ... | @@ -9,6 +9,9 @@ import javax.persistence.Id; |
| 9 | 9 | import javax.persistence.ManyToOne; |
| 10 | 10 | import javax.persistence.Table; |
| 11 | 11 | |
| 12 | +import org.hibernate.envers.AuditTable; | |
| 13 | +import org.hibernate.envers.Audited; | |
| 14 | + | |
| 12 | 15 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 13 | 16 | import br.com.centralit.framework.json.Views; |
| 14 | 17 | import br.com.centralit.framework.model.arquitetura.PersistentObjectAuditOrganizacao; |
| ... | ... | @@ -20,6 +23,8 @@ import com.fasterxml.jackson.annotation.JsonView; |
| 20 | 23 | * @author luis.camargo |
| 21 | 24 | * |
| 22 | 25 | */ |
| 26 | +@Audited | |
| 27 | +@AuditTable(value = "cnt_p_acao_aud") | |
| 23 | 28 | @Entity |
| 24 | 29 | @Table(name="cnt_p_acao") |
| 25 | 30 | @JsonIgnoreProperties({ "$selected", "$index" }) | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/Questionario.java
| ... | ... | @@ -13,6 +13,9 @@ import javax.persistence.ManyToOne; |
| 13 | 13 | import javax.persistence.OneToMany; |
| 14 | 14 | import javax.persistence.Table; |
| 15 | 15 | |
| 16 | +import org.hibernate.envers.AuditTable; | |
| 17 | +import org.hibernate.envers.Audited; | |
| 18 | + | |
| 16 | 19 | import br.com.centralit.framework.json.Views; |
| 17 | 20 | import br.com.centralit.framework.model.Dominio; |
| 18 | 21 | import br.com.centralit.framework.model.arquitetura.PersistentObjectAuditOrganizacao; |
| ... | ... | @@ -40,6 +43,8 @@ import com.fasterxml.jackson.annotation.JsonView; |
| 40 | 43 | * @author juliana.barbosa |
| 41 | 44 | * |
| 42 | 45 | */ |
| 46 | +@Audited | |
| 47 | +@AuditTable(value = "cnt_questionario_aud") | |
| 43 | 48 | @Entity |
| 44 | 49 | @Table(name="cnt_questionario") |
| 45 | 50 | public class Questionario extends PersistentObjectAuditOrganizacao { | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/QuestionarioPergunta.java
| ... | ... | @@ -13,6 +13,9 @@ import javax.persistence.ManyToOne; |
| 13 | 13 | import javax.persistence.OneToMany; |
| 14 | 14 | import javax.persistence.Table; |
| 15 | 15 | |
| 16 | +import org.hibernate.envers.AuditTable; | |
| 17 | +import org.hibernate.envers.Audited; | |
| 18 | + | |
| 16 | 19 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 17 | 20 | import br.com.centralit.framework.json.Views; |
| 18 | 21 | import br.com.centralit.framework.model.Dominio; |
| ... | ... | @@ -42,6 +45,8 @@ import com.fasterxml.jackson.annotation.JsonView; |
| 42 | 45 | * @author geovane.filho |
| 43 | 46 | * |
| 44 | 47 | */ |
| 48 | +@Audited | |
| 49 | +@AuditTable(value = "cnt_q_pergunta_aud") | |
| 45 | 50 | @Entity |
| 46 | 51 | @Table(name="cnt_q_pergunta") |
| 47 | 52 | @JsonIgnoreProperties({ "$selected", "$index" }) | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/RegistroOcorrencia.java
| ... | ... | @@ -19,6 +19,10 @@ import javax.persistence.Temporal; |
| 19 | 19 | import javax.persistence.TemporalType; |
| 20 | 20 | import javax.persistence.Transient; |
| 21 | 21 | |
| 22 | +import org.hibernate.envers.AuditTable; | |
| 23 | +import org.hibernate.envers.Audited; | |
| 24 | +import org.hibernate.envers.NotAudited; | |
| 25 | + | |
| 22 | 26 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 23 | 27 | import br.com.centralit.framework.json.JsonCalendarSimpleDateDeserializer; |
| 24 | 28 | import br.com.centralit.framework.json.JsonCalendarSimpleDateSerializer; |
| ... | ... | @@ -54,6 +58,8 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| 54 | 58 | * @centralit.com.br</a>) |
| 55 | 59 | * |
| 56 | 60 | */ |
| 61 | +@Audited | |
| 62 | +@AuditTable(value = "cnt_registroocorrencia_aud") | |
| 57 | 63 | @Entity |
| 58 | 64 | @Table(name="cnt_registroocorrencia") |
| 59 | 65 | @JsonIgnoreProperties({"cnpjFornecedor"}) |
| ... | ... | @@ -128,6 +134,7 @@ public class RegistroOcorrencia extends PersistentObjectAuditOrganizacao { |
| 128 | 134 | @JsonView({ ViewsContrato.RegistroOcorrenciaEditView.class }) |
| 129 | 135 | private OrdemFornecimento ordemFornecimento; |
| 130 | 136 | |
| 137 | + @NotAudited | |
| 131 | 138 | @OneToMany(fetch = FetchType.LAZY, mappedBy = "registroOcorrencia", cascade = CascadeType.ALL, orphanRemoval = true) |
| 132 | 139 | @JsonView({ ViewsContrato.RegistroOcorrenciaEditView.class }) |
| 133 | 140 | private Collection<RegistroOcorrenciaObservacao> observacoes; | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/RegistroOcorrenciaDocumento.java
| ... | ... | @@ -5,6 +5,9 @@ import javax.persistence.FetchType; |
| 5 | 5 | import javax.persistence.ManyToOne; |
| 6 | 6 | import javax.persistence.Table; |
| 7 | 7 | |
| 8 | +import org.hibernate.envers.AuditTable; | |
| 9 | +import org.hibernate.envers.Audited; | |
| 10 | + | |
| 8 | 11 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 9 | 12 | |
| 10 | 13 | |
| ... | ... | @@ -20,6 +23,8 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 20 | 23 | * @author ciro.junior (<a href="mailto:ciro.junior@centralit.com.br">ciro.junior@centralit.com.br</a>) |
| 21 | 24 | * |
| 22 | 25 | */ |
| 26 | +@Audited | |
| 27 | +@AuditTable(value = "cnt_ro_documento_aud") | |
| 23 | 28 | @Entity |
| 24 | 29 | @Table(name="cnt_ro_documento") |
| 25 | 30 | @JsonIgnoreProperties({ "uploadsDocumento", "$uuid", "$checked", "$index", "size", "name", "$error" }) | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/TermoReferencia.java
| ... | ... | @@ -19,6 +19,9 @@ import javax.persistence.TemporalType; |
| 19 | 19 | import javax.persistence.Transient; |
| 20 | 20 | |
| 21 | 21 | import org.hibernate.annotations.Type; |
| 22 | +import org.hibernate.envers.AuditTable; | |
| 23 | +import org.hibernate.envers.Audited; | |
| 24 | +import org.hibernate.envers.NotAudited; | |
| 22 | 25 | |
| 23 | 26 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 24 | 27 | import br.com.centralit.framework.json.JsonCalendarSerializer; |
| ... | ... | @@ -29,6 +32,8 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 29 | 32 | import com.fasterxml.jackson.annotation.JsonView; |
| 30 | 33 | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| 31 | 34 | |
| 35 | +@Audited | |
| 36 | +@AuditTable(value = "cnt_termoreferencia_aud") | |
| 32 | 37 | @Entity |
| 33 | 38 | @Table(name="cnt_termoreferencia") |
| 34 | 39 | @JsonIgnoreProperties({"integrantesEstudoTecnico", "$index"}) |
| ... | ... | @@ -143,6 +148,7 @@ public class TermoReferencia extends PersistentObjectAuditOrganizacao { |
| 143 | 148 | private Collection<TermoReferenciaSancao> sancoes; |
| 144 | 149 | |
| 145 | 150 | /** Atributo observacoes. */ |
| 151 | + @NotAudited | |
| 146 | 152 | @OneToMany(fetch = FetchType.LAZY, mappedBy = "termo", cascade = CascadeType.ALL, orphanRemoval = true) |
| 147 | 153 | @JsonView({ ViewsContrato.TermoReferenciaEditView.class }) |
| 148 | 154 | private Collection<TermoReferenciaObservacao> observacoes; | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/TermoReferenciaDetalhamentoSolucao.java
| ... | ... | @@ -15,6 +15,9 @@ import javax.persistence.Table; |
| 15 | 15 | import javax.persistence.Temporal; |
| 16 | 16 | import javax.persistence.TemporalType; |
| 17 | 17 | |
| 18 | +import org.hibernate.envers.AuditTable; | |
| 19 | +import org.hibernate.envers.Audited; | |
| 20 | + | |
| 18 | 21 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 19 | 22 | import br.com.centralit.framework.json.JsonCalendarSimpleDateDeserializer; |
| 20 | 23 | import br.com.centralit.framework.json.JsonCalendarSimpleDateSerializer; |
| ... | ... | @@ -60,6 +63,8 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| 60 | 63 | * @author juliana.barbosa |
| 61 | 64 | * |
| 62 | 65 | */ |
| 66 | +@Audited | |
| 67 | +@AuditTable(value = "cnt_tr_detsolucao_aud") | |
| 63 | 68 | @Entity |
| 64 | 69 | @Table(name="cnt_tr_detalhamentosolucao") |
| 65 | 70 | @JsonIgnoreProperties({ "$checked", "$index" }) | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/TermoReferenciaDocumento.java
| ... | ... | @@ -5,6 +5,9 @@ import javax.persistence.FetchType; |
| 5 | 5 | import javax.persistence.ManyToOne; |
| 6 | 6 | import javax.persistence.Table; |
| 7 | 7 | |
| 8 | +import org.hibernate.envers.AuditTable; | |
| 9 | +import org.hibernate.envers.Audited; | |
| 10 | + | |
| 8 | 11 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 9 | 12 | |
| 10 | 13 | |
| ... | ... | @@ -28,6 +31,8 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 28 | 31 | * @author juliana.barbosa |
| 29 | 32 | * |
| 30 | 33 | */ |
| 34 | +@Audited | |
| 35 | +@AuditTable(value = "cnt_tr_documento_aud") | |
| 31 | 36 | @Entity |
| 32 | 37 | @JsonIgnoreProperties({ "uploadsDocumento", "$uuid", "$checked", "$index", "size", "name", "$error" }) |
| 33 | 38 | @Table(name="cnt_tr_documento") | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/TermoReferenciaPenalidade.java
| ... | ... | @@ -10,6 +10,9 @@ import javax.persistence.JoinColumn; |
| 10 | 10 | import javax.persistence.ManyToOne; |
| 11 | 11 | import javax.persistence.Table; |
| 12 | 12 | |
| 13 | +import org.hibernate.envers.AuditTable; | |
| 14 | +import org.hibernate.envers.Audited; | |
| 15 | + | |
| 13 | 16 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 14 | 17 | import br.com.centralit.framework.model.arquitetura.PersistentObjectAuditOrganizacao; |
| 15 | 18 | |
| ... | ... | @@ -36,6 +39,8 @@ import com.fasterxml.jackson.annotation.JsonView; |
| 36 | 39 | * @author juliana.barbosa |
| 37 | 40 | * |
| 38 | 41 | */ |
| 42 | +@Audited | |
| 43 | +@AuditTable(value = "cnt_tr_penalidade_aud") | |
| 39 | 44 | @Entity |
| 40 | 45 | @Table(name="cnt_tr_penalidade") |
| 41 | 46 | @JsonIgnoreProperties({ "$checked", "$index", "originalElement"}) | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/model/TermoReferenciaSancao.java
| ... | ... | @@ -10,6 +10,9 @@ import javax.persistence.JoinColumn; |
| 10 | 10 | import javax.persistence.ManyToOne; |
| 11 | 11 | import javax.persistence.Table; |
| 12 | 12 | |
| 13 | +import org.hibernate.envers.AuditTable; | |
| 14 | +import org.hibernate.envers.Audited; | |
| 15 | + | |
| 13 | 16 | import br.com.centralit.api.viewHelper.ViewsContrato; |
| 14 | 17 | import br.com.centralit.framework.model.Dominio; |
| 15 | 18 | import br.com.centralit.framework.model.arquitetura.PersistentObjectAuditOrganizacao; |
| ... | ... | @@ -37,6 +40,8 @@ import com.fasterxml.jackson.annotation.JsonView; |
| 37 | 40 | * @author juliana.barbosa |
| 38 | 41 | * |
| 39 | 42 | */ |
| 43 | +@Audited | |
| 44 | +@AuditTable(value = "cnt_tr_sancao_aud") | |
| 40 | 45 | @Entity |
| 41 | 46 | @Table(name="cnt_tr_sancao") |
| 42 | 47 | @JsonIgnoreProperties({ "$checked", "$index" }) | ... | ... |
cit-contratos-api/src/main/resources/script-bd/v1.0.0/01-cit-contratos-1.0.1-postgres.sql
0 → 100644
| ... | ... | @@ -0,0 +1,1009 @@ |
| 1 | +-- ERICK INICIO 08/05/2016 | |
| 2 | + | |
| 3 | + | |
| 4 | +CREATE TABLE cnt_ad_documento_aud ( | |
| 5 | + id bigint NOT NULL, | |
| 6 | + rev integer NOT NULL, | |
| 7 | + eventoaditivo_id bigint, | |
| 8 | + eventoaditivoinativo_id bigint | |
| 9 | +); | |
| 10 | + | |
| 11 | +CREATE TABLE cnt_ap_documento_aud ( | |
| 12 | + id bigint NOT NULL, | |
| 13 | + rev integer NOT NULL, | |
| 14 | + eventoapostilamento_id bigint, | |
| 15 | + eventoapostilamentoinativo_id bigint | |
| 16 | +); | |
| 17 | + | |
| 18 | +CREATE TABLE cnt_as_documento_aud ( | |
| 19 | + id bigint NOT NULL, | |
| 20 | + rev integer NOT NULL, | |
| 21 | + eventoatualizacaostatus_id bigint, | |
| 22 | + evatualizacaostatusinativo_id bigint | |
| 23 | +); | |
| 24 | + | |
| 25 | +CREATE TABLE cnt_ce_documento_aud ( | |
| 26 | + id bigint NOT NULL, | |
| 27 | + rev integer NOT NULL, | |
| 28 | + cronogramaexecucao_id bigint, | |
| 29 | + cronogramaexecucaoinativo_id bigint | |
| 30 | +); | |
| 31 | + | |
| 32 | +CREATE TABLE cnt_ce_item_aud ( | |
| 33 | + id bigint NOT NULL, | |
| 34 | + rev integer NOT NULL, | |
| 35 | + revtype smallint, | |
| 36 | + databloqueio date, | |
| 37 | + datainativo date, | |
| 38 | + datacriacao timestamp without time zone, | |
| 39 | + dataedicao timestamp without time zone, | |
| 40 | + pagamentoparcelado boolean, | |
| 41 | + autor_id bigint, | |
| 42 | + editor_id bigint, | |
| 43 | + contratoitem_id bigint, | |
| 44 | + cronogramaexecucao_id bigint, | |
| 45 | + cronogramaexecucaoinativo_id bigint | |
| 46 | +); | |
| 47 | + | |
| 48 | + | |
| 49 | +CREATE TABLE cnt_cei_parcela_aud ( | |
| 50 | + id bigint NOT NULL, | |
| 51 | + rev integer NOT NULL, | |
| 52 | + revtype smallint, | |
| 53 | + databloqueio date, | |
| 54 | + datainativo date, | |
| 55 | + datacriacao timestamp without time zone, | |
| 56 | + dataedicao timestamp without time zone, | |
| 57 | + dataentrega timestamp without time zone, | |
| 58 | + quantidade bigint, | |
| 59 | + valortotalparcela numeric(20,4), | |
| 60 | + valorunitario numeric(20,4), | |
| 61 | + autor_id bigint, | |
| 62 | + editor_id bigint, | |
| 63 | + cronogramaexecucaoitem_id bigint, | |
| 64 | + ceiteminativo_id bigint | |
| 65 | +); | |
| 66 | + | |
| 67 | + | |
| 68 | +CREATE TABLE cnt_cn_documento_aud ( | |
| 69 | + id bigint NOT NULL, | |
| 70 | + rev integer NOT NULL, | |
| 71 | + contrato_id bigint, | |
| 72 | + contratoinativo_id bigint | |
| 73 | +); | |
| 74 | + | |
| 75 | + | |
| 76 | +CREATE TABLE cnt_cn_empenho_aud ( | |
| 77 | + id bigint NOT NULL, | |
| 78 | + rev integer NOT NULL, | |
| 79 | + classificacaodespesa character varying(30), | |
| 80 | + data timestamp without time zone, | |
| 81 | + justificativaempenho character varying(300), | |
| 82 | + numeroempenho character varying(30), | |
| 83 | + valorempenhado numeric(20,4), | |
| 84 | + contratoempenho_id bigint, | |
| 85 | + contratoempenhoinativo_id bigint, | |
| 86 | + dominiocategoriaeconomica_id bigint, | |
| 87 | + dominiofinalidadeempenho_id bigint | |
| 88 | +); | |
| 89 | + | |
| 90 | + | |
| 91 | +CREATE TABLE cnt_cn_envolvido_aud ( | |
| 92 | + id bigint NOT NULL, | |
| 93 | + rev integer NOT NULL, | |
| 94 | + revtype smallint, | |
| 95 | + databloqueio date, | |
| 96 | + datainativo date, | |
| 97 | + datacriacao timestamp without time zone, | |
| 98 | + dataedicao timestamp without time zone, | |
| 99 | + autor_id bigint, | |
| 100 | + editor_id bigint, | |
| 101 | + contrato_id bigint, | |
| 102 | + contratoinativo_id bigint, | |
| 103 | + papelenvolvidocontrato_id bigint, | |
| 104 | + envolvido_id bigint | |
| 105 | +); | |
| 106 | + | |
| 107 | + | |
| 108 | +CREATE TABLE cnt_cn_evento_aud ( | |
| 109 | + id bigint NOT NULL, | |
| 110 | + rev integer NOT NULL, | |
| 111 | + revtype smallint, | |
| 112 | + databloqueio date, | |
| 113 | + datainativo date, | |
| 114 | + datacriacao timestamp without time zone, | |
| 115 | + dataedicao timestamp without time zone, | |
| 116 | + dataevento timestamp without time zone, | |
| 117 | + descricao character varying(500), | |
| 118 | + justificativaexclusao character varying(255), | |
| 119 | + autor_id bigint, | |
| 120 | + editor_id bigint, | |
| 121 | + contrato_id bigint, | |
| 122 | + contratoinativo_id bigint, | |
| 123 | + tipoevento_id bigint | |
| 124 | +); | |
| 125 | + | |
| 126 | + | |
| 127 | +CREATE TABLE cnt_cn_item_aud ( | |
| 128 | + id bigint NOT NULL, | |
| 129 | + rev integer NOT NULL, | |
| 130 | + revtype smallint, | |
| 131 | + databloqueio date, | |
| 132 | + datainativo date, | |
| 133 | + datacriacao timestamp without time zone, | |
| 134 | + dataedicao timestamp without time zone, | |
| 135 | + quantidade bigint, | |
| 136 | + valortotalitem numeric(20,4), | |
| 137 | + valorunitarioitem numeric(20,4), | |
| 138 | + autor_id bigint, | |
| 139 | + editor_id bigint, | |
| 140 | + contrato_id bigint, | |
| 141 | + contratoinativo_id bigint, | |
| 142 | + estudotecnico_id bigint, | |
| 143 | + etbemservicosolucao_id bigint | |
| 144 | +); | |
| 145 | + | |
| 146 | +CREATE TABLE public.cnt_cn_valorpagamento_aud | |
| 147 | +( | |
| 148 | + id bigint NOT NULL, | |
| 149 | + rev integer NOT NULL, | |
| 150 | + revtype smallint, | |
| 151 | + databloqueio date, | |
| 152 | + datainativo date, | |
| 153 | + datacriacao timestamp without time zone, | |
| 154 | + dataedicao timestamp without time zone, | |
| 155 | + datavencimento timestamp without time zone, | |
| 156 | + valorparcela numeric(20,4), | |
| 157 | + autor_id bigint, | |
| 158 | + editor_id bigint, | |
| 159 | + contrato_id bigint, | |
| 160 | + contratoinativo_id bigint | |
| 161 | +); | |
| 162 | + | |
| 163 | +CREATE TABLE cnt_contrato_aud ( | |
| 164 | + id bigint NOT NULL, | |
| 165 | + rev integer NOT NULL, | |
| 166 | + revtype smallint, | |
| 167 | + databloqueio date, | |
| 168 | + datainativo date, | |
| 169 | + datacriacao timestamp without time zone, | |
| 170 | + dataedicao timestamp without time zone, | |
| 171 | + datacelebracao timestamp without time zone, | |
| 172 | + datapublicacaolicitacao timestamp without time zone, | |
| 173 | + datavigenciafinal timestamp without time zone, | |
| 174 | + datavigenciagarantia timestamp without time zone, | |
| 175 | + datavigenciainicial timestamp without time zone, | |
| 176 | + exercicio timestamp without time zone, | |
| 177 | + numeroanocontrato character varying(30), | |
| 178 | + numeroanoeditallicitacao character varying(10), | |
| 179 | + numeroparcela bigint, | |
| 180 | + numeroprocesso bigint, | |
| 181 | + objetocontratacao character varying(1024), | |
| 182 | + percentualgarantia numeric(20,4), | |
| 183 | + renovavel boolean, | |
| 184 | + valorcontrato numeric(20,4), | |
| 185 | + valorgarantia numeric(20,4), | |
| 186 | + valortotalempenhado numeric(20,4), | |
| 187 | + autor_id bigint, | |
| 188 | + editor_id bigint, | |
| 189 | + formapagamentocontrato_id bigint, | |
| 190 | + dominiomodalidadegarantia_id bigint, | |
| 191 | + dominiomodalidadelicitacao_id bigint, | |
| 192 | + dominiosituacaoatual_id bigint, | |
| 193 | + dominiotipoaquisicao_id bigint, | |
| 194 | + dominiotipocontrato_id bigint, | |
| 195 | + dominiotipolicitacao_id bigint, | |
| 196 | + programaacao_id bigint, | |
| 197 | + termoreferencia_id bigint | |
| 198 | +); | |
| 199 | + | |
| 200 | + | |
| 201 | +CREATE TABLE cnt_cronogramaexecucao_aud ( | |
| 202 | + id bigint NOT NULL, | |
| 203 | + rev integer NOT NULL, | |
| 204 | + revtype smallint, | |
| 205 | + databloqueio date, | |
| 206 | + datainativo date, | |
| 207 | + datacriacao timestamp without time zone, | |
| 208 | + dataedicao timestamp without time zone, | |
| 209 | + codigo character varying(10), | |
| 210 | + valortotal numeric(20,4), | |
| 211 | + autor_id bigint, | |
| 212 | + editor_id bigint, | |
| 213 | + contrato_id bigint | |
| 214 | +); | |
| 215 | + | |
| 216 | + | |
| 217 | +CREATE TABLE cnt_ec_documento_aud ( | |
| 218 | + id bigint NOT NULL, | |
| 219 | + rev integer NOT NULL, | |
| 220 | + encerramentocontrato_id bigint, | |
| 221 | + encerramentocontratoinativo_id bigint | |
| 222 | +); | |
| 223 | + | |
| 224 | + | |
| 225 | +CREATE TABLE cnt_en_justificativa_aud ( | |
| 226 | + id bigint NOT NULL, | |
| 227 | + rev integer NOT NULL, | |
| 228 | + revtype smallint, | |
| 229 | + databloqueio date, | |
| 230 | + datainativo date, | |
| 231 | + datacriacao timestamp without time zone, | |
| 232 | + dataedicao timestamp without time zone, | |
| 233 | + descricao character varying(500), | |
| 234 | + autor_id bigint, | |
| 235 | + editor_id bigint, | |
| 236 | + contratoenvolvido_id bigint | |
| 237 | +); | |
| 238 | + | |
| 239 | +CREATE TABLE cnt_encerramentocontrato_aud ( | |
| 240 | + id bigint NOT NULL, | |
| 241 | + rev integer NOT NULL, | |
| 242 | + revtype smallint, | |
| 243 | + databloqueio date, | |
| 244 | + datainativo date, | |
| 245 | + datacriacao timestamp without time zone, | |
| 246 | + dataedicao timestamp without time zone, | |
| 247 | + dataemissao timestamp without time zone, | |
| 248 | + decisao character varying(2000), | |
| 249 | + encaminhamentos character varying(8000), | |
| 250 | + introducao character varying(2000), | |
| 251 | + motivo character varying(2000), | |
| 252 | + numtermo character varying(30), | |
| 253 | + pendencias character varying(2000), | |
| 254 | + autor_id bigint, | |
| 255 | + editor_id bigint, | |
| 256 | + contrato_id bigint | |
| 257 | +); | |
| 258 | + | |
| 259 | + | |
| 260 | +CREATE TABLE cnt_ep_documento_aud ( | |
| 261 | + id bigint NOT NULL, | |
| 262 | + rev integer NOT NULL, | |
| 263 | + contratoempenho_id bigint, | |
| 264 | + contratoempenhoinativo_id bigint | |
| 265 | +); | |
| 266 | + | |
| 267 | + | |
| 268 | +CREATE TABLE cnt_estudotecnico_aud ( | |
| 269 | + id bigint NOT NULL, | |
| 270 | + rev integer NOT NULL, | |
| 271 | + revtype smallint, | |
| 272 | + databloqueio date, | |
| 273 | + datainativo date, | |
| 274 | + datacriacao timestamp without time zone, | |
| 275 | + dataedicao timestamp without time zone, | |
| 276 | + datainstituicaoequipe timestamp without time zone, | |
| 277 | + descricaojustificativasolucao character varying(1000), | |
| 278 | + descnecessidadeadqcaoambiente character varying(1000), | |
| 279 | + descricaosolucao character varying(1000), | |
| 280 | + numeroportaria character varying(30), | |
| 281 | + numerosequencial bigint, | |
| 282 | + sequencialano character varying(20), | |
| 283 | + requisitoscapacitacao character varying(1000), | |
| 284 | + requisitostecnicos character varying(1000), | |
| 285 | + roijustificativasolucao character varying(1000), | |
| 286 | + autor_id bigint, | |
| 287 | + editor_id bigint, | |
| 288 | + integranteadministrativo_id bigint, | |
| 289 | + integranterequisitante_id bigint, | |
| 290 | + integrantetecnico_id bigint | |
| 291 | +); | |
| 292 | + | |
| 293 | + | |
| 294 | +CREATE TABLE cnt_et_acaocontingencia_aud ( | |
| 295 | + id bigint NOT NULL, | |
| 296 | + rev integer NOT NULL, | |
| 297 | + revtype smallint, | |
| 298 | + databloqueio date, | |
| 299 | + datainativo date, | |
| 300 | + datacriacao timestamp without time zone, | |
| 301 | + dataedicao timestamp without time zone, | |
| 302 | + acaocontigencia character varying(1000), | |
| 303 | + autor_id bigint, | |
| 304 | + editor_id bigint, | |
| 305 | + estudotecnico_id bigint, | |
| 306 | + estudotecnicoinativo_id bigint | |
| 307 | +); | |
| 308 | + | |
| 309 | + | |
| 310 | +CREATE TABLE cnt_et_bemservicosolucao_aud ( | |
| 311 | + id bigint NOT NULL, | |
| 312 | + rev integer NOT NULL, | |
| 313 | + revtype smallint, | |
| 314 | + databloqueio date, | |
| 315 | + datainativo date, | |
| 316 | + datacriacao timestamp without time zone, | |
| 317 | + dataedicao timestamp without time zone, | |
| 318 | + descricaobemservicosolucao character varying(1000), | |
| 319 | + nomebemservicosolucao character varying(255), | |
| 320 | + autor_id bigint, | |
| 321 | + editor_id bigint, | |
| 322 | + estudotecnico_id bigint, | |
| 323 | + estudotecnicoinativo_id bigint | |
| 324 | +); | |
| 325 | + | |
| 326 | + | |
| 327 | +CREATE TABLE cnt_et_beneficioesperado_aud ( | |
| 328 | + id bigint NOT NULL, | |
| 329 | + rev integer NOT NULL, | |
| 330 | + revtype smallint, | |
| 331 | + databloqueio date, | |
| 332 | + datainativo date, | |
| 333 | + datacriacao timestamp without time zone, | |
| 334 | + dataedicao timestamp without time zone, | |
| 335 | + beneficioesperado character varying(1000), | |
| 336 | + descricaobeneficioesperado character varying(1000), | |
| 337 | + autor_id bigint, | |
| 338 | + editor_id bigint, | |
| 339 | + estudotecnico_id bigint, | |
| 340 | + estudotecnicoinativo_id bigint | |
| 341 | +); | |
| 342 | + | |
| 343 | + | |
| 344 | +CREATE TABLE cnt_et_documento_aud ( | |
| 345 | + id bigint NOT NULL, | |
| 346 | + rev integer NOT NULL, | |
| 347 | + estudotecnico_id bigint, | |
| 348 | + estudotecnicoinativo_id bigint | |
| 349 | +); | |
| 350 | + | |
| 351 | +CREATE TABLE cnt_et_levantalternat_aud ( | |
| 352 | + id bigint NOT NULL, | |
| 353 | + rev integer NOT NULL, | |
| 354 | + revtype smallint, | |
| 355 | + databloqueio date, | |
| 356 | + datainativo date, | |
| 357 | + datacriacao timestamp without time zone, | |
| 358 | + dataedicao timestamp without time zone, | |
| 359 | + descricaoalternativa character varying(1000), | |
| 360 | + valor numeric(20,4), | |
| 361 | + autor_id bigint, | |
| 362 | + editor_id bigint, | |
| 363 | + estudotecnico_id bigint, | |
| 364 | + estudotecnicoinativo_id bigint, | |
| 365 | + etlaquestionario_id bigint, | |
| 366 | + fornecedor_id bigint, | |
| 367 | + orgaoexterno_id bigint | |
| 368 | +); | |
| 369 | + | |
| 370 | + | |
| 371 | +CREATE TABLE cnt_et_questionario_aud ( | |
| 372 | + id bigint NOT NULL, | |
| 373 | + rev integer NOT NULL, | |
| 374 | + revtype smallint, | |
| 375 | + databloqueio date, | |
| 376 | + datainativo date, | |
| 377 | + datacriacao timestamp without time zone, | |
| 378 | + dataedicao timestamp without time zone, | |
| 379 | + nome character varying(100), | |
| 380 | + autor_id bigint, | |
| 381 | + editor_id bigint | |
| 382 | +); | |
| 383 | + | |
| 384 | + | |
| 385 | +CREATE TABLE cnt_et_recursohumano_aud ( | |
| 386 | + id bigint NOT NULL, | |
| 387 | + rev integer NOT NULL, | |
| 388 | + revtype smallint, | |
| 389 | + databloqueio date, | |
| 390 | + datainativo date, | |
| 391 | + datacriacao timestamp without time zone, | |
| 392 | + dataedicao timestamp without time zone, | |
| 393 | + atividades character varying(1000), | |
| 394 | + formacao character varying(1000), | |
| 395 | + autor_id bigint, | |
| 396 | + editor_id bigint, | |
| 397 | + estudotecnico_id bigint, | |
| 398 | + estudotecnicoinativo_id bigint | |
| 399 | +); | |
| 400 | + | |
| 401 | + | |
| 402 | +CREATE TABLE cnt_et_recursomaterial_aud ( | |
| 403 | + id bigint NOT NULL, | |
| 404 | + rev integer NOT NULL, | |
| 405 | + revtype smallint, | |
| 406 | + databloqueio date, | |
| 407 | + datainativo date, | |
| 408 | + datacriacao timestamp without time zone, | |
| 409 | + dataedicao timestamp without time zone, | |
| 410 | + acaoobtencao character varying(1000), | |
| 411 | + descricaorecursomaterial character varying(1000), | |
| 412 | + disponivel boolean, | |
| 413 | + quantidade bigint, | |
| 414 | + autor_id bigint, | |
| 415 | + editor_id bigint, | |
| 416 | + estudotecnico_id bigint, | |
| 417 | + estudotecnicoinativo_id bigint | |
| 418 | +); | |
| 419 | + | |
| 420 | + | |
| 421 | +CREATE TABLE cnt_et_requisitonegocio_aud ( | |
| 422 | + id bigint NOT NULL, | |
| 423 | + rev integer NOT NULL, | |
| 424 | + revtype smallint, | |
| 425 | + databloqueio date, | |
| 426 | + datainativo date, | |
| 427 | + datacriacao timestamp without time zone, | |
| 428 | + dataedicao timestamp without time zone, | |
| 429 | + justificativanecessidade character varying(1000), | |
| 430 | + autor_id bigint, | |
| 431 | + editor_id bigint, | |
| 432 | + estudotecnico_id bigint, | |
| 433 | + estudotecnicoinativo_id bigint, | |
| 434 | + objestrategiconecessidade_id bigint | |
| 435 | +); | |
| 436 | + | |
| 437 | + | |
| 438 | +CREATE TABLE cnt_etla_questionario_aud ( | |
| 439 | + id bigint NOT NULL, | |
| 440 | + rev integer NOT NULL, | |
| 441 | + revtype smallint, | |
| 442 | + databloqueio date, | |
| 443 | + datainativo date, | |
| 444 | + datacriacao timestamp without time zone, | |
| 445 | + dataedicao timestamp without time zone, | |
| 446 | + data timestamp without time zone, | |
| 447 | + autor_id bigint, | |
| 448 | + editor_id bigint, | |
| 449 | + estudotecnico_id bigint, | |
| 450 | + etquestionario_id bigint | |
| 451 | +); | |
| 452 | + | |
| 453 | +CREATE TABLE cnt_etq_resposta_aud ( | |
| 454 | + id bigint NOT NULL, | |
| 455 | + rev integer NOT NULL, | |
| 456 | + revtype smallint, | |
| 457 | + databloqueio date, | |
| 458 | + datainativo date, | |
| 459 | + datacriacao timestamp without time zone, | |
| 460 | + dataedicao timestamp without time zone, | |
| 461 | + resposta character varying(255), | |
| 462 | + respostaboolean boolean, | |
| 463 | + autor_id bigint, | |
| 464 | + editor_id bigint, | |
| 465 | + etquestionario_id bigint, | |
| 466 | + etlaquestionario_id bigint, | |
| 467 | + possivelrespostaselecionada_id bigint, | |
| 468 | + questionariopergunta_id bigint | |
| 469 | +); | |
| 470 | + | |
| 471 | + | |
| 472 | +CREATE TABLE cnt_ev_aditivo_aud ( | |
| 473 | + id bigint NOT NULL, | |
| 474 | + rev integer NOT NULL, | |
| 475 | + aditivodeclausula boolean, | |
| 476 | + aditivodeprazo boolean, | |
| 477 | + aditivodevalor boolean, | |
| 478 | + dataemissao timestamp without time zone, | |
| 479 | + datafim timestamp without time zone, | |
| 480 | + datainicio timestamp without time zone, | |
| 481 | + descricaoaditivo character varying(5000), | |
| 482 | + justificativa character varying(2000), | |
| 483 | + manifestacaocontratada character varying(2000), | |
| 484 | + percentualaditivo numeric(20,4), | |
| 485 | + numerosequencial bigint, | |
| 486 | + sequencialano character varying(20), | |
| 487 | + valoraditivo numeric(20,4), | |
| 488 | + contratoaditivo_id bigint, | |
| 489 | + contratoaditivoinativo_id bigint, | |
| 490 | + tipoalteracao_id bigint, | |
| 491 | + tipoalteracaovalor_id bigint, | |
| 492 | + tipoobjeto_id bigint | |
| 493 | +); | |
| 494 | + | |
| 495 | +CREATE TABLE cnt_ev_apostilamento_aud ( | |
| 496 | + id bigint NOT NULL, | |
| 497 | + rev integer NOT NULL, | |
| 498 | + dataemissao timestamp without time zone, | |
| 499 | + justificativa character varying(2000), | |
| 500 | + registroadministrativo character varying(2000), | |
| 501 | + numerosequencial bigint, | |
| 502 | + sequencialano character varying(20) | |
| 503 | +); | |
| 504 | + | |
| 505 | +CREATE TABLE cnt_ev_atualizacaostatus_aud ( | |
| 506 | + id bigint NOT NULL, | |
| 507 | + rev integer NOT NULL, | |
| 508 | + dataatualizacao timestamp without time zone, | |
| 509 | + justificativa character varying(2000), | |
| 510 | + tiposituacaoantiga_id bigint, | |
| 511 | + tiposituacaonova_id bigint | |
| 512 | +); | |
| 513 | + | |
| 514 | + | |
| 515 | +CREATE TABLE cnt_ev_lib_pagamento_aud ( | |
| 516 | + id bigint NOT NULL, | |
| 517 | + rev integer NOT NULL, | |
| 518 | + emissao timestamp without time zone, | |
| 519 | + numeroliberacao character varying(30), | |
| 520 | + totalempenholiberado numeric(20,4), | |
| 521 | + totalliberadoos numeric(20,4), | |
| 522 | + totalliberadopagamento numeric(20,4), | |
| 523 | + responsavel_id bigint | |
| 524 | +); | |
| 525 | + | |
| 526 | + | |
| 527 | +CREATE TABLE cnt_ev_penalidade_aud ( | |
| 528 | + id bigint NOT NULL, | |
| 529 | + rev integer NOT NULL, | |
| 530 | + datapenalizacao timestamp without time zone, | |
| 531 | + respostacontratada character varying(500), | |
| 532 | + termoreferenciapenalidade_id bigint | |
| 533 | +); | |
| 534 | + | |
| 535 | +CREATE TABLE cnt_ev_recebimentoobjeto_aud ( | |
| 536 | + id bigint NOT NULL, | |
| 537 | + rev integer NOT NULL, | |
| 538 | + datarecebimento timestamp without time zone, | |
| 539 | + justificativa character varying(2000), | |
| 540 | + numerosequencial bigint, | |
| 541 | + sequencialano character varying(20), | |
| 542 | + tipoavaliacaoadesao_id bigint, | |
| 543 | + tipoavaliacaoprazo_id bigint, | |
| 544 | + tiporecebimento_id bigint, | |
| 545 | + tipostatus_id bigint | |
| 546 | +); | |
| 547 | + | |
| 548 | +CREATE TABLE cnt_ev_registro_nc_aud ( | |
| 549 | + id bigint NOT NULL, | |
| 550 | + rev integer NOT NULL, | |
| 551 | + datanaoconformidade timestamp without time zone, | |
| 552 | + percentualmulta numeric(20,4), | |
| 553 | + respostacontratada character varying(2000), | |
| 554 | + valormulta numeric(20,4), | |
| 555 | + tiponaoconformidade_id bigint | |
| 556 | +); | |
| 557 | + | |
| 558 | +CREATE TABLE cnt_ev_repactuacao_aud ( | |
| 559 | + id bigint NOT NULL, | |
| 560 | + rev integer NOT NULL, | |
| 561 | + datarepactuacao timestamp without time zone, | |
| 562 | + justificativarepactuacao character varying(500), | |
| 563 | + numerorepactuacao character varying(30), | |
| 564 | + registroocorrencia_id bigint | |
| 565 | +); | |
| 566 | + | |
| 567 | + | |
| 568 | +CREATE TABLE cnt_ev_rescisaocontrato_aud ( | |
| 569 | + id bigint NOT NULL, | |
| 570 | + rev integer NOT NULL, | |
| 571 | + datarescisao timestamp without time zone, | |
| 572 | + devolucaovalor boolean, | |
| 573 | + justificativa character varying(2000), | |
| 574 | + numerorescisao character varying(30), | |
| 575 | + valoradevolver numeric(20,4), | |
| 576 | + tiporescisao_id bigint | |
| 577 | +); | |
| 578 | + | |
| 579 | + | |
| 580 | +CREATE TABLE cnt_ev_ro_documento_aud ( | |
| 581 | + id bigint NOT NULL, | |
| 582 | + rev integer NOT NULL, | |
| 583 | + eventorecebimentoobjeto_id bigint, | |
| 584 | + evrecebimentoobjetoinativo_id bigint | |
| 585 | +); | |
| 586 | + | |
| 587 | + | |
| 588 | +CREATE TABLE cnt_lp_documento_aud ( | |
| 589 | + id bigint NOT NULL, | |
| 590 | + rev integer NOT NULL, | |
| 591 | + liberacaopagamento_id bigint, | |
| 592 | + liberacaopagamentoinativo_id bigint | |
| 593 | +); | |
| 594 | + | |
| 595 | + | |
| 596 | +CREATE TABLE cnt_lp_empenho_aud ( | |
| 597 | + id bigint NOT NULL, | |
| 598 | + rev integer NOT NULL, | |
| 599 | + revtype smallint, | |
| 600 | + databloqueio date, | |
| 601 | + datainativo date, | |
| 602 | + datacriacao timestamp without time zone, | |
| 603 | + dataedicao timestamp without time zone, | |
| 604 | + percentualexecutado numeric(20,4), | |
| 605 | + valorexecutado numeric(20,4), | |
| 606 | + valorliberado numeric(20,4), | |
| 607 | + autor_id bigint, | |
| 608 | + editor_id bigint, | |
| 609 | + contratoempenho_id bigint, | |
| 610 | + liberacaopagamento_id bigint | |
| 611 | +); | |
| 612 | + | |
| 613 | +CREATE TABLE cnt_lp_odfornecimento_aud ( | |
| 614 | + id bigint NOT NULL, | |
| 615 | + rev integer NOT NULL, | |
| 616 | + revtype smallint, | |
| 617 | + databloqueio date, | |
| 618 | + datainativo date, | |
| 619 | + datacriacao timestamp without time zone, | |
| 620 | + dataedicao timestamp without time zone, | |
| 621 | + valorglosa numeric(20,4), | |
| 622 | + valortotalos numeric(20,4), | |
| 623 | + autor_id bigint, | |
| 624 | + editor_id bigint, | |
| 625 | + liberacaopagamento_id bigint, | |
| 626 | + ordemfornecimento_id bigint | |
| 627 | +); | |
| 628 | + | |
| 629 | + | |
| 630 | +CREATE TABLE cnt_n_documento_aud ( | |
| 631 | + id bigint NOT NULL, | |
| 632 | + rev integer NOT NULL, | |
| 633 | + notificacaocontrato_id bigint, | |
| 634 | + notificacaocontratoinativo_id bigint | |
| 635 | +); | |
| 636 | + | |
| 637 | + | |
| 638 | +CREATE TABLE cnt_n_ocorrencia_aud ( | |
| 639 | + id bigint NOT NULL, | |
| 640 | + rev integer NOT NULL, | |
| 641 | + revtype smallint, | |
| 642 | + databloqueio date, | |
| 643 | + datainativo date, | |
| 644 | + datacriacao timestamp without time zone, | |
| 645 | + dataedicao timestamp without time zone, | |
| 646 | + autor_id bigint, | |
| 647 | + editor_id bigint, | |
| 648 | + notificacaocontrato_id bigint, | |
| 649 | + notificacaocontratoinativo_id bigint, | |
| 650 | + registroocorrencia_id bigint | |
| 651 | +); | |
| 652 | + | |
| 653 | + | |
| 654 | +CREATE TABLE cnt_nc_empenho_aud ( | |
| 655 | + id bigint NOT NULL, | |
| 656 | + rev integer NOT NULL, | |
| 657 | + evregnaoconformidade_id bigint, | |
| 658 | + evregnaoconformidadeinativo_id bigint | |
| 659 | +); | |
| 660 | + | |
| 661 | +CREATE TABLE cnt_notificacao_aud ( | |
| 662 | + id bigint NOT NULL, | |
| 663 | + rev integer NOT NULL, | |
| 664 | + revtype smallint, | |
| 665 | + databloqueio date, | |
| 666 | + datainativo date, | |
| 667 | + datacriacao timestamp without time zone, | |
| 668 | + dataedicao timestamp without time zone, | |
| 669 | + associarocorrencia boolean, | |
| 670 | + codigo character varying(30), | |
| 671 | + descricao character varying(500), | |
| 672 | + emissao timestamp without time zone, | |
| 673 | + autor_id bigint, | |
| 674 | + editor_id bigint, | |
| 675 | + contrato_id bigint, | |
| 676 | + dominiotiposancao_id bigint | |
| 677 | +); | |
| 678 | + | |
| 679 | +CREATE TABLE cnt_objetivoestrategico_aud ( | |
| 680 | + id bigint NOT NULL, | |
| 681 | + rev integer NOT NULL, | |
| 682 | + revtype smallint, | |
| 683 | + databloqueio date, | |
| 684 | + datainativo date, | |
| 685 | + datacriacao timestamp without time zone, | |
| 686 | + dataedicao timestamp without time zone, | |
| 687 | + descricao character varying(500), | |
| 688 | + nome character varying(150), | |
| 689 | + autor_id bigint, | |
| 690 | + editor_id bigint | |
| 691 | +); | |
| 692 | + | |
| 693 | + | |
| 694 | +CREATE TABLE cnt_oe_necessidade_aud ( | |
| 695 | + id bigint NOT NULL, | |
| 696 | + rev integer NOT NULL, | |
| 697 | + revtype smallint, | |
| 698 | + databloqueio date, | |
| 699 | + datainativo date, | |
| 700 | + datacriacao timestamp without time zone, | |
| 701 | + dataedicao timestamp without time zone, | |
| 702 | + descricao character varying(500), | |
| 703 | + autor_id bigint, | |
| 704 | + editor_id bigint, | |
| 705 | + objetivoestrategico_id bigint | |
| 706 | +); | |
| 707 | + | |
| 708 | +CREATE TABLE cnt_of_documento_aud ( | |
| 709 | + id bigint NOT NULL, | |
| 710 | + rev integer NOT NULL, | |
| 711 | + ordemfornecimento_id bigint, | |
| 712 | + ordemfornecimentoinativo_id bigint | |
| 713 | +); | |
| 714 | + | |
| 715 | + | |
| 716 | +CREATE TABLE cnt_of_item_aud ( | |
| 717 | + id bigint NOT NULL, | |
| 718 | + rev integer NOT NULL, | |
| 719 | + revtype smallint, | |
| 720 | + databloqueio date, | |
| 721 | + datainativo date, | |
| 722 | + datacriacao timestamp without time zone, | |
| 723 | + dataedicao timestamp without time zone, | |
| 724 | + datainicioprevisto timestamp without time zone, | |
| 725 | + dataterminoprevisto timestamp without time zone, | |
| 726 | + quantidade bigint, | |
| 727 | + valortotalitem numeric(20,4), | |
| 728 | + valorunitarioitem numeric(20,4), | |
| 729 | + autor_id bigint, | |
| 730 | + editor_id bigint, | |
| 731 | + itembemservico_id bigint, | |
| 732 | + ordemfornecimento_id bigint, | |
| 733 | + ordemfornecimentoinativo_id bigint | |
| 734 | +); | |
| 735 | + | |
| 736 | + | |
| 737 | +CREATE TABLE cnt_ordemfornecimento_aud ( | |
| 738 | + id bigint NOT NULL, | |
| 739 | + rev integer NOT NULL, | |
| 740 | + revtype smallint, | |
| 741 | + databloqueio date, | |
| 742 | + datainativo date, | |
| 743 | + datacriacao timestamp without time zone, | |
| 744 | + dataedicao timestamp without time zone, | |
| 745 | + dataemissao timestamp without time zone, | |
| 746 | + localprestacaoservico character varying(500), | |
| 747 | + numordemfornecimento character varying(20), | |
| 748 | + autor_id bigint, | |
| 749 | + editor_id bigint, | |
| 750 | + contrato_id bigint, | |
| 751 | + dominiosituacao_id bigint | |
| 752 | +); | |
| 753 | + | |
| 754 | +CREATE TABLE public.cnt_p_acao_aud | |
| 755 | +( | |
| 756 | + id bigint NOT NULL, | |
| 757 | + rev integer NOT NULL, | |
| 758 | + revtype smallint, | |
| 759 | + databloqueio date, | |
| 760 | + datainativo date, | |
| 761 | + datacriacao timestamp without time zone, | |
| 762 | + dataedicao timestamp without time zone, | |
| 763 | + baselegal character varying(150), | |
| 764 | + codigo character varying(4), | |
| 765 | + descricao character varying(500), | |
| 766 | + nome character varying(150), | |
| 767 | + autor_id bigint, | |
| 768 | + editor_id bigint, | |
| 769 | + programa_id bigint | |
| 770 | +); | |
| 771 | + | |
| 772 | +CREATE TABLE cnt_pn_documento_aud ( | |
| 773 | + id bigint NOT NULL, | |
| 774 | + rev integer NOT NULL, | |
| 775 | + eventopenalidade_id bigint, | |
| 776 | + eventopenalidadeinativo_id bigint | |
| 777 | +); | |
| 778 | + | |
| 779 | + | |
| 780 | +CREATE TABLE cnt_pn_regocorrencia_aud ( | |
| 781 | + id bigint NOT NULL, | |
| 782 | + rev integer NOT NULL, | |
| 783 | + revtype smallint, | |
| 784 | + databloqueio date, | |
| 785 | + datainativo date, | |
| 786 | + datacriacao timestamp without time zone, | |
| 787 | + dataedicao timestamp without time zone, | |
| 788 | + autor_id bigint, | |
| 789 | + editor_id bigint, | |
| 790 | + eventopenalidade_id bigint, | |
| 791 | + registroocorrencia_id bigint | |
| 792 | +); | |
| 793 | + | |
| 794 | + | |
| 795 | +CREATE TABLE cnt_programa_aud ( | |
| 796 | + id bigint NOT NULL, | |
| 797 | + rev integer NOT NULL, | |
| 798 | + revtype smallint, | |
| 799 | + databloqueio date, | |
| 800 | + datainativo date, | |
| 801 | + datacriacao timestamp without time zone, | |
| 802 | + dataedicao timestamp without time zone, | |
| 803 | + anoexercicio integer, | |
| 804 | + codigo character varying(4), | |
| 805 | + nome character varying(150), | |
| 806 | + autor_id bigint, | |
| 807 | + editor_id bigint, | |
| 808 | + dominiotipoprograma_id bigint | |
| 809 | +); | |
| 810 | + | |
| 811 | + | |
| 812 | +CREATE TABLE cnt_q_pergunta_aud ( | |
| 813 | + id bigint NOT NULL, | |
| 814 | + rev integer NOT NULL, | |
| 815 | + revtype smallint, | |
| 816 | + databloqueio date, | |
| 817 | + datainativo date, | |
| 818 | + datacriacao timestamp without time zone, | |
| 819 | + dataedicao timestamp without time zone, | |
| 820 | + questao character varying(500), | |
| 821 | + autor_id bigint, | |
| 822 | + editor_id bigint, | |
| 823 | + dominiotiporesposta_id bigint, | |
| 824 | + etquestionario_id bigint, | |
| 825 | + etquestionarioinativo_id bigint, | |
| 826 | + questionario_id bigint, | |
| 827 | + questionarioinativo_id bigint | |
| 828 | +); | |
| 829 | + | |
| 830 | + | |
| 831 | +CREATE TABLE cnt_qp_possivelresposta_aud ( | |
| 832 | + id bigint NOT NULL, | |
| 833 | + rev integer NOT NULL, | |
| 834 | + revtype smallint, | |
| 835 | + databloqueio date, | |
| 836 | + datainativo date, | |
| 837 | + datacriacao timestamp without time zone, | |
| 838 | + dataedicao timestamp without time zone, | |
| 839 | + resposta character varying(100), | |
| 840 | + autor_id bigint, | |
| 841 | + editor_id bigint, | |
| 842 | + questionariopergunta_id bigint, | |
| 843 | + questionarioperguntainativo_id bigint | |
| 844 | +); | |
| 845 | + | |
| 846 | + | |
| 847 | +CREATE TABLE cnt_questionario_aud ( | |
| 848 | + id bigint NOT NULL, | |
| 849 | + rev integer NOT NULL, | |
| 850 | + revtype smallint, | |
| 851 | + databloqueio date, | |
| 852 | + datainativo date, | |
| 853 | + datacriacao timestamp without time zone, | |
| 854 | + dataedicao timestamp without time zone, | |
| 855 | + nome character varying(100), | |
| 856 | + autor_id bigint, | |
| 857 | + editor_id bigint, | |
| 858 | + dominiotipoquestionario_id bigint | |
| 859 | +); | |
| 860 | + | |
| 861 | + | |
| 862 | +CREATE TABLE cnt_rc_documento_aud ( | |
| 863 | + id bigint NOT NULL, | |
| 864 | + rev integer NOT NULL, | |
| 865 | + eventorescisaocontrato_id bigint, | |
| 866 | + eventorescisaoinativo_id bigint | |
| 867 | +); | |
| 868 | + | |
| 869 | + | |
| 870 | +CREATE TABLE cnt_registroocorrencia_aud ( | |
| 871 | + id bigint NOT NULL, | |
| 872 | + rev integer NOT NULL, | |
| 873 | + revtype smallint, | |
| 874 | + databloqueio date, | |
| 875 | + datainativo date, | |
| 876 | + datacriacao timestamp without time zone, | |
| 877 | + dataedicao timestamp without time zone, | |
| 878 | + dataemissaoocorrencia timestamp without time zone, | |
| 879 | + descricaoocorrencia character varying(600), | |
| 880 | + justificativaglosa character varying(200), | |
| 881 | + prazocumprimento timestamp without time zone, | |
| 882 | + numerosequencial bigint, | |
| 883 | + sequencialano character varying(20), | |
| 884 | + tituloocorrencia character varying(200), | |
| 885 | + valorglosa numeric(20,4), | |
| 886 | + autor_id bigint, | |
| 887 | + editor_id bigint, | |
| 888 | + contrato_id bigint, | |
| 889 | + ordemfornecimento_id bigint | |
| 890 | +); | |
| 891 | + | |
| 892 | +CREATE TABLE cnt_rep_documento_aud ( | |
| 893 | + id bigint NOT NULL, | |
| 894 | + rev integer NOT NULL, | |
| 895 | + eventorepactuacao_id bigint, | |
| 896 | + eventorepactuacaoinativo_id bigint | |
| 897 | +); | |
| 898 | + | |
| 899 | +CREATE TABLE cnt_ro_documento_aud ( | |
| 900 | + id bigint NOT NULL, | |
| 901 | + rev integer NOT NULL, | |
| 902 | + registroocorrencia_id bigint, | |
| 903 | + registroocorrenciainativo_id bigint | |
| 904 | +); | |
| 905 | + | |
| 906 | +CREATE TABLE cnt_termoreferencia_aud ( | |
| 907 | + id bigint NOT NULL, | |
| 908 | + rev integer NOT NULL, | |
| 909 | + revtype smallint, | |
| 910 | + databloqueio date, | |
| 911 | + datainativo date, | |
| 912 | + datacriacao timestamp without time zone, | |
| 913 | + dataedicao timestamp without time zone, | |
| 914 | + adequacaoorcamentaria character varying(1000), | |
| 915 | + codigo character varying(30), | |
| 916 | + criteriohabilitacao character varying(500), | |
| 917 | + datatermogerado timestamp without time zone, | |
| 918 | + deverescontratada text, | |
| 919 | + deverescontratante text, | |
| 920 | + deveresorgaoregistropreco text, | |
| 921 | + documentacaominima character varying(1000), | |
| 922 | + justificativa character varying(500), | |
| 923 | + justificativacontratacaodir character varying(500), | |
| 924 | + justificativamodalidade character varying(500), | |
| 925 | + justificativapreferencia character varying(500), | |
| 926 | + mecanismocomunicacao text, | |
| 927 | + objetocontratacao character varying(4000), | |
| 928 | + procedimentosinspecao character varying(1000), | |
| 929 | + qualificacaotecnica character varying(500), | |
| 930 | + autor_id bigint, | |
| 931 | + editor_id bigint, | |
| 932 | + adjudicacaoobjeto_id bigint, | |
| 933 | + empreitada_id bigint, | |
| 934 | + estudotecnico_id bigint, | |
| 935 | + modalidade_id bigint | |
| 936 | +); | |
| 937 | + | |
| 938 | +CREATE TABLE cnt_tr_detsolucao_aud ( | |
| 939 | + id bigint NOT NULL, | |
| 940 | + rev integer NOT NULL, | |
| 941 | + revtype smallint, | |
| 942 | + databloqueio date, | |
| 943 | + datainativo date, | |
| 944 | + datacriacao timestamp without time zone, | |
| 945 | + dataedicao timestamp without time zone, | |
| 946 | + descricaoglosa character varying(500), | |
| 947 | + indicador character varying(150), | |
| 948 | + localentrega character varying(150), | |
| 949 | + metrica character varying(150), | |
| 950 | + nivelservico character varying(150), | |
| 951 | + numeroparcelas bigint, | |
| 952 | + prazoentrega timestamp without time zone, | |
| 953 | + quantidade bigint, | |
| 954 | + total numeric(20,4), | |
| 955 | + unidade bigint, | |
| 956 | + valor numeric(20,4), | |
| 957 | + autor_id bigint, | |
| 958 | + editor_id bigint, | |
| 959 | + bemservicosolucao_id bigint, | |
| 960 | + formapagamento_id bigint, | |
| 961 | + fornecedor_id bigint, | |
| 962 | + orgaoexterno_id bigint, | |
| 963 | + termo_id bigint, | |
| 964 | + termoinativo_id bigint | |
| 965 | +); | |
| 966 | + | |
| 967 | +CREATE TABLE cnt_tr_documento_aud ( | |
| 968 | + id bigint NOT NULL, | |
| 969 | + rev integer NOT NULL, | |
| 970 | + termo_id bigint, | |
| 971 | + termoinativo_id bigint | |
| 972 | +); | |
| 973 | + | |
| 974 | + | |
| 975 | +CREATE TABLE cnt_tr_penalidade_aud ( | |
| 976 | + id bigint NOT NULL, | |
| 977 | + rev integer NOT NULL, | |
| 978 | + revtype smallint, | |
| 979 | + databloqueio date, | |
| 980 | + datainativo date, | |
| 981 | + datacriacao timestamp without time zone, | |
| 982 | + dataedicao timestamp without time zone, | |
| 983 | + ocorrencia character varying(500), | |
| 984 | + penalidade character varying(150), | |
| 985 | + autor_id bigint, | |
| 986 | + editor_id bigint, | |
| 987 | + termo_id bigint, | |
| 988 | + termoinativo_id bigint | |
| 989 | +); | |
| 990 | + | |
| 991 | + | |
| 992 | +CREATE TABLE cnt_tr_sancao_aud ( | |
| 993 | + id bigint NOT NULL, | |
| 994 | + rev integer NOT NULL, | |
| 995 | + revtype smallint, | |
| 996 | + databloqueio date, | |
| 997 | + datainativo date, | |
| 998 | + datacriacao timestamp without time zone, | |
| 999 | + dataedicao timestamp without time zone, | |
| 1000 | + descricao character varying(500), | |
| 1001 | + sancao character varying(150), | |
| 1002 | + autor_id bigint, | |
| 1003 | + editor_id bigint, | |
| 1004 | + dominiotiposancao_id bigint, | |
| 1005 | + termo_id bigint, | |
| 1006 | + termoinativo_id bigint | |
| 1007 | +); | |
| 1008 | + | |
| 1009 | +-- ERICK FIM 08/05/2016 | |
| 0 | 1010 | \ No newline at end of file | ... | ... |
cit-contratos-web/src/main/java/br/com/centralit/listener/StartupListenerContratos.java
| ... | ... | @@ -993,6 +993,17 @@ public class StartupListenerContratos extends UtilStartup implements Application |
| 993 | 993 | |
| 994 | 994 | internacionalizacaoList.add(new Internacionalizacao("CONTRATOS.LABEL.CONSULTA_RELATORIOS", "Consulta de Relatórios", dominio, modulo)); |
| 995 | 995 | internacionalizacaoList.add(new Internacionalizacao("CONTRATOS.LABEL.CONSULTA_TERMOS", "Consulta de termos", dominio, modulo)); |
| 996 | + | |
| 997 | + internacionalizacaoList.add(new Internacionalizacao("CONTRATO_LABEL_EVENTO_ADITIVO", "Alteração Contratual (Aditivo)", dominio, modulo)); | |
| 998 | + internacionalizacaoList.add(new Internacionalizacao("CONTRATO_LABEL_EVENTO_PENALIDADE", "Aplicação de Penalidade", dominio, modulo)); | |
| 999 | + internacionalizacaoList.add(new Internacionalizacao("CONTRATO_LABEL_EVENTO_APOSTILAMENTO", "Apostilamento", dominio, modulo)); | |
| 1000 | + internacionalizacaoList.add(new Internacionalizacao("CONTRATO_LABEL_EVENTO_ATUALIZA_STATUS", "Atualização de Status", dominio, modulo)); | |
| 1001 | + internacionalizacaoList.add(new Internacionalizacao("CONTRATO_LABEL_EVENTO_LIBERA_PAGAMENTO", "Liberação para Pagamento", dominio, modulo)); | |
| 1002 | + internacionalizacaoList.add(new Internacionalizacao("CONTRATO_LABEL_EVENTO_EMPENHO", "Registro de Empenho", dominio, modulo)); | |
| 1003 | + internacionalizacaoList.add(new Internacionalizacao("CONTRATO_LABEL_EVENTO_NAO_CONFORMIDADE", "Registro de Não Conformidade", dominio, modulo)); | |
| 1004 | + internacionalizacaoList.add(new Internacionalizacao("CONTRATO_LABEL_EVENTO_RECEBIMENTO_OBJETO", "Registro de Recebimento de Objeto", dominio, modulo)); | |
| 1005 | + internacionalizacaoList.add(new Internacionalizacao("CONTRATO_LABEL_EVENTO_REPACTUACAO", "Repactuação", dominio, modulo)); | |
| 1006 | + internacionalizacaoList.add(new Internacionalizacao("CONTRATO_LABEL_EVENTO_RESCISAO", "Rescisão de Contrato", dominio, modulo)); | |
| 996 | 1007 | } |
| 997 | 1008 | |
| 998 | 1009 | private void gerarMensagem(Dominio dominio, Modulo modulo, List<Internacionalizacao> internacionalizacaoList) { | ... | ... |