Hello,
no, it's will not work for me. Reason:
There are some entries in Fbs3LogEntry for users that don't exist in User table. So using this kind of query they will be lost.
My idea was to be able to get(somehow) query like
Code:
from de.tsystems.fbs3.hibernate.bean.Fbs3LogEntry as logEntry left join logEntry.user as usr
by defining many-to-one(one-to-many) in mappings. And of course having also appropriate getters and setters...
I'm just wondering, as I can do in DB following:
Code:
SELECT * FROM Fbs3LogEntry log
LEFT OUTER JOIN User usr ON log.LOG_USER_ID = usr.SLV_ID
when User.SLV_ID is no a primary key and Fbs3LogEntry.LOG_USER_ID is no foreign key referencing it why can't it be possible to do the same in hibernate using HQL...
Anyway, I have some emergency solutions.
Or may be someone has another creative idea?
Many thanks and regards,
giorgi