Rev 156 | Rev 161 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 156 | Rev 160 | ||
|---|---|---|---|
| Line 21... | Line 21... | ||
| 21 | import org.hibernate.validator.constraints.NotEmpty; |
21 | import org.hibernate.validator.constraints.NotEmpty; |
| 22 | 22 | ||
| 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.StringUtil; |
27 | import br.edu.cesmac.core.util.StringUtil; |
| - | 28 | import br.edu.cesmac.core.util.VerificadorUtil; |
|
| 27 | 29 | ||
| 28 | @Entity |
30 | @Entity |
| 29 | @Table(name="sec_pendencia", schema="sc_sec") |
31 | @Table(name="sec_pendencia", schema="sc_sec") |
| 30 | public class Pendencia implements Serializable, Identidade { |
32 | public class Pendencia implements Serializable, Identidade { |
| 31 | 33 | ||
| Line 184... | Line 186... | ||
| 184 | if (other.sequencial != null) |
186 | if (other.sequencial != null) |
| 185 | return false; |
187 | return false; |
| 186 | } else if (!sequencial.equals(other.sequencial)) |
188 | } else if (!sequencial.equals(other.sequencial)) |
| 187 | return false; |
189 | return false; |
| 188 | return true; |
190 | return true; |
| - | 191 | }
|
|
| - | 192 | ||
| - | 193 | @Transient |
|
| - | 194 | public Integer quantidadeDiasPendente() { |
|
| - | 195 | return DataUtils.calcularDiferenceEmDiasEntreDuasDatas(DataUtils.getDataAtual(), getData()); |
|
| 189 | }
|
196 | }
|
| 190 | 197 | ||
| 191 | }
|
198 | }
|