Bugfixing (the type for publicFlag must be number, Hibernate complaints
otherwise).