1 Reply Latest reply on Oct 2, 2008 11:00 AM by nickarls

    Generated EntityList classes break in 2.1.0.CR1

    bswenka

      Hello,


      We have some EntityList classes generated in Seam 2.1.0.Beta1 that are not compiling with Seam 2.1.0.CR1.


      The following code fragment worked fine in Seam 2.1.0.Beta1:


      @Override
      public List<String> getRestrictions() {
           return Arrays.asList(RESTRICTIONS);
      }



      But this code is now throwing this error:

      The return type is incompatible with Query<EntityManager,Address>.getRestrictions()


      This code change seems to fix the problem:
      @Override
      public List<String> getRestrictionExpressionStrings() {
           return Arrays.asList(RESTRICTIONS);
      }


      Has this changed in Seam 2.1.0.CR1? If this is a change, in this future could this be 'deprecated' instead of changed cold turkey? Is getRestrictedExpressionStrings() the correct override going forward?


      Thanks, Ben