Joined: Sat Dec 03, 2005 7:03 am Posts: 3
|
Hallo,
Ich habe ein problem mit einem Query über ein Map Property :
Ich habe ein Objekt (Produkt) welches alls ein property eine Map besitzt.
Als Key ist das persistente Objekt Property und als Value das persistente Objekt PropertyValue.
Ich versuch nun alle Produkte die ein bestimmtes Property als Key in Map besitzen herauszufinden.
Irgend welche Ideen ?
Gruß Kai
Anlagen :
Produkt :
[code]
/**
* @author k.ulrich
*
* @hibernate.class table="Product"
*/
public class Product implements java.io.Serializable {
[...]
private Map propertyValues;
[...]
/**
* @return Returns the actionFelds.
* @hibernate.map
* @hibernate.collection-key column="FK_Product" type="java.lang.String"
* @hibernate.index-many-to-many column="FK_Property" class="com.achtg.intertrade.hibernate.Property"
* @hibernate.collection-one-to-many column="propertyValue" class="com.achtg.intertrade.hibernate.PropertyValue"
*/
public Map getPropertyValues() {
return propertyValues;
}
public void setPropertyValues(Map properties) {
this.propertyValues = properties;
}
[...]
}[/code]
|
|