3 Replies Latest reply on Sep 10, 2011 2:14 AM by hantsy

    Enum and EntityQuery in components.xhm

    tszpinda

      Hi,


      I'm trying to use Enum with EntityQuery in components.xml is it possible?



           <framework:entity-query name="orderNotificationEmails"
                ejbql="select c from Email c" order="c.email">
                <framework:restrictions>
                     <value>type like #{Email.Type.ORDER_NOTIFICATION}'</value>
                </framework:restrictions>
           </framework:entity-query>



      Thanks in advance!