wocommunity / wolips

wolips
53 stars 53 forks source link

WOL-962 Warn on foreign key/primary key type mismatch in Entity Modeler #50

Open pascalrobert opened 12 years ago

pascalrobert commented 12 years ago

Reported by Michael Sharp

Wonder recently started throwing runtime exceptions in the case of a foreign key type not matching the target type, eg:

"java.lang.RuntimeException: The attribute personId in Person (java.lang.Number, i) is a foreign key to personId in Role (java.lang.Number, l) but their class names or value types do not match. If this is actually OK, you can set er.extensions.ERXModelGroup. Person.personId.ignoreTypeMismatch=true in your Properties file"

It would be helpful to have warnings raised in Entity Modeler to highlight these cases.