-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: HSQL Query über ein Map
PostPosted: Mon May 08, 2006 4:58 am 
Newbie

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 als ein Property eine Map besitzt.

Als Key ist das persistente Objekt Property und als Value das persistente Objekt PropertyValue.

Ich versuche nun alle Produkte die ein bestimmtes "Property" (propertyId) als Key in der 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;
   }
[...]
}


Property
Code:
/**
* @author k.ulrich
*
* @hibernate.class table="Property"
*/
public class Property implements java.io.Serializable {
[...]
   private String propertyId;
[...]
}


PropertyValue
Code:
/**
* @author k.ulrich
*
* @hibernate.class table="PropertyValue"
*/
public class PropertyValue implements java.io.Serializable {
[...]
private Integer propertyValueId;
[...]


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.