- Fixed mapping of the enum colum in MySQL
  into correct mapping of Hibernate.
- Using hibernate criteria API to select elements.