select query for a HashMap field of an entity.

#1

I have the following entity. I need the all the MyEntitiy whose MyEntity.Embeddable.PropMap.Key = someValue. Can anybody please help me to get this what should be the query.

@Entity
class MyEntity
{
    @Embeddable
    class MyEmbeddable
    {
        private HashMap<Long, Properties> PropMap;
    }
}

 

Thank you.

#2

You may use map.containsKey(someValue).

ObjectDB Support

Reply