Rev 160 | Rev 164 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 160 | Rev 161 | ||
|---|---|---|---|
| Line 23... | Line 23... | ||
| 23 | import br.edu.cesmac.core.generic.identidade.Identidade; |
23 | import br.edu.cesmac.core.generic.identidade.Identidade; |
| 24 | import br.edu.cesmac.core.interfaces.Alterar; |
24 | import br.edu.cesmac.core.interfaces.Alterar; |
| 25 | import br.edu.cesmac.core.interfaces.Cadastrar; |
25 | import br.edu.cesmac.core.interfaces.Cadastrar; |
| 26 | import br.edu.cesmac.core.util.DataUtils; |
26 | import br.edu.cesmac.core.util.DataUtils; |
| 27 | import br.edu.cesmac.core.util.StringUtil; |
27 | import br.edu.cesmac.core.util.StringUtil; |
| 28 | import br.edu.cesmac.core.util.VerificadorUtil; |
- | |
| 29 | 28 | ||
| 30 | @Entity |
29 | @Entity |
| 31 | @Table(name="sec_pendencia", schema="sc_sec") |
30 | @Table(name="sec_pendencia", schema="sc_sec") |
| 32 | public class Pendencia implements Serializable, Identidade { |
31 | public class Pendencia implements Serializable, Identidade { |
| 33 | 32 | ||
| Line 40... | Line 39... | ||
| 40 | private Usuario usuarioResposta; |
39 | private Usuario usuarioResposta; |
| 41 | private String descricao; |
40 | private String descricao; |
| 42 | private Date data; |
41 | private Date data; |
| 43 | private Date dataFinalizado; |
42 | private Date dataFinalizado; |
| 44 | private String resposta; |
43 | private String resposta; |
| - | 44 | private Date dataRespostaLida; |
|
| 45 | private Boolean indicadorFinalizado; |
45 | private Boolean indicadorFinalizado; |
| 46 | 46 | ||
| 47 | private List<Perfil> perfisConsulta; |
47 | private List<Perfil> perfisConsulta; |
| 48 | 48 | ||
| 49 | @Override |
49 | @Override |
| Line 106... | Line 106... | ||
| 106 | public Usuario getUsuarioResposta() { |
106 | public Usuario getUsuarioResposta() { |
| 107 | return usuarioResposta; |
107 | return usuarioResposta; |
| 108 | }
|
108 | }
|
| 109 | public void setUsuarioResposta(Usuario usuarioResposta) { |
109 | public void setUsuarioResposta(Usuario usuarioResposta) { |
| 110 | this.usuarioResposta = usuarioResposta; |
110 | this.usuarioResposta = usuarioResposta; |
| - | 111 | }
|
|
| - | 112 | ||
| - | 113 | @Column(name="dth_resposta_lida") |
|
| - | 114 | public Date getDataRespostaLida() { |
|
| - | 115 | return dataRespostaLida; |
|
| - | 116 | }
|
|
| - | 117 | public void setDataRespostaLida(Date dataRespostaLida) { |
|
| - | 118 | this.dataRespostaLida = dataRespostaLida; |
|
| 111 | }
|
119 | }
|
| 112 | 120 | ||
| 113 | @Column(name="dsc_pendencia") |
121 | @Column(name="dsc_pendencia") |
| 114 | @Size(max = 250, message = "Limite de caracteres ultrapassado: Descrição") |
122 | @Size(max = 250, message = "Limite de caracteres ultrapassado: Descrição") |
| 115 | @NotEmpty(message = "Parâmetro obrigatório não preenchido: Descrição", groups = {Cadastrar.class, Alterar.class}) |
123 | @NotEmpty(message = "Parâmetro obrigatório não preenchido: Descrição", groups = {Cadastrar.class, Alterar.class}) |