Hi Carsten Bleicker, Thanks for the code example! I add a MiddleObject to hold the time constrain. Thus School and MiddleObject has ManyToOne Relation, the Student and MiddleObject has ManyToOne Relation as well.