Agent detail is now shown in estate details

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2017-04-19 15:14:20 +02:00
parent b862fad103
commit a124303c7f

View File

@ -235,6 +235,8 @@ public class Main {
System.out.println("PostalCode: " + estate.getPostalCode()); System.out.println("PostalCode: " + estate.getPostalCode());
System.out.println("City: " + estate.getCity()); System.out.println("City: " + estate.getCity());
System.out.println("SquareArea: " + estate.getSquareArea()); System.out.println("SquareArea: " + estate.getSquareArea());
EstateAgent agent = _orm.getAgent(estate.getAgent());
System.out.println("Agent: " + agent.getName());
if (estate instanceof House) { if (estate instanceof House) {
House house = (House) estate; House house = (House) estate;
System.out.println("Price: " + house.getPrice()); System.out.println("Price: " + house.getPrice());