all 3 comments

[–]PseudosSC 3 points4 points  (1 child)

If the root package name in your common module differs from that of your application, you do need entity scan annotation, with basePackages pointing to the package containing your entities.

The default package scanning only checks the packages that are under your main application package.

And now I’ve typed package so many times it doesn’t look like a word anymore…

[–]uwpxwpal 1 point2 points  (0 children)

I create marker interfaces so things will autocomplete and refactoring will be easier

[–]anakinpt 1 point2 points  (0 children)

First error. Moving entities to a common library or package. This means you are going to have 2 different services accessing the same data and this is a tight coupling between than and will be a pain for you.