I'm still pretty new to JPA-QL and Hibernate, and also JSF and Seam. That said, I would appreciate some advice regarding this scenario:
For a use case we need to perform a search and display a mix of results on the screen that are not related (by an object graph, at least, not without some work). We are doing a query to get numerous pieces of partial data. This may include , for example, employee id, activity id, and account id.
I imagine we would render those search results using the @DataModel annotation, but the problem is that if we get partial search results, there is no object to which we can bind values using the expression language in the UI.
How do you usually deal with scenarios like this?
Read up some more on this today in a JPA-only book and found that constructor expressions and custom classes are probably the most straightforward way to with something like this.