79189417

Date: 2024-11-14 15:27:45
Score: 1
Natty:
Report link

Model classes should generally be final.

Abstract classes are incomplete classes with few method implementations pending.

If you want an Entity which is abstract, you are perhaps trying to implement some feature on top of your entity.

You can do that, but it wouldn't be advisable. Those logics you can be put inside a service class which will perform the CRUD operation. This fulfils "Single Responsibility" principle

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Anubhav Sharma