[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-2930) Generate annotations is not adding @Id as it should
Vitali Yemialyanchyk (JIRA)
jira-events at lists.jboss.org
Mon Oct 20 10:49:21 EDT 2008
[ https://jira.jboss.org/jira/browse/JBIDE-2930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vitali Yemialyanchyk resolved JBIDE-2930.
-----------------------------------------
Resolution: Done
Assignee: Anton Klimkovich (was: Vitali Yemialyanchyk)
> 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
More information about the jbosstools-issues
mailing list