I am using JPA with hibernate in my project.
I came to a query where I need to join 6 tables. This will give 20 columns as a result.
My Entity classes are:
- InvoiceAccount
- AssetAgreement
- Asset
- LineItem
ProductAgreement
Product
My pojo class is AggregateDetail which contain all the 20 variables that I will get from the native query.
Is there any way to implement this.