You'll have to translate the instructions to the new tools. You now need to set this up in the .eogen file.

1) Open it and scroll all the way to the bottom to the "Defines" section
2) Click "Add"
3) Make the name of the variable "EOGenericRecord" (not EOSuperclass as it says in the book, because the templates that come with WOLips are already setup to look for "EOGenericRecord" so it's less work) 4) Make the value of the variable the name of your custom superclass, including it's package (your.app.CopyableGenericRecord).

Done.

On a related note, consider using "MyGenericRecord" (or similar) instead of "CopyableGenericRecord" since as you go there will likely be other things you'll add to your custom superclass besides the copyable stuff.

Dave

On Jun 24, 2008, at 10:49 PM, Jeff Schmitz wrote:

I was having one problem getting the velocity generator to generate my model classes as extensions of my custom superclass (CopyableGenericRecord) as described in the book.

Specifically, where it says to:

define the superclass name with:

-define-EOSuperclass CopyableGenericRecord

Where, exactly, does this line need to be added so that EOGenerator picks it up?

Thanks,
Jeff

On Jun 23, 2008, at 5:43 PM, David Avendasora wrote:

That's what I did for the EOCopyable stuff too. It works great. Let me know if you have any issues getting it working.

I know that the Wonder team is working on incorporating the same functionality too, but I don't know when it will be released.

Dave

On Jun 23, 2008, at 5:59 PM, Jeff Schmitz wrote:

They are in packages form. I only need a couple of the files (the EOCopyable stuff), so I think I'm going to just add the source to my project and use them from there.

Thanks,
Jeff
On Jun 21, 2008, at 8:14 PM, Greg Hulands wrote:

Do you see the source in packages form or just folders?

If it is jut folders, then you'll need to modify the java build path and add the folder as a source folder.

greg

On 21/06/2008, at 6:43 AM, Jeff Schmitz wrote:

Hello,
I've tried to import the practical webobjects utilities framework project per instructions of pgs 335-336 of the book, but when I use the WOLips Ant Tools->Install command on the build file to install it, I get the following warning:

Warning: skipping jar archive /Library/Frameworks/ PracticalUtilities.framework/Resources/Java/ practicalutilities.jar because no files were included.

when I look at the practicalutilites.jar produced, it seems to be an empty jar (it's 4kb in size). Any ideas? I can see all the source files in the WOLips project within the src project folder.

Thanks,
Jeff

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

This email sent to [EMAIL PROTECTED]


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

This email sent to [EMAIL PROTECTED]







_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
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