Faced an interesting error while accessing postgres table with a simple java code.
"select * from User"
A little googling revealed that if you are using multicase table name (U is caps), you will need to give the table name in quotes.
A better fix would be to always use lower case characters when declaring tables in postgres.