Migration would be easier if you use Spring MongoTemplate (similar to HibernateTemplate). <br>Among its features is support for JPA annotations (although, I'm not sure to what extent).<br>
See more:
[To see links please register here]
You'll need the following:<br>
1. Add spring-data-mongodb JAR to your project (available in maven
central).
2. Add mongo-java-driver JAR to your project (available in
maven central).
3. Use the provided MongoTemplate class in a similar
manner to HibernateTemplate. E.g.:
`mongoTemplate.findById(id, MyClass.class);`<br>
`mongoTemplate.insert(myObject);`
Here's a concrete example with code: [use-spring-and-hibernate-with-mongodb][1]
[1]:
[To see links please register here]