Example #1
0
 /**
  * Constructs the entity Room and initializes only the required attributes (i.e. the fields which
  * are neither nullable nor have a default value)
  *
  * @param _number The Roomnumber has not to be unique. It is an alternative name for the Room.
  * @param _building The Buildingname is unique and represents a location where the Room is.
  * @since Iteration2
  */
 Room(RelationManager manager, String _number, Building _building) {
   this.manager = manager;
   this._number = _number;
   this.fetched_number = true;
   this._building = _building;
   this.ref_building = _building.id();
   this.fetched_building = true;
 }
Example #2
0
 /**
  * Constructs the entity Room and initializes all attributes.
  *
  * @param _name The Roomname is unique per Building and identifies the Room in this Building.
  * @param _number The Roomnumber has not to be unique. It is an alternative name for the Room.
  * @param _building The Buildingname is unique and represents a location where the Room is.
  * @since Iteration2
  */
 Room(
     RelationManager manager,
     final boolean full,
     String _name,
     String _number,
     Building _building) {
   if (!full) {
     this.manager = null;
   } else {
     this.manager = manager;
     this._number = _number;
     this.fetched_number = true;
     this._building = _building;
     this.ref_building = _building.id();
     this.fetched_building = true;
   }
 }