Class AssignmentDao


  • public class AssignmentDao
    extends Object
    Assignment persistence

    Note : Most of database operations are handled by managed entities and cascade.

    Author:
    maxence, sandra
    • Constructor Detail

      • AssignmentDao

        public AssignmentDao()
    • Method Detail

      • persistAssignment

        public void persistAssignment​(Assignment assignment)
        Persist a brand-new assignment to database
        Parameters:
        assignment - the new assignment to persist
      • deleteAssignment

        public void deleteAssignment​(Assignment assignment)
        Delete the assignment from database. This can't be undone
        Parameters:
        assignment - assignment to remove