On Nov 24, 2009, at 2:17 PM, Anjo Krank wrote:

Not really sure of the messages can be useful, tough, as they use the name of the constraint:

ERROR:  duplicate key value violates unique constraint "bb"

and not the key (postgres). So the end user probably won't know about this. But it may still be better than a real exception.

Run the constraint name + entity name through the "validation exception to nice message" part of Wonder.

e.g.
LoginUser.uniqueUserName = "You have already registered under this user name."

Where uniqueUserName is the constraint name.


Chuck


Am 24.11.2009 um 22:18 schrieb Anjo Krank:


Am 24.11.2009 um 21:27 schrieb Chuck Hill:
The last I found about it (from May, 2008) was a discussion about using an ERXEC delegate, which in turn would use the DB specific ERXSQLHelper.

Did anyone ever actually implement this?

Yes.

What he said :P

But there are no implementations for subclasses so far. Patches and ideas welcome.

Cheers, Anjo
_______________________________________________
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/anjo %40krank.net

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/chill%40global-village.net

This email sent to [email protected]

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________
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