I am using Morphia to interact with MongoDB.
Whenever I try to persist nested objects it is not saving it to DB.
It works fine with primitive data but is failing whenever it comes to nested object.
My annotations are correct, data within the object is correct. Unable to find the error.
Here is the basic layout of my persistable.
@Entity("Trade")
class Trade {
@Property("party")
Party party;
}
@Entity("Party_ref")
class Party {
@Property("name")
String name;
}
I want to understand where and what am I doing wrong. I did everything according to the documentation.
New contributor
mandar shinde is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.