Hi,
here is an example in pseudo Java :
class Person { long id String name Title title }
class Title { long id }
class TitleTransco { Title title long transco }
I wanna get persons with the transco of their title in 1 request, with an outer join because title may be null.
How to make outer joins in HQL with associations which are "inversed", here between Title and TranscoTitle ?
Note that joining in the where condition is not able to be "outer", only inner. Note that other similar associations than title are concerned, there are multiple outer join to perform, so starting from to join Title then Person is not a solution either.
Thank you for any answers or ideas to acheive the goal (getting transcoded info).
Dominique.
Note: i'd like not to implement title -> transco because it's usefull for only 1 use case over all and useless for the rest; i'd like to avoid polluting the model.
|