Querydsl para unión interna de la misma tabla
Frecuentes
Visto 1,494 equipos
3
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);
query.from(XXXXX)
Lets assume we havehas
QJobLogBean qjb = QJobLogBean.jobLogBean;
Gracias de antemano.
1 Respuestas
1
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
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas spring hibernate jpql querydsl or haz tu propia pregunta.
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