Hi Ken,

You checked the javadoc in ERXModel class, right?

IIRC, EntityModeler may not support extendedPrototypes in the way ERXModel does 
for runtime .... I may be wrong, but I have a vague recollection of 
EntityModeler not recognizing protos the way ERXModel javadoc says, but 
nevertheless all working at runtime.

I have a project using extended prototypes and I use 
EOJDBCMySQLcheetahPrototypes where the model name is 'cheetah' and it works 
fine. The prototypes entity is in the cheetah model itself too.

Turn on DEBUG logging for ERXModel and you should get a lot of console logging 
telling you which prototype entities are being loaded and in what order.

HTH, Kieran

On Sep 5, 2013, at 9:25 PM, Ken Anderson <[email protected]> wrote:

> OK all - I've been pulling my hair out for a while… hopefully someone 
> WOnderful can help out.
> 
> I would like to add a new attribute to the prototypes called 'decimal'.  It's 
> a big decimal (20,8).
> 
> When I load my model in EntityModeler, it has my model, plus the erprototypes 
> model.
> 
> I have tried everything I can think of to add my prototype attribute, but it 
> all fails.
> 
> The doc says that if I do this:
> 
> er.extensions.ERXModel.useExtendedPrototypes = true
> 
> I can just name my prototypes entity in my model something like:
> 
> EOJDBCMySqlCustomPrototypes
> 
> or
> 
> EOJDBCMySql[MODELNAME]Prototypes
> 
> and it will work - but it doesn't.  It either tells me there's no prototype 
> definition for 'decimal', or when I mess with other things like:
> 
> er.extensions.ERXModelGroup.patchModelsOnLoad=true
> er.extensions.ERXModelGroup.flattenPrototypes = false;
> 
> it just crashes:
> 
> Caused by: com.webobjects.foundation.NSForwardException 
> [java.lang.NoClassDefFoundError] Could not initialize class 
> er.extensions.eof.ERXModelGroup:java.lang.NoClassDefFoundError: Could not 
> initialize class er.extensions.eof.ERXModelGroup
> 
> How do I get this to work?
> 
> Thanks,
> Ken
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to