Ver Mensaje Individual
  #3 (permalink)  
Antiguo 10/01/2015, 09:24
Avatar de Profesor_Falken
Profesor_Falken
 
Fecha de Ingreso: agosto-2014
Ubicación: Mountain View
Mensajes: 1.323
Antigüedad: 9 años, 8 meses
Puntos: 182
Respuesta: Metodo replance texto.

Buenas,

Con hibernate y HQL puedes hacerlo fácilmente.

Código Java:
Ver original
  1. String consulta = "SELECT COUNT(*) AS col_0_0_  ...................[Toda tu consulta hibernate aqui]";
  2. List result = session.createQuery(consulta)
  3. .setInteger(0, 2)
  4. .setString(1, "áàâãäéèêëíìïóòôõöúùûüÁÀÂÃÄÉÈÊËÍÌÏÓÒÔÕÖÚÙÛÜçÇ")
  5.  [....]
  6. .list();

Aquí tienes un tutorial de Mkyong al respecto.
http://www.mkyong.com/hibernate/hibe...ding-examples/

Ya nos cuentas si te sale.

Un saludo
__________________
If to err is human, then programmers are the most human of us