facebook

Incorrect @OneToMany Error reported

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #278150 Reply

    Bill Shirley
    Member

    This message has not been recovered.

    #278261

    Brian Fernandes
    Moderator

    This message has not been recovered.

    #278265

    Bill Shirley
    Member

    This message has not been recovered.

    #279462

    Bill Shirley
    Member

    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

    #289389

    dkjeldga
    Participant

    Is there a solution to this problem?

    #289446

    Bill Shirley
    Member

    I am using Eclipse 3.4.0 and this problem is no longer manifest.

    I don’t know what version of MyEclipse that corresponds to.
    (I am not using MyEclipse currently.)

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Incorrect @OneToMany Error reported

You must be logged in to post in the forum log in