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

JPA validation reports Strategy class "uuid2" could not be found

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 4.2.0.CR1
    • 4.1.1.CR1
    • hibernate

      An Entity class with the following:

      @Id
      @GeneratedValue(generator = "system-uuid")
      @GenericGenerator(name = "system-uuid", strategy = "uuid2")
      @Column(name = "id", unique = true)
      private UUID id;

      gives the error:
      Strategy class "uuid2" could not be found

      changing the strategy to "uuid" will clear the error.

      My Project Facet has JPA 2.0

      The JPA configuration has:
      Platform: Hibernate (JPA 2.0)
      JPA implementation:
      Disable Library Configuration

      the Hibernate jars are on the project classpath

            manderse@redhat.com Max Andersen
            jimbo07_jira Jim Boettcher (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: