Re: How to handle relationship properties?
Re: How to handle relationship properties?
- Subject: Re: How to handle relationship properties?
- From: Chuck Hill <email@hidden>
- Date: Tue, 3 Jan 2006 15:51:29 -0800
On Jan 3, 2006, at 3:47 PM, Miguel Arroz wrote:
Hi!
On 2006/01/03, at 23:33, Chuck Hill wrote:
Assuming that you are using packages, I'd would say that the
class name (com.foo.bar.AccountUser) is _never_ the entity name.
The key concept here is that one class can implement many
entities. What I do is to use EOGenerator (from the DBEdit folks,
also check out EOReporter) to generate the java files and add a
line like this:
public static final String ENTITY_NAME = "AccountUser";
Did you alter the template to add that line automatically? I
already created a 531 template to fiz the Number VS Boolean
problem, I might try to see if it's possible to do this.
Yes, add this:
public static final String ENTITY_NAME = "<$name$>";
There is an old saying in EOF, "If you are writing code, you are
doing it wrong." The truth is probably closer to "If you are
writing more than two or three lines of code, you are doing it
wrong."
Yeap, I forgot that sating... that was one reason I decided to
REALLY learn WO... this is important, specially after creating lots
of classes, XML files, and such, just to tell Struts to say Hello
World... ;) The second reason is that WO is Cocoa for the Web, and
Cocoa rocks!
Amen.
Chuck
--
Coming in 2006 - an introduction to web applications using WebObjects
and Xcode http://www.global-village.net/wointro
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/practical_webobjects
_______________________________________________
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