Re: er.extensions.ERXGenericRecord.InverseRelationshipUpdater error?

From: James Cicenia (jame..imijon.com)
Date: Sat Mar 15 2008 - 21:52:16 EDT

  • Next message: Andrew Lindesay: "Re: Can't generate SQL"

    Good idea.

    I actually have that in one of my mature projects. This one is a brand
    new Wonder based one, so I figured in the early going I will try to
    keep it up-to-date with all the wonder goodnes.

    -j-

    On Mar 15, 2008, at 8:30 PM, David LeBer wrote:

    > On 15-Mar-08, at 9:23 PM, Mike Schrag wrote:
    >
    >> It's rare that there's a new feature that impacts templates. The
    >> built-in templates are provided as examples. You can always copy
    >> them out so you don't just get whatever the latest version is. The
    >> old templates still work, these just take advantage of new Wonder
    >> features.
    >
    >>
    >> ms
    >>
    >> On Mar 15, 2008, at 9:03 PM, James Cicenia wrote:
    >>> Thanks Mike -
    >>>
    >>> You sure update wonder a lot.. I think mine was only a month or so
    >>> old. Just not developing with it in ernest.
    >>>
    >>> -j-
    >
    > I like to create an EOTemplate folder in each new project with a
    > copy of my templates in there.
    >
    > It's more work (and duplication) but it means I'm insulated from
    > changes at the project level and I can chose to add or remove
    > features in the templates based on the needs of that project.
    >
    > ;david
    >
    > --
    > David LeBer
    > Codeferous Software
    > 'co-def-er-ous' adj. Literally 'code-bearing'
    > site: http://codeferous.com
    > blog: http://davidleber.net
    > profile: http://www.linkedin.com/in/davidleber
    > --
    > Toronto Area Cocoa / WebObjects developers group:
    > http://tacow.org
    >
    >
    >>>
    >>> On Mar 15, 2008, at 7:32 PM, Mike Schrag wrote:
    >>>
    >>>> You're using the built-in Wonder velocity templates, which are
    >>>> using the latest version of Project Wonder. Your Project Wonder
    >>>> is out-of-date.
    >>>>
    >>>> ms
    >>>>
    >>>> On Mar 15, 2008, at 7:47 PM, James Cicenia wrote:
    >>>>> My Eclipse is telling me this is bad without any explanation.
    >>>>>
    >>>>> er.extensions.ERXGenericRecord.InverseRelationshipUpdater
    >>>>>
    >>>>> It was created via the velogenerator.
    >>>>>
    >>>>> as in this generated method(it is in all my base classes which
    >>>>> have relationships):
    >>>>>
    >>>>> public void setUserRelationship(com.aweli.cpn.eo.User value) {
    >>>>> if (_Client.LOG.isDebugEnabled()) {
    >>>>> _Client.LOG.debug("updating user from " + user() + " to " +
    >>>>> value);
    >>>>> }
    >>>>> if
    >>>>> (er
    >>>>> .extensions
    >>>>> .ERXGenericRecord
    >>>>> .InverseRelationshipUpdater.updateInverseRelationships()) {
    >>>>> setUser(value);
    >>>>> }
    >>>>> else if (value == null) {
    >>>>> com.aweli.cpn.eo.User oldValue = user();
    >>>>> if (oldValue != null) {
    >>>>> removeObjectFromBothSidesOfRelationshipWithKey(oldValue,
    >>>>> "user");
    >>>>> }
    >>>>> } else {
    >>>>> addObjectToBothSidesOfRelationshipWithKey(value, "user");
    >>>>> }
    >>>>> }
    >>>>>
    >>>>>
    >>>>> Am I missing something? Or a switch, or ?
    >>>>>
    >>>>> Thanks
    >>>>> James Cicenia
    >>>>
    >>>
    >>
    >
    >
    >



    This archive was generated by hypermail 2.0.0 : Sat Mar 15 2008 - 21:53:17 EDT