how stop hibernate vigourously attractive many-to-one compared object
i have ability domain vigilant announced many-to-one element. simple syntax ability looks this:
<many-to-one name="propertyname" class="propertyclass" fetch="select" not-found="ignore" lazy="proxy" />
now, thought have hibernate vigourously fetch property. competence null, not-found replace set.
but, hibernate, on loading category containing association, takes on itself bucket tangible category (not even proxy) instance progenitor category loaded. given properties over 1mb size, take adult lot store space.
if, however, not-found set difference (or defaulted exception), progenitor classes have ability bucket proxy!
how i stop hibernate loading proxy, while still permitting ability null?
i found lazy=no-proxy, nonetheless support talks arrange bytecode alteration doesn't any details. someone assistance me out?
if matters, java chronicle hibernate, during slightest chronicle 3 (i feeling adult tangible chronicle helps, nonetheless hibernate 3+ now).
i didn't mention earlier, nonetheless java chronicle 1.4. so, java annotations aren't supported.
Comments
Post a Comment