I'm not even sure this is really a M2M relationship, but I'll describe it and hopefully someone can help with the mapping:
@Entity
public class EntityOne {
    @Id
    private Long id;
    // other properties
}
I need to map this as a parent/child relationships with some additional data that goes along with each row. For example:
parent_entity_one_id  |  child_entity_one_id  |  some_boolean_property
100                   |  200                  |  false
100                   |  201                  |  false
100                   |  202                  |  true
101                   |  300                  |  false
102                   |  301                  |  false
103                   |  302                  |  true
I've tried with some @ManyToMany mappings but that only seems appropriate when the relationship is between 2 entities; like User & Role for example. But I'd like for parent_entity_one_id and child_entity_one_id to be a composite key is possible.
