Otis wrote:
I don't understand your question, sorry.
If I look at your prefetch path, you already fetch the BuildItem, so isn't it already available in your object graph? The trouble I have with your question is mainly with the sql you specified, as that's a fetch of a list of values, and your prefetch path fetches objects in a graph, so I'm not sure what you want to accomplish.
Hello Otis, this is hard for me to explain.
I'm trying to query data from 2 tables.
Build
BuildItem (BuildItem.BuildId is FK to Build.BuidId)
I want to select all the distinct rows from the build table while adding in a column to this query from the BuildItem table where the column is BuildItem.WebDescription and the ProductType being stored for the record is "Frame". I expect the BuildItem table to have one frame or no frame. So if there is a product type of Frame in the table then that frame's WebDescription will show up in the column from the query. In the case where there is not a frame in the BuildItem table then the column value for WebDescription will be null. This was easy to do using a typed view, but I need to do this using entities. I have tried using a derived entity of Build and in the derived Build entity creating a property that returns Build.BuildItem.WebDescription, but doing this causes a duplicate Build to be displayed for each BuildItem in the Build.
Does this make more sense?