Wednesday, June 05, 2013

Hibernate - specifying multiple packageToScan in configuration

After placing my hibernate entity in a different jar file, i notice that some of my tables are not created. Finally i figureout that it has to do with my hibernate configuration, specifically packageToScan attribute.

With this i can specify multiple jar files that host my hibernate entities (table).