I added the following code in Application.java to solve this problem
public Application() {
super();
NSSelector<NSNotification> connSelector = new
NSSelector<NSNotification>("doPatchAuditTrail", new Class[]
{NSNotification.class});
NSNotificationCenter.defaultCenter().addObserver(this, connSelector,
EOModelGroup.ModelAddedNotification, null);
}
public final void doPatchAuditTrail(NSNotification n) {
EOModel model = ((EOModel)n.object());
if ( !"ERCoreBusinessLogic".equals(model.name()) ) return;
EOEntity e = model.entityNamed(ERCAuditTrailEntry.ENTITY_NAME);
e.attributeNamed(ERCAuditTrailEntry.Key.NEW_VALUES).setWidth(4000);
e.attributeNamed(ERCAuditTrailEntry.Key.OLD_VALUES).setWidth(4000);
}
On 09/07/2013, at 11:53 PM, Theodore Petrosky wrote:
> i have run into a wall. the oldValues as well as newValues are hard coded to
> a varchar size 1000.
>
> I will never use this on anything other than Postgresql and the docs say the
> there is no penalty for using a column type of 'text', effectively no limit.
> But I will have to alter the model.
>
> I can update the backend and change the column to type text, but is there a
> way to trick the model with out cloning the whole thing?
>
> Ted
> _______________________________________________
> 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/tim%40triptera.com.au
>
> 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]