Better support for hibernate package scanning. Simply add hibernate.properties file to root of classpath and add scanPackage=com.example as line.