I am still receiving this error.
I can provide a MyEclipse screen shot if anyone wants one.
Here’s what it boils down to:
import java.io.Serializable;
import java.util.Set;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
@Entity
public class Foo
implements Serializable {
@Id // Foo table contains fooId column
@GeneratedValue
private long fooId;
@OneToMany() // creates Foo_Role table w/ Foo_fooId and roles_roleId
private Set<Role> roles;
@OneToMany()
[b]@JoinColumn() // adds otherRoles_fooId to Role table - ERROR REPORTED:
// "join column otherRoles_roleId cannot be found on the table Foo_Role[/b]
private Set<Role> otherRoles;
}
It deploys (to JBoss) and runs fine. But annoying provides this error. (marking the class, package, and project in error – which makes it a little slower to catch my actual errors)
MyEclipse Version: 6.0.0 GA
Build id: 6.0.0-GA-200708