• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: JavaEOGenerator - EOPrototypes and EOGenericRecord?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JavaEOGenerator - EOPrototypes and EOGenericRecord?


  • Subject: Re: JavaEOGenerator - EOPrototypes and EOGenericRecord?
  • From: Jeff Schmitz <email@hidden>
  • Date: Sat, 22 Dec 2007 22:42:59 -0600

A few other problems with the "base" generated code (the classes with the _ before their names):

1. The code references some classes that the compiler can't find.  I'm using WO 5.3 btw.  e.g.
com.webobjects.eoaccess.EORelationship.DeleteRuleNullify:

2.The below generated code references an operation that doesn't exist, namely addToEntriesRelationship.

      public void initializeEntries(com.netBrackets.core.EOEntries value) {
        this.addToEntriesRelationship(value);
    }

3. "&&"s come out as &amp;&amp;, e.g.

           if ((this.editingContext() != null) &amp;&amp; (object != null) &amp;&amp; (!this.isReadOnly()) &amp;&amp; (!object.isReadOnly()) &amp;&amp; (!this.editingContext().equals(object.editingContext()))) {

4. Two functions with the same name and signature are generated.  Operations are shown below:

    public void addToEntries(com.netBrackets.core.EOEntries object) {
        this.includeObjectIntoPropertyWithKey(object, "entries");
    }

    public void addToEntries(com.netBrackets.core.EOEntries object) {
        if (logger.isDebugEnabled()) {
            if ((this.editingContext() != null) && (object != null) &amp;&amp; (!this.isReadOnly()) &amp;&amp; (!object.isReadOnly()) &amp;&amp; (!this.editingContext().equals(object.editingContext()))) {
                try {
                    throw new Exception("WrongEdidtingContext");
                } catch(Exception exception) {
                    logger.warn("addToEntries exception " , exception);
                }
            }
        }
        this.includeObjectIntoPropertyWithKey(object, "entries");
    }

Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: JavaEOGenerator - EOPrototypes and EOGenericRecord?
      • From: Art Isbell <email@hidden>
References: 
 >Re: JavaEOGenerator - EOPrototypes and EOGenericRecord? (From: Jeff Schmitz <email@hidden>)
 >Re: JavaEOGenerator - EOPrototypes and EOGenericRecord? (From: Chuck Hill <email@hidden>)
 >Re: JavaEOGenerator - EOPrototypes and EOGenericRecord? (From: Drew Thoeni <email@hidden>)
 >Re: JavaEOGenerator - EOPrototypes and EOGenericRecord? (From: Guido Neitzer <email@hidden>)
 >Re: JavaEOGenerator - EOPrototypes and EOGenericRecord? (From: Jeff Schmitz <email@hidden>)

  • Prev by Date: Re: JavaEOGenerator - EOPrototypes and EOGenericRecord?
  • Next by Date: Re: JavaEOGenerator - EOPrototypes and EOGenericRecord?
  • Previous by thread: Re: JavaEOGenerator - EOPrototypes and EOGenericRecord?
  • Next by thread: Re: JavaEOGenerator - EOPrototypes and EOGenericRecord?
  • Index(es):
    • Date
    • Thread