Use FQCN entity name for %entity% var (dot separated).

Signed-off-by: Toha <tohenk@yahoo.com>
Better lifecycleCallbacks handling.

Usage:
{d:lifecycleCallbacks}
prePersist: doSomethingOnPrePersist
preUpdate: doSomethingOnPreUpdate
{/d:lifecycleCallbacks}

Signed-off-by: Toha <tohenk@yahoo.com>