I've the following annotated entity in hibernate 4.3.5.
Looking at the query executed it seems to ignore the @Fetch join annotation and then executes 2 queries.
Any suggestion ?
Tks
Tullio
Code:
@Entity
@Table(name="V41TIPI_EVENTO")
public class V41tipiEvento extends EntityBase<S41tipiEventoPk> {
private static final long serialVersionUID = 1L;
@Column(name="DESS41")
private String dess41;
@Column(name="CGES41")
private String cges41;
@ManyToOne
@Fetch(value = FetchMode.JOIN)
@JoinColumn(name="cges41", referencedColumnName="cods42")
private S42gruppiEvento gruppiEvento;