• 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: Java EOGenerator Templates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java EOGenerator Templates


  • Subject: Re: Java EOGenerator Templates
  • From: Jonathan Miller <email@hidden>
  • Date: Mon, 19 Nov 2007 16:07:21 -1000

Thanks David,

Any chance, someone has already done the work to produce a pretty vanilla a la WO 5.3 template?



On Nov 19, 2007, at 3:59 PM, David LeBer wrote:


On 19-Nov-07, at 8:26 PM, Jonathan Miller wrote:

Hi,

Is anyone else having problems with the output?

Here is what I'm seeing.

For some reason it is appending .base to the package name e.g. xxx.xxx.xxx.base

Also, it seems to be creating java files with compile errors. In particular I'm seeing a lot of errors where it is creating the same method twice with different functionality e.g.

public void addToKeywordss(com.mauionline.paradise.ActivityKeywords object) {
this.includeObjectIntoPropertyWithKey(object, "keywordss");
}


public void addToKeywordss(com.mauionline.paradise.ActivityKeywords object) {
if (logger.isDebugEnabled()) {
if ((this.editingContext() != null) &amp;&amp; (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("addToKeywordss exception " , exception);
}
}
}
this.includeObjectIntoPropertyWithKey(object, "keywordss");
}


I downloaded JavaEOGenerator today from Apple's website. I'm using the templates Apple provided. Eclipse 3.3.1.1 WOLIPS 3.3.4643

Am I missing something?

Yeah, the templates provided with JavaEOGenerator are examples only and not really ready for production.


They are mostly there but have a couple of oddities (the one you mentioned and the need to have a FetchSpec defined with a given name - which I've conveniently forgotten - for each of your entities).

So, read through them, delete or modify what doesn't make sense and you should be fine.

;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



_______________________________________________ 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: Java EOGenerator Templates
      • From: David LeBer <email@hidden>
References: 
 >Java EOGenerator Templates (From: Jonathan Miller <email@hidden>)
 >Re: Java EOGenerator Templates (From: David LeBer <email@hidden>)

  • Prev by Date: Re: Java EOGenerator Templates
  • Next by Date: Re: Java EOGenerator Templates
  • Previous by thread: Re: Java EOGenerator Templates
  • Next by thread: Re: Java EOGenerator Templates
  • Index(es):
    • Date
    • Thread