Fixed: spring-persistence.xml connected to other config files
Added properties and getters\setters for all domain classes
Added hibernate mapping (using persistence annotation) for
all domain classes
Link tables replaced with link classes (UserCommentMark,
UserPostMark)
Added link classes to scaned files in spring-persistence.xml;
Configured hibernate for auto-creating database schema using domain classes
Dao classes extends Spring HibernateDaoSupport
Declared Dao beans with injected SessionFactory