hibernate java config works