[
https://jira.jboss.org/jira/browse/JBIDE-2930?page=com.atlassian.jira.plu...
]
Vitali Yemialyanchyk commented on JBIDE-2930:
---------------------------------------------
should be:
...
@Id
@GeneratedValue
int id;
...
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: Anton Klimkovich
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