Skip to Content
Former Member
Apr 20, 2017 at 06:11 PM

Is there a way to extend GenericConditionQueryBuilder and reference as genericQueryBuilder of platformFieldSearchFacadeStrategy?



I tried extending the GenericConditionQueryBuilder class for overriding buildQuery method and I kept the extended class bean's alias and name as the OOTB ones as below.

 <bean id="CustomGenericConditionQueryBuilder"
       class="classpath.CustomGenericConditionQueryBuilder" parent="defaultGenericQueryBuilder">
       <property name="typeService" ref="typeService"/>

But my custom class is not getting called on execution. Only the OOTB class GenericConditionQueryBuilder is getting called.

Is there anything am missing?