wolips/wolips — Issue #50: WOL-962 Warn on foreign key/primary key type mismatch in Entity Modeler
Author: pascalrobert
Created: 2012-01-06 03:08:11+00:00
State: open

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.