You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jimmer incorrectly eliminates join with table if !fetchType(JOIN_ALWAYS) is used.
Reproduction steps
Model:
@MappedSuperclass
interface SerialId {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
val id: Long
}
@Entity
interface A : SerialId {
@OneToOne(mappedBy = "a")
val b: B?
@OneToOne(mappedBy = "a")
val c: C?
val name: String
}
@Entity
interface B : SerialId {
@OneToOne
val a: A
val name: String
}
@Entity
interface C : SerialId {
@OneToOne
val a: A
val name: String
}
Jimmer Version
0.9.72
JDK Version
23
Database
Postgres, H2
OS
Mac
Expected behavior
Jimmer generates valid sql.
Actual behavior
Jimmer generated sql with missing alias.
Description
Jimmer incorrectly eliminates join with table if
!fetchType(JOIN_ALWAYS)
is used.Reproduction steps
Model:
Code:
Generated SQL
The text was updated successfully, but these errors were encountered: