Hi,
I'm new to hibernate and now have the task to make the following variable transient:
Code:
@OneToMany(cascade=CascadeType.ALL,fetch=FetchType.EAGER)
@Fetch(value=FetchMode.JOIN)
@javax.persistence.MapKey(name="adressNr")
@JoinTable(name="VS_Partner_Adr", joinColumns={@JoinColumn(name="Partner_nr")}, inverseJoinColumns={@JoinColumn(name="Adress_nr")})
private Map<String, Adress> adressMap = new HashMap<String, Adress>();
My question is, how do I do a join in an oql statement when this no class representation of one of the two tables, in this case "VS_Partner_Adr".
Is something like the query below possible and if so, how?
Code:
"select " + Adresse.class.getName() + " as adresse inner join " + " VS_PARTNER_ADR as padr on padr.adresse_nr = adresse.adressenr where padr.partner_nr = '10029100'"
Thanks,
Minos