If trying:
Code:
select...
from
Reenvios R left join AuditoriasOnline AO with R.msgid=AO.msgid
left join AuditoriasBatch AB with R.fichero=AB.fichero
where ...
Hibernate resolves the query to:
Code:
...
from
com.xxx.data.hibernate.Reenvios R left join AuditoriasOnline AO with R.msgid=AO.msgid
left join AuditoriasBatch AB with R.fichero=AB.fichero
where ...
that means that both AuditoriasOnline and AuditoriasBatch are never resolved to the DTO defined in XML mapping.
Also it spits this error:
[http-8080-Processor25] ERROR - Path expected for join!
[http-8080-Processor25] ERROR - Invalid path: 'AO.orden'
[http-8080-Processor25] ERROR - Invalid path: 'AO.codigoexplotacion'
[http-8080-Processor25] ERROR - Invalid path: 'AO.valorsignifictrans'
[http-8080-Processor25] ERROR - Invalid path: 'AO.estado'
[http-8080-Processor25] ERROR - Invalid path: 'AO.tipoapunte'
[http-8080-Processor25] ERROR - Invalid path: 'AO.timestamp'
[http-8080-Processor25] ERROR - Invalid path: 'AO.msgid'
[http-8080-Processor25] ERROR - Invalid path: 'AO.codigointerfaz'
[http-8080-Processor25] ERROR - Invalid path: 'AB.orden'
[http-8080-Processor25] ERROR - Invalid path: 'AB.codigoexplotacion'
[http-8080-Processor25] ERROR - Invalid path: 'AB.fecha'
[http-8080-Processor25] ERROR - Invalid path: 'AB.codigointerfaz'
[http-8080-Processor25] ERROR - Invalid path: 'AB.programa'
[http-8080-Processor25] ERROR - Invalid path: 'AB.qmanager'
[http-8080-Processor25] ERROR - Invalid path: 'AB.fichero'
[http-8080-Processor25] ERROR - Invalid path: 'AB.tamanofichero'
[http-8080-Processor25] ERROR - Invalid path: 'AB.estado'
[http-8080-Processor25] ERROR - Invalid path: 'AB.almacenada'
[http-8080-Processor25] ERROR - Invalid path: 'AB.tipoapunte'
[http-8080-Processor25] ERROR - Invalid path: 'AO.timestamp'
[http-8080-Processor25] ERROR - Invalid path: 'AB.caducidad'
[http-8080-Processor25] ERROR - java.lang.IllegalStateException: No data type for node: org.hibernate.hql.ast.tree.AggregateNode
+-[AGGREGATE] AggregateNode: 'max'
All those errors are because those two table are not being resolved to their respective DTO
#########################
If trying:
Code:
from
AuditoriasOnline as AO, AuditoriasBatch as AB,
Reenvios as R left join AO with R.msgid=AO.msgid left join AB with R.fichero=AB.fichero
where
it resolves to:
Code:
from
com.xxx.data.hibernate.AuditoriasOnline as AO,
com.xxx.data.hibernate.AuditoriasBatch as AB,
com.xxx.data.hibernate.Reenvios as R
left join AO with R.msgid=AO.msgid left join AB with R.fichero=AB.fichero
where
which means it is defining the entities properly, however the error:
ERROR:org.springframework.orm.hibernate3.HibernateQueryException: Path expected for join!
is thrown.
Please assist.
Thanks in advanced.