alialdev / projects

Projects
0 stars 1 forks source link

Use an abstract class which entities extend #2

Closed dvt32 closed 2 months ago

dvt32 commented 2 months ago

Some entities share many of the same fields, so it'd be better to have a common abstract class, which they extend (something like a Media class).

More info on how to implement it with JPA/Hibernate: https://www.baeldung.com/hibernate-inheritance

dvt32 commented 2 months ago

Will be included in the next weeks' tasks.

ali-al-fntext commented 2 months ago

I already implemented super classes Media and MediaDto to my code.