Class Batch

java.lang.Object
example.app.entities.compartments.Batch
All Implemented Interfaces:
FileDatabaseCompatible, Serializable

public class Batch extends Object implements Serializable, FileDatabaseCompatible

Class Batch

This class represent a batch.
  • Id: UUID v4 that is immutable after assignment
  • Name: Name of the batch
  • Description: Description of the batch (optional)
  • Start Date and End Date: Start date and end date of the batch. Start date always needs to come before the end date
  • Duration: Duration of the batch in days. Duration have to be greater than zero
  • Course: Course that has been assigned to the batch
  • Creation Date: Date and time on which the batch was created. It's immutable
  • Assigned Faculties: A list of faculties that has been assigned to the batch
  • For two batches to be same, only name, start and end date, course needs to be equal
See Also: