The ManyToMany-Annotation is meant for "plain" relationships, without any additional information.
I would recommend to do it like this:
- Create a new Persistent Entity Class (i.e. "TableABCRelationship")
- Link all three existing entity classes to the new entity class, using three OneToMany-Annotations at the existing classes and three ManyToOne-Annotations in your new class
- Add the additional field "attribute" in your new entity class
- Change all existing references
Depending on your existing code, it might be some effort to refactor everything...