Hi guys,

I'm new to spring and I'm trying to setup an MVC project with JPA.

Every tutorial regarding MVC that I have found is rather simple (meaning that there is no database).

Now, I have 2 ideas.

The first one is to create one MVC project and put all my packages in this project. Unfortunately, in this approach, STS doesn't let me add Entities since this is not a JPA project.

My second approach is to create 4 seperate projects (one for domain, one for persistence, one for service and one for MVC), but again I cannot understand what kind of "template" projects I need to use for each one of them.

Thank you for your help.