Hello Guys, I'm developing an application with nHibernate and MySQL.
I have a HQL command that runs every second, and in this command I do a "Inner Join Fetch", like this:
"from Order o inner join fetch o.Customer order by o.Date"
It's work fine but It fill all properties of "Customer", and I have a lot of columns in DataBase (almost 40 columns). I need only some columns like Name, Address and Telephone to show in my presentation layer.
Is there any way to get only some properties doing a Fecth Join or another way to improve performace?
Thanks...
Cheers