Rev 762 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 762 | Rev 771 | ||
|---|---|---|---|
| Line 10... | Line 10... | ||
| 10 | 10 | ||
| 11 | @Repository |
11 | @Repository |
| 12 | public class AtivoRepositoryJpaImpl extends SistemaAbstractRepository<Ativo> implements AtivoRepository { |
12 | public class AtivoRepositoryJpaImpl extends SistemaAbstractRepository<Ativo> implements AtivoRepository { |
| 13 | 13 | ||
| 14 | private static final String ATIVO_INFORMADO_NAO_EXISTE_PARA_ESTA_DESCRICAO = "Ativo informado não existe para esta descrição"; |
14 | private static final String ATIVO_INFORMADO_NAO_EXISTE_PARA_ESTA_DESCRICAO = "Ativo informado não existe para esta descrição"; |
| - | 15 | ||
| - | 16 | @Override |
|
| - | 17 | protected String getColunaOrdenadora() { |
|
| - | 18 | return "nome"; |
|
| - | 19 | }
|
|
| 15 | 20 | ||
| 16 | @Override |
21 | @Override |
| 17 | public Ativo consultarPorNome(String nome) { |
22 | public Ativo consultarPorNome(String nome) { |
| 18 | StringBuilder jpql = new StringBuilder(); |
23 | StringBuilder jpql = new StringBuilder(); |
| 19 | jpql.append("SELECT e FROM Ativo e "); |
24 | jpql.append("SELECT e FROM Ativo e "); |