[jbosstools-issues] [JBoss JIRA] (JBIDE-16265) JPA validation reports Strategy class "uuid2" could not be found

Max Rydahl Andersen (JIRA) issues at jboss.org
Tue Sep 2 07:43:00 EDT 2014


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

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

I think it should be sufficient to add list to https://github.com/jbosstools/jbosstools-hibernate/blob/master/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/java/JavaDbGenericGeneratorImpl.java#L63

optimally differentiate pr hibernate version.

> JPA validation reports Strategy class "uuid2" could not be found
> ----------------------------------------------------------------
>
>                 Key: JBIDE-16265
>                 URL: https://issues.jboss.org/browse/JBIDE-16265
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: hibernate
>    Affects Versions: 4.1.1.CR1
>            Reporter: Jim Boettcher
>            Priority: Minor
>             Fix For: 4.2.0.CR1
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jbosstools-issues mailing list