Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-8436

JPA: validation of generic generator annotation isn't performed when it used with id mapping

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.M1
    • 3.2.0.CR1
    • hibernate
    • None

      1) Create mapping field in an entity:
      @Id
      @GenericGenerator(name = "my_generator", strategy = "wrong_strategy")
      private int id2;
      2) Error expected, but nothing is shown.
      3) move @GenericGenerator annotation near @Entity and compare

              dgeraskov Dmitry Geraskov (Inactive)
              dgeraskov Dmitry Geraskov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: