PR for #35 ,Add option for sending emails to new participants only, the change are:
Add a new button in study-detail page(and the associate .html and .ts).
A new table is create to store the list of email address that the study have sent invitation email to.
Study class have a new Set for saving the list of email address that the study have sent invitation email to. This Set is mapped by @ElementCollection into the table in 2.
StudyServce class's sendInvitationEmail() take the necessary information from study only instead of receiving the whole Study object.
StudyResource has two @PUT resource to handle send emails to all participants and send emails to new participants instead of just one.
A new @PUT for updating the list of email address that the study have sent to and for updating the table I mention in 2.
In study-component page, the "Send Invitation" button is link to the "View" button, which is, they are doing the same thing now as "Send Invitation" should provide the options for sending to all participants or to new participants only.
PR for #35 ,Add option for sending emails to new participants only, the change are: