Service Layer in Spring Data
Well if I'd review this I'd add the following:


The Id field in Product could be renamed id to follow java convention
Generally it's a good practice to have equals &amp; hashcode methods overridden.


As for the database connection it depends on which Spring &amp; database you are using, does it happen to be Spring Boot?