Postgresql Table Inheritance Example In Java