Announcement Announcement Module
Collapse
No announcement yet.
Inherit audit annotation Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Inherit audit annotation

    I have 2 classes ClassA <-- ClassB
    ClassB inherits from ClassA.

    In ClassA, I annotated 2 getter methods with @CreatedDate and @LastModifiedDate. When I use ClassBRepository (which inherits from JpaRepository) to save ClassB, I'm getting constraint violation exception since my fields createdDate and modifiedDate are not populated.

    Please advise.

    Thanks
Working...
X