We’re having some problems with one-to-one and many-to-one in our hibernate mapping. Currently we use it to extract some columns that are computed in another class, both mapped classes use the same underlying table, but for some reason a cross-join is created towards the same table, resulting in not ideal performance.
For more info, we created this issue: https://hibernate.atlassian.net/browse/HHH-14830