There are several ways to reprogram the databases to create entity classes, one of the first results from Google shows this blog , but you can find quite a lot of information. Also, if you intend to use sleep mode, check out the ddl2hbm tools, which is basically the same idea.
source share