Announcement Announcement Module
Collapse
No announcement yet.
finder in many-to-many rel Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • finder in many-to-many rel

    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
Working...
X