openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From QkI <>
Subject Unnecesery INNER JOIN
Date Thu, 15 Jul 2010 13:19:07 GMT

Let's say I have the following persistence class:

public class B {

  @OneToOne(cascade = CascadeType.PERSIST, fetch = FetchType.LAZY)
  @JoinColumn(name = "a_id")
  private A a;

and when I try to execute this JPA query:
SELECT FROM B where = 123

my SQL output looks like:
SELECT FROM table_b t0 INNER JOIN table_a t1 ON t0.a_id = WHERE
( = 123)

Why does openJPA add unnecesery JOIN to the SQL query.
Can I somehow change this behaviour of openJPA


View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message