[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-3795) Hibernate Config view cannot create JPA based configuration with @GeneratedValue using a @GenericGenerator

Max Rydahl Andersen (JIRA) jira-events at lists.jboss.org
Wed Sep 14 09:05:26 EDT 2011


    [ https://issues.jboss.org/browse/JBIDE-3795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12628375#comment-12628375 ] 

Max Rydahl Andersen commented on JBIDE-3795:
--------------------------------------------

not blocking M3

> Hibernate Config view cannot create JPA based configuration with @GeneratedValue using a @GenericGenerator
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-3795
>                 URL: https://issues.jboss.org/browse/JBIDE-3795
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: hibernate
>    Affects Versions: 3.0.0.CR2
>         Environment: Hibernate Tools 3.2.4.GA-N200902101801, Java Persistence API Tools 2.1.0.v200812180210
>            Reporter: Bob Thule
>            Assignee: Dmitry Geraskov
>             Fix For: 3.3.0.M4
>
>         Attachments: generator-not-found.png, generator.PNG, GenericGeneratorProblem.zip
>
>
> 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

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list