Modified the Model and service layer by adding named query