for (final Class< ? > entityClass : HibernateEntities.HISTORY_ENTITIES) {
log.debug("Adding class " + entityClass.getName());
config.addAnnotatedClass(entityClass);
}
final PluginsRegistry pluginsRegistry = PluginsRegistry.instance();
pluginsRegistry.loadPlugins();
for (final AbstractPlugin plugin : pluginsRegistry.getPlugins()) {
final Class< ? >[] persistentEntities = plugin.getPersistentEntities();
if (persistentEntities != null) {
for (final Class< ? > entity : persistentEntities) {
log.debug("Adding class " + entity.getName());