As stated in wiki, database creation is automatically created the first run. Also you can generate this schema creation script with a few java lines. Search the forum or take a look at Test.java from OpenKM source repository. Also you should check more info in a Hibernate forum if you want more knowledge.