I’m new to Java and JPQL and Views being used with lazy loading. Our old system that we are migrating from had a type of home-brew almost XPath-like feature that walked the schema or object model. We are wanting something similar here with Cuba and wanted to know if there are any recommendations for an approach if something doesn’t already exist.
An example would be something like this:
To get an email address when looking at an entity: = [CurrentEntity].[Company].[Owner].[Email] where this path would literally traverse the objects to get the email address.
To get many email addresses: = [CurrentEntity].[ParyMembers].[User].[Email] would actually yield multiple email address as there are multiple PartyMembers on the entity.
This allowed for very easy dynamic configuration that customers could easily understand. The path was provided as a String as input which we would then parse and walk the path. We would use it in many parts of the application. It’s a lot easier than asking customers to create SQL statements. Is there anything in Cuba that would help with this or at least point me in the right direction for implementing something like this?