Hi to all,
i'm new on spring and roo.
This is my problem:

in entityA:
field set --fieldName preferences --type com.bela.sencdc.domain.Preference --class com.bela.sencdc.domain.Contact

in entity2:
field set --fieldName contacts --class com.bela.sencdc.domain.Preference --type com.bela.sencdc.domain.Contact --mappedBy preferences

and then
finder add --finderName findContactsByPreferences

but i have this error when i search in UI by preferences: java.lang.String cannot be cast to com.bela.sencdc.domain.Preference

Why?
What i wrong?

Thanks to all.
Bel