0

This question have been asked in various forms but none of them seems to answer what I am looking for.

I have been following the example using-spring-data-to-access-mongodb. I need to know how to populate the fields in BaseEntity when the Customer Entity is new? The example does not show how is it populating because I see them NULL in my object and these fields don't get persisted when the object is saved.

The other question is, how would the BaseEntity get populated when Customer object is retrieved from mongodb?

Following links were not helpful

versioning-of-sets-of-documents-in-mongodb

java-mongodb-object-versioning

Community
  • 1
  • 1
java_dude
  • 4,038
  • 9
  • 36
  • 61

0 Answers0