[jboss-user] [JBoss Tools] - Error on @GeneratedValue validation
edersondonde
do-not-reply at jboss.com
Mon Jan 21 06:46:04 EST 2013
edersondonde [https://community.jboss.org/people/edersondonde] created the discussion
"Error on @GeneratedValue validation"
To view the discussion, visit: https://community.jboss.org/message/793215#793215
--------------------------------------------------------------
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, https://issues.jboss.org/browse/JBIDE-3454 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
[https://community.jboss.org/message/793215#793215]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130121/aad43f1a/attachment.html
More information about the jboss-user
mailing list