I m wondering if I can use method call instead of pub.revenue i.e pub.getRevenue(). Is this possible? Because the revenue variable may be declared private and cannot be accessed directly.
Is it possible to access the SQL which is generated by JPQL? I would like to use the SQL to later create a view for my purposes. I am using Hibernate if it matters.