Interesting.
Note that the error indicates that TblSaleSched is actually NOT enhanced.
That is, somehow it is not being enhanced by the javaagent... and so Ebean is creating a dynamic subclass for it instead and that is failing because (as a rule/check that Ebean does) you can not mix enhanced and subclassed classes in a single inheritance hierarchy (it's parent class ...BaseCacheEntity is enhanced but TblSaleSched was not [was going to be a dynamically generated subclass] ... Ebean checks for that condition and throws this error.
So to me the question is... why is TblSaleSched not being enhanced by the javaagent ? ... and yes, the thought is that it might be something to do with the DAO, Generics and javaagent enhancement.
So it works for ANT enhancement... which might point the issue towards classloading behaviour with javaagent/Transformer in combination with the DAO and Generics.
If you put the debug level to > 5 for the enhancement ... then we should see the classes sent to the Transformer.transform() method ... and specifically if TblSaleSched is transformed/enhanced.
Cheers, Rob.