Constructor for subclasses

Added constructors to House, Apartment, TenancyContract and
PurchaseContract to make a special instance from an instance of its
superclass.
Updatet cli.bat.
Added Contract to Orm.getAll(Type)
This commit is contained in:
Togepy95
2017-04-20 16:15:52 +02:00
parent 7c4a6a7dbe
commit e75ebc9337
7 changed files with 56 additions and 5 deletions

View File

@ -55,6 +55,9 @@ public class ORM {
case ESTATE:
objects = processEstates(rs);
break;
case CONTRACT:
objects = processEstates(rs);
break;
}
rs.close();
pstmt.close();