Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » problem about emf+jpox query
problem about emf+jpox query [message #609903] Mon, 08 October 2007 02:00
Eclipse UserFriend
Originally posted by:

Hi All
There is a strange problem in object query during using emf+jpox.
There is a 1-n relation between Class Car and Class Part, which means one
Car contains n Parts. When I use this query:
query = pm.newQuery("javax.jdo.query.JDOQL", "SELECT FROM Part WHERE car ==
query.declareImports("import Car");
query.declareParameters("Car threshold");
List results = (List)query.execute("BMW");
Exception are throwed:
Exception in thread "main" java.lang.NullPointerException
at .java:184)
at$Compiler.compileEquali tyExpression(
at$Compiler.compileAndExp ression(
at$Compiler.compileExclus iveOrExpression(
at$Compiler.compileInclus iveOrExpression(
at$Compiler.compileCondit ionalAndExpression(
at$Compiler.compileCondit ionalOrExpression(
at$Compiler.compileExpres sion(
at$Compiler.compileExpres sionFromString(
at$Compiler.compileFilter (
at$Compiler.performCompil e(
at$Compiler.executionComp ile(
at test.TestQuery.queryPartData(
at test.TestQuery.main(

what is the meaning of that?
Previous Topic:Teneo and Named Queries
Next Topic:problem about emf+jpox query
Goto Forum:

Current Time: Thu Apr 25 01:37:41 GMT 2024

Powered by FUDForum. Page generated in 0.03100 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top