Hi Pierre,

        Thanks for your help.

1- I would really suggest that you place you code in a package, this is very strongly recommended by the Java language.

No problem. I did that and it still shows up in my generated EOs:
package ${entity.packageName};

Here's the strange part, I've edited the _Entity.java and removed the following line but the package still shows up.
package ${entity.packageName};
I can't figure out where EOGenerator is picking up its template files.

2- I have fond that problem too in the default templates open you eogen file and at the bottom define a variable EOGenericRecord with value EOGenericRecord. This looks silly but it is done so that you can have you own sub class of EOGenericRecord.

Oh, that helps! Thanks. I'm getting closer.

3- Which version of WebObjects are you using? You need WebObjects 5.4 or better for generics to work.

Ok, right – I forgot that. I've been using a script to switch between WO 5.3 & WO 5.4. Using 5.4, this problem goes away.

So, I'm very close. But, I still get this as my first line:
package ${entity.packageName};

Perhaps I'm not setting the package or variable correctly?

- Joe

On Jan 26, 2008, at 22:35:22, Mr. Pierre Frisch wrote:

Hi Joe,

1- I would really suggest that you place you code in a package, this is very strongly recommended by the Java language. 2- I have fond that problem too in the default templates open you eogen file and at the bottom define a variable EOGenericRecord with value EOGenericRecord. This looks silly but it is done so that you can have you own sub class of EOGenericRecord. 3- Which version of WebObjects are you using? You need WebObjects 5.4 or better for generics to work.

Pierre
--
Pierre Frisch
[EMAIL PROTECTED]


On Jan 26, 2008, at 21:05, Joe Moreno wrote:

Hi All,

I've followed the instructions here, but my generated files need some clean up to compile:
http://wiki.objectstyle.org/confluence/display/WOL/Velocity+EOGenerator+(Veogen)


Specifically, my generated _EO files have three errors that I can see:

1.
package ${entity.packageName};
I'd like the entities in the default package or at least not $ {entity.packageName}

2.
public abstract class _Customer extends ${EOGenericRecord} {
This should be EOGenericRecord not ${EOGenericRecord}

3.
For some reason, the compiler doesn't think that NSArray can be a generic (screen shot):
<pastedGraphic.png>

My EO file has one error:
package $entity.packageName;

Any help is greatly appreciated.

Thanks,
Joe
_______________________________________________
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/pierre%40apple.com

This email sent to [EMAIL PROTECTED]


 _______________________________________________
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