1

i want set some fields, like updateDate, createDate and deleteDate, for each my entities, so i thought to inherit my entities from a @MappedSuperClass that contains this properties.

Is this a good pratice?

In what way you work for this kind of request?

Thanks.

blow
  • 12,811
  • 24
  • 75
  • 112

1 Answers1

2

Yes this is what I do. I have a "BasicEntity" abstract class that is the superclass of all my entities and has fields like id, creationDate, uuid and implementations of hashCode and equals etc.

Piotr
  • 4,813
  • 7
  • 35
  • 46