Re: Lazy Attributes
Lon Varscsak <[email protected]>
| Newsgroups | gmane.comp.java.cayenne.devel |
|---|---|
| Message-ID | <CALAw18zP4eavX1fZdg97s7B4n7w5Vw90XVM7Rz_d5HnL2yFYnw@mail.gmail.com> |
Yeah, it's a great idea. On Thu, Nov 28, 2019 at 6:06 AM Maik Musall <[email protected]> wrote: > +1 sounds very useful to simplify the data model here and there > > > Am 27.11.2019 um 13:06 schrieb Michael Gentry <[email protected]>: > > > > I just happened across an article on Hibernate which talks about lazy > > attributes. (A recent addition, I think.) This essentially allows you > to > > flag an attribute/column as lazy and it'll be excluded from the original > > SELECT query, but if you call the getter it will then fetch it in. This > is > > convenient for BLOB-type data that might happen to be in a main table > with > > other attributes (such as MIME types, file sizes, file names, etc). > > > > Thoughts on maybe adding this feature to Cayenne? I can imagine there'd > be > > a "Lazy" column in Cayenne Modeler for the attributes to control/identify > > them. > > > > Thanks, > > > > mrg > >