I have an entity with 500 columns. However, i only need 100 columns in a few scenarios.The required column list changes as per configuration.
e.g
Query query = entityManager.createNativeQuery("Select NAME, AGE from CUSTOMER",Customer.class); 
It is throwing an error for missing columns.
Is there any way to load selected columns in entity and ignore others.
 
     
    