I need to make OUTER JOINtwo objects in the JPA (speaking master, detail), but the problem is that at the level of essence there is no relationship (and I do not want to add it).
@Entity
class Master
{
@Column(name="altKey")
Integer altKey;
}
@Entity
class Detail
{
@Column(name="altKeyRef")
@Basic (optional = true)
Integer altKeyRef;
}
SELECT m, d FROM Master m OUTER JOIN ????? d.altKeyRef = m.altKey
Dewfy source
share