Re: How to handle relationship properties?
Re: How to handle relationship properties?
- Subject: Re: How to handle relationship properties?
- From: Miguel Arroz <email@hidden>
- Date: Tue, 3 Jan 2006 23:47:20 +0000
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.
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!
Yours
Miguel Arroz
"I felt like putting a bullet between
the eyes of every Panda that wouldn't
scr*w to save its species." -- Fight Club
Miguel Arroz
http://www.ipragma.com
_______________________________________________
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