db4o Developer Community

db4o open source object database, native to Java and .NET
Welcome to db4o Developer Community Sign in | Join
in Search
More Search Options

Browse by Tags

All Tags » Query » List   (RSS)
  • Query objects that "contain" other objects only?

    consider the following case: i am storing items i1 and i2 storing a list of other items (i1 contains i11 and i12, i2 cotnains i21). i want to retrieve only those items (i1 or i2) that contain two other items (i11 and i12). the following code returns i1 if i query for items that contain i11 or i12 but not if i want to make sure that the returned ...
    Posted to db4o User Forum (Forum) by michi_das_hirn on July 22, 2008
  • SODA question - querying Lists

    Hello! Can somebody tell me how SODA behaves for querying Lists? Assumed that Foo is a class which got a field (List _bars) which holds Bar-Objects and I want to get all Foos which got a special Bar. Does this Query Query q = _objectContainer.query();q.constrain(Foo.class);q.descend(''_bars'').constrain(special_bar); // special_bar is a ...
    Posted to db4o User Forum (Forum) by Poison on April 24, 2007
  • Best Practices

    As my my first db4o project, I am trying to organize all my digital photographs. I have Media class, with Photo class derived from it.  In the Photo class I have a datetime field and a  .NET List of Person class. One of my  eventual desires is to know a count of the people in photos as a total and for some time period.  Is ...
    Posted to db4o User Forum (Forum) by MGillson on April 7, 2007