JBoss Community

Error on @GeneratedValue validation

created by edersondonde in JBoss Tools - View the full discussion

Hello all,

 

I'm using JBoss tools 4.0.0 on Eclipse Juno, and I'm having a validation problem. Making it fast, here is the simplified code:

 

{code}

@Entity

public class ClassA {

 

    @Id

    @GenericGenerator(name="testGen", strategy="identity")

    @GeneratedValue(generator="testGen")

    private Integer id;

    private String name;

 

}

{code}

 

Well, the @GeneratedValue line is giving a validation error, "No generator named "testGen" is defined in the persistence unit". I saw some old bug on JBoss Tools that looks related, JBIDE-3454, that should be fixed on 3.3, but it looks like it is back on 4.0.0. Am I missing something?

 

The test project is attached

Reply to this message by going to Community

Start a new discussion in JBoss Tools at Community