Ejemplo n.º 1
0
 /**
  * Constructs the entity Timeslot and initializes only the required attributes (i.e. the fields
  * which are neither nullable nor have a default value)
  *
  * @param _day The Day on which the Timeslot will be placed.
  * @param _startingTime Time on which the COurseElementInstance will begin.
  * @since Iteration2
  */
 Timeslot(RelationManager manager, Day _day, java.sql.Time _startingTime) {
   timekey(true);
   this.manager = manager;
   this._day = _day;
   this.ref_day = _day.id();
   this.fetched_day = true;
   this._startingTime = _startingTime;
   this.fetched_startingTime = true;
 }
Ejemplo n.º 2
0
 /**
  * Constructs the entity Timeslot and initializes all attributes.
  *
  * @param _day The Day on which the Timeslot will be placed.
  * @param _startingTime Time on which the COurseElementInstance will begin.
  * @since Iteration2
  */
 Timeslot(RelationManager manager, final boolean full, Day _day, java.sql.Time _startingTime) {
   timekey(true);
   if (!full) {
     this.manager = null;
   } else {
     this.manager = manager;
     this._day = _day;
     this.ref_day = _day.id();
     this.fetched_day = true;
     this._startingTime = _startingTime;
     this.fetched_startingTime = true;
   }
 }