Many to many relationship hibernate with join on non-primary column hibernate <p>I have 4 tables -</p> <ol> <li>ABU (columns- Key,Name) PK - Key</li> <li>Project(columns- Key,Name) PK - Key</li> <li>Journal Line(columns -Key,Name,LOB) PK- Key</li> <li>ABU-LOB-Group(columns- ABU Key,Project Key,LOB,other columns) PK- ABU Key,Project Key,LOB</li> </ol> <p>How can i create the pojo for last table (which is the join table) in Hibernate for this.</p>