extract Coord3DType from HibernateDemo and add tests for it