Re: New "Property" classes requiring Persistent

John Huss <[email protected]>
Newsgroups gmane.comp.java.cayenne.user
Message-ID <CAOUwSGtvDcpBxiLwmm-Px2stshd_JCx8-iB0nK6GNiJdFiXJ5g@mail.gmail.com>
For a very quick reply, I would recommend using the Java 8 streams API
.filter, etc instead of Property for doing things with POJOs. This should
perform better and be more debuggable, and be only slightly more verbose.

On Thu, Nov 14, 2019 at 4:50 PM Lon Varscsak <[email protected]> wrote:

> Hey all,
>
> I use Property-type classes for all sorts of things, usually for Cayenne
> related activities...but sometimes they're really useful on POJOs too.  The
> new Property related classes (like EntityProperty) require the class to be
> a subclass of Persistent.  I can't see where this is actually
> relevant...but I might be missing something.  Any reason we couldn't remove
> this restriction?
>
> Thanks,
>
> Lon
>
> P.S. -- Still wishing these also implemented Serializable :P
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.