Hello there! Given this association:
@ManyToOne(fetch=FetchType.EAGER) @Fetch(FetchMode.JOIN) @JoinTable(name="MEDIA_CATEGORY",joinColumns={@JoinColumn(name="MEDIA_ID")},inverseJoinColumns={@JoinColumn(name="CATEGORY_ID")}) private Category category;
I was expecting Hibernate to load the Category in a single select. Instead:
/* load org.acme.model.media.AbstractMedia */ followed by :
/* load org.model.category.Category */
I wonder if this is caused by the JoinTable...
BTW. Is the default behavior of Hibernate to create left joins for all associations, no matter if they are lazy or not?
|