On 31 Oct 2006, at 21:26, Baiss Eric Magnusson wrote:

I'm assuming you're using EOGenerator and generating 2 different class files, right? That's really the best way to do it, then you add your variables in the non underscore class. I do this all the time.


No I don't use EOGenerator and generate 2 different class files, is there any more on that, examples, etc.

You don't need EOGenerator to do this, I have done it by hand since before EOGenerator.

Step 1: use EOModeler to create a java file as as YourClass.java
Step 2: edit YourClass.java to "extend _YourClass"
Step 3: remove all the accessors, and replace with your business logic

Step 4: use EOModeler to generate _YourClass.java
Step 5: edit _YourClass.java to be "_YourClass extends EOGenericRecord" and the constructor to be called _YourClass

Repeat steps 4 and 5 as you update your eomodel. Edit YourClass.java as you revise your business logic.

EOGenerator does this - and more.

Paul



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to