i have been researching on this topic and havent found any answers yet. Im using spring roo and i would like to know if theres a way I can establish a many-to-many relations
Why can't you have a separate entity to denote your relationship?
Just introduce a new entity called a MedicalEquipmentReservation
which would contain all the attributes of the reservation along with the relationships between the Employee and the Medical Equipment entities.
See the following example.
class MedicalEquipmentReservation{
//attributes
Date reservationStartDate;
Date reservationEndDate;
//relationships
Employee employee;
Set equipments; //assuming more than one equipment can be borrowed at one reservation
}
Cheers and all the best with Spring Roo!