Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 1st, 2012  |  syntax: None  |  size: 0.64 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public class FuncionarioDAO extends AppJpaDAO  {
  2.  
  3.         @PlcQuery("querySel")
  4.         public native List<Funcionario> findList(
  5.                         @PlcQueryOrderBy String dynamicOrderByPlc,
  6.                         @PlcQueryFirstLine Integer primeiraLinhaPlc,
  7.                         @PlcQueryLineAmount Integer numeroLinhasPlc,               
  8.                        
  9.                         @PlcQueryParameter(name="id", expression="id = :id") Long id,
  10.                         @PlcQueryParameter(name="nome", expression="nome like '%' || :nome ") String nome
  11.         );
  12.  
  13.         @PlcQuery("querySel")
  14.         public native Long findCount(
  15.                        
  16.                         @PlcQueryParameter(name="id", expression="id = :id") Long id,
  17.                         @PlcQueryParameter(name="nome", expression="nome like '%' || :nome ") String nome
  18.         );