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

Hibernate Config view cannot create JPA based configuration with @GeneratedValue using a @GenericGenerator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.M3
    • 3.0.0.CR2
    • hibernate
    • None

      This may be related to issue JBIDE-3636. https://jira.jboss.org/jira/browse/JBIDE-3636

      With a @GenericGenerator declared as:
      @GenericGenerator(name = "SeqBase",... ) //either in package-info.java or on the class

      and used with:
      @GeneratedValue(generator = "SeqBase") private Long id;

      when in the "Hibernate Config" view and the hibernate configuration is trying to be displayed or rebuilt, Eclipse gives the following exception:
      org.hibernate.console.HibernateConsoleRuntimeException: Could not create JPA based Configuration
      Could not create JPA based Configuration
      <No message>
      java.lang.reflect.InvocationTargetException
      java.lang.reflect.InvocationTargetException: <no message>
      java.lang.reflect.InvocationTargetException
      javax.persistence.PersistenceException: org.hibernate.AnnotationException: Unknown Id.generator: SeqBase
      org.hibernate.AnnotationException: Unknown Id.generator: SeqBase
      org.hibernate.AnnotationException: Unknown Id.generator: SeqBase
      Unknown Id.generator: SeqBase

        1. generator.PNG
          generator.PNG
          29 kB
        2. generator-not-found.png
          generator-not-found.png
          160 kB
        3. GenericGeneratorProblem.zip
          7.77 MB

            jpeterka_jira Jiri Peterka (Inactive)
            bobthule Bob Thule (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: