HibernateDB with examples with mysql jdbc. Mapping, constraints, relations