[java] fix module override
[java] read hibernate configuration from file