Re: Java EOGenerator Templates
Re: Java EOGenerator Templates
- Subject: Re: Java EOGenerator Templates
- From: David LeBer <email@hidden>
- Date: Mon, 19 Nov 2007 20:59:59 -0500
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) && (object !
= null) && (!this.isReadOnly()) && (!
object.isReadOnly()) && (!
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