2010/5/21 Uwe Schäfer <
u...@thomas-daily.de>:
> Ólafur Gauti Guðmundsson schrieb:
>
>> I totally agree, I think Morphia should be usable without these
>> dependencies if possible. It is frustrating to have to include jars that
>> you're not using.
>
> fine for me.
>
> Basic question: what if user tries to use a feature he needs the jars for?
> for instance uses @Reference(lazy=true) without cglib/proxytoys?
>
> yell or ignore?
Yeah, it is a hard question. I vote logging, but no exception. Every
time they try to use that feature, complain (with a stack trace to the
log?). Everything will continue to work without lazy, it just may be
more expensive.
Remember, a lot of the benefit to your model for mongodb is to use
embedded objects. There are cases you want link semantics, but they
are probably more infrequent than you might think. Multiple queries
and I/O hits cost more than transferring extra network data, most
likely.