fixed issues in database related templates:

- wrong database name prefix for column name of embedded types (added corresponding test)
- renamed public method "getDatabaseName(NamedElement)" in base class which is also defined in extension class (so this base class can't be called from within a template by accident)
- fixed missing package name for a type in HibernateTemplate (compile error if if code formatter auto-import is disabled)
activated Hibernate4 in library example and removed obsolete stuff