Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-3466

@UserRoles only works when using one ManyToMany-Relation instead of two OneToMany-Relations

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.1.0.BETA1
    • Fix Version/s: 2.1.0.GA
    • Component/s: Security
    • Labels:
      None
    • Environment:

      EJB 3.0, JBOSS 4.2, SEAM 2.1, RichFaces (3.2)

      Description

      @UserRoles only works in ManyToMany-Relation.

      If we provide two @OneToMany-relations instead of one @ManyToMany, then @UserRoles does not work!

      The UserRolesProperty returns the UserRoles-Instance instead of the Roles-Instance.

      However, when having additional attributes in UserRoles we should better use two @OneToMany-Relations -
      but then @UserRoles does not work.

      As Shane said:
      "I don't think that we currently support cross reference tables in this manner, although we should. "

      Yes, it would be fine

      thanks.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                shane.bryzak Shane Bryzak
                Reporter:
                nimo22 nimo stephan
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: