ObjectDB ObjectDB

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.

edit
delete
#2

You may use map.containsKey(someValue).

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
edit
delete

Reply

To post on this website please sign in.