Please check you're running on the right schema. Under Postgresql the
default schema must be specified as public. Also check that your
project name have the same name as the database you're attempting to
connect. cp /usr/share/java/postgresql-jdbc2-7.3.jar /usr/lib/j2se/1.4/jre/lib/ext/
Please check you've a valid jdbc driver in your classpath.
A possible way to get a system-wide jdbc driver is to copy the driver in the
jre/lib/ext directory of your $JAVA_HOME.
You used some inheritance links. As we are in the database world,
the way to deal with inheritance may be let to the developper
responsability. NO may suggest you to move all the table to the parent
class and to add to it a class-type column.