mongo vs jpa for hierarchical documents