1 Reply Latest reply on Jan 6, 2009 1:05 PM by Albert Scholtz

    EL expressions evaluates to ":el1"

    Albert Scholtz Newbie
      I have the following inside a class extending EntityQuery

      private static final String[] RESTRICTIONS = {
              "virginPartnerHandsets.price > #{virginPartnerHandsetsList.virginPartnerHandsets.price}",
      };

      private VirginPartnerHandsets virginPartnerHandsets = new VirginPartnerHandsets();

      @Override
      public String getEjbql() {
              return "select virginPartnerHandsets from VirginPartnerHandsets virginPartnerHandsets";
      }

      My end sql statement that results from this is:

      'select PartnerHandsets from PartnerHandsets partnerHandsets where partnerHandsets.price > :el1'

      It should be price > 7000 for ex.

      Any help will be appreciated.
      Albert Scholtz