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

    Enum and EntityQuery in components.xhm

    tomek szzzaaos Newbie

      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!