Re: Is registerNewObject required?

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Jan 10 2006 - 09:58:46 EST

  • Next message: Andrus Adamchik: "Re: Cayenne and EJB3"

    Dave,

    This is a bug (or rather unnecessary limitation). I opened a bug
    report and already committed a fix:

    http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-418

    Andrus

    On Jan 10, 2006, at 8:55 AM, Dave Merrin wrote:

    > I've done even more testing and discovered it works for classes
    > which don't
    > extend CayenneDataObject. This is fine as the classes I'm using
    > don't extend
    > CayenneDataObject. It just so happens that I decided to test with a
    > class
    > which does.
    >
    > Would still be good to know why I ran into this problem.
    >
    > Dave
    >
    >> -----Original Message-----
    >> From: Dave Merrin [mailto:dmerri..pasystems.co.uk]
    >> Sent: 10 January 2006 13:33
    >> To: cayenne-use..bjectstyle.org
    >> Subject: RE: Is registerNewObject required?
    >>
    >>
    >> I've done some more testing and discovered I should have been
    >> using lower
    >> case for the properties. I'm now having problems with the name bit:
    >>
    >> Expression exp = ExpressionFactory.matchExp("class.name", "Item");
    >>
    >> Exception in thread "main"
    >> org.objectstyle.cayenne.exp.ExpressionException:
    >> [v.1.2M6 October 6 2005] Error evaluating expression 'class.name =
    >> "Item"'
    >>
    >> Caused by: org.objectstyle.cayenne.CayenneRuntimeException:
    >> [v.1.2M6 October
    >> 6 2005] Invalid path: class.name
    >> at
    >> org.objectstyle.cayenne.CayenneDataObject.readNestedProperty(Cayen
    >> neDataObje
    >> ct.java:171)
    >>
    >> Any ideas?
    >>
    >> Dave



    This archive was generated by hypermail 2.0.0 : Tue Jan 10 2006 - 09:58:48 EST