- 1
- 2
- 3
- 4
- 5
- 6
- 7
// WARNING!
// This has to be optional=true so that OpenJPA uses
// LEFT JOIN instead of INNER JOIN. Otherwise, MySQL tries
// using a temporary table (horrible for performance) and dies.
@ManyToOne(optional = true)
@NotNull
private Font font;