Lazy Attributes

Michael Gentry <[email protected]>
Newsgroups gmane.comp.java.cayenne.devel
Message-ID <CAOy5kzOv0MHsxmgxKRUKxoaZaqDkj5fXSHtO4ii1FajgAHZUSw@mail.gmail.com>
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
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.