[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-3960) Invalid "Duplicate" errors

Max Rydahl Andersen (JIRA) jira-events at lists.jboss.org
Fri Mar 6 11:49:22 EST 2009


    [ https://jira.jboss.org/jira/browse/JBIDE-3960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12455944#action_12455944 ] 

Max Rydahl Andersen commented on JBIDE-3960:
--------------------------------------------

package org.test;

import java.io.Serializable;
import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * Entity implementation class for Entity: Customer
 *
 */
@Entity
@NamedQueries({
	@NamedQuery(name = "SOMETHING", query = "From Customer")
}
)
public class Customer implements Serializable {

	
	private static final long serialVersionUID = 1L;

	public Customer() {
		super();
	}
   
	@Id
	@GeneratedValue
	int id;
	
	String name;
}


is enough to make it happen.

And yes it seems to only be for Hibernate.



> Invalid "Duplicate" errors
> --------------------------
>
>                 Key: JBIDE-3960
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-3960
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>    Affects Versions: 3.0.0.CR2
>         Environment: 3.0.0 nightly N200903052231
>            Reporter: Juergen Zimmermann
>         Attachments: screenshot-1.jpg, screenshot-2.jpg
>
>
> The Java editor shows tons of invalid errors like
> a) Duplicate generator named "..."
> b) Duplicate query named.
> These invalid errors are new. They are not present when using JBossTools 3.0.0.cr2. Also they are not present when using Eclipse 3.4.2, WTP 3.0.4 and the "Generic platform" for the JPA facet.
> I'll provide 2 screenshots to illustrate the bad usability.

-- 
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