I've noticed that when retrieving an object from the DB mapperdao only returns the first "level" of related entities-attributes.
For example:
case class Node(someProp: String, childNode: Option[Node])
val thirdNode = Node(someProp: "theThird", childNode: None)
val secondNode = Node(someProp: "theSecond", childNode: ThirdNode)
val firstNode = Node(someProp: "parent", childNode: SecondNode)
If I persist these objects and then retrieve "firstNode" I get this returned
Node(someProp: "parent",
childNode: Node("theSecond", null)) //I want to have thirdNode loaded as well
It makes sense that you wouldn't load *all* child attributes with relationships because in a situation with a huge graph you'd be loading a huge amount of potentially unnecessary data every time you retrieved a single entity -- however I have a few instances where I need to be able to reach the third "level" of related entity-attributes. I check the QueryConfig setting but, other than MultiThreaded which looks like it just improves performance, I didn't see any options for explicitly setting how many levels to retrieve. Is this something I can achieve with mapperdao?
Thanks for your time!