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
|