Used the wrong dialect in the postgres hibernate config.