[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-2930) Generate annotations is not adding @Id as it should
Max Rydahl Andersen (JIRA)
jira-events at lists.jboss.org
Sun Oct 19 11:35:20 EDT 2008
Generate annotations is not adding @Id as it should
---------------------------------------------------
Key: JBIDE-2930
URL: https://jira.jboss.org/jira/browse/JBIDE-2930
Project: Tools (JBoss Tools)
Issue Type: Bug
Affects Versions: 3.0.0.beta1
Reporter: Max Rydahl Andersen
Assignee: Vitali Yemialyanchyk
Fix For: 3.0.0.beta1
Running Generate Annotations on
package org.devoxx.model;
public class Customer {
String name;
int id;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
}
results in
package org.devoxx.model;
import javax.persistence.Entity;
@Entity
public class Customer {
String name;
int id;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
}
There should be an @Id annotaiton on the id method/field shouldnt there ?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list