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 » Native Queries » Enum   (RSS)
  • Ordinals only for enum NL Query?

    I am using a NL query in Java to do a search with an enum field as a criterion. The field is indexed. It seems that it only works if I compare the ordinal values of the enum. When I say it ''works'' I mean that I get the correct number of objects back. Without the ordinal methods the enum field seems to be treated as unconstrained. Is this ...
    Posted to db4o User Forum (Forum) by pspringer on March 1, 2007
  • Re: Sorted Native Language Queries Optimized?

    Thank you Tetyana. This makes sense. Can you tell me if there are any known problems with using Java enum types in NL queries? Is there a place I should look for these kinds of issues so I don't have to bother the forum? Thanks, Paul
    Posted to db4o User Forum (Forum) by pspringer on February 22, 2007