Re: Migrating from EOF → Cayenne: partial e ntities

Paul Hoadley <[email protected]> Mon, 2 Sep 2024 08:36:08 +0930
Newsgroups gmane.comp.java.cayenne.user
Message-ID <[email protected]>
Hi Andrus,

On 1 Sep 2024, at 23:53, Andrus Adamchik <[email protected]> wrote:

> So partial entities are essentially ORM model "mixins". A neat idea, but unfortunately not supported by Cayenne. So you'd need to recreate the contents of each partial entity insider every concrete entity.

Let me ask a more general question then. How do Cayenne users achieve code reuse (or even entity/model reuse)? Presumably people aren't re-writing their "User" entity, for example, from scratch for every application. Is there any comparable approach for "reuse but customise"?


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/