Querydsl para unión interna de la misma tabla

SQL solution for this link is very interesting.. Date difference between two records in same table

Can anybody help me to construct Querydsl for same query..??

JPQLQuery query = new JPAQuery(entityManager);

Lets assume we havehas

QJobLogBean qjb = QJobLogBean.jobLogBean;

Gracias de antemano.

preguntado el 28 de mayo de 14 a las 14:05

1 Respuestas

You could use two from arguments

QJobLogBean qjb1 = new QJobLogBean("qjb1");
QJobLogBean qjb2 = new QJobLogBean("qjb2");
JPQLQuery query = new JPAQuery(entityManager);
query.from(qjb1, qjb2)...

Respondido 24 Jul 17, 20:07

I tried this inner join of same table, but unfortunately it doesnt give me desired output. - Sreedhar GS

What exactly did you try and how did the SQL look like? - Timo Westkämper

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.