Re: Cayenne 4.2 StringProperty—implement Comparabl eProperty?

Nikita Timofeev <[email protected]>
Newsgroups gmane.comp.java.cayenne.devel
Message-ID <CAMi+qzAmvN8rQnpvF8qNsh1anUV5Mk0pCyeT948dUaMT+vVUrA@mail.gmail.com>
Hi,

Missed this thread.
I just didn't imagine that there is a use case for that. But as long
as it is supported by DBs, I think this should be supported by Cayenne
as well.

On Mon, Mar 4, 2019 at 4:24 PM Hugi Thordarson <[email protected]> wrote:
>
> Hi all.
> I've been experimenting a little with Cayenne 4.2. It looks lovely and I can't wait to start using it.
>
> One thing I bumped into is that StringProperty does not implement ComparableProperty. Although I'd personally never design a DB or a system that requires this, I work with a couple of legacy systems that use comparison of string fields ("someString">"otherString" etc.). Doing a little googling seems to show that it's also a bit of a practice and widely supported by DBs.
>
> So… Do you think StringProperty should implement ComparableProperty? I'm torn myself. It feels wrong—but if it's supported by DBs and widely used, perhaps the Cayenne API should allow for that?
>
> Cheers,
> - hugi



-- 
Best regards,
Nikita Timofeev
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.