LDEV-3300: Save Q&A questions before saving the parent object because if Hibernate decides to save Conditions first, some question could be not saved yet and it will trigger "non-transient object not saved" error.
LDEV-3304* added tablesorter paging due to "Q&A "all answers" page takes minutes to load when there are a lot of responses left by other users"* slightly optimized export content
LDEV-3304* added tablesorter paging to QA monitor* slightly optimized export content* fixed problem with displaying non-latin letters in tablesorter* fixed problem with incorrect display jRating for all items except the last one
LDEV-3293: Use the new Spring's support for Hibernate 4 instead of Hibernate 3. Switch from using HibernateDaoSupport.getSession() to its getSessionFactory().getSession(). The latter is sure to close the session automatically while a session returned by the first method should be closed manually. Theoritecally we do it in OpenSessionInViewFilter, but it may not be always the case, leading to open Hibernate session being left behind.
LDEV-3293: Cast DAO methods' results to their return type.Java 8 is more restrictive about generics. Hibernate find() methods returns List<?> and it can not be quietly cast to List<SomeClass>. Each occurence was explicitly casted and warnings about the type being unchecked were supressed.