This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 81020 - Consider preference for fetch type annotation on Lob fields
Summary: Consider preference for fetch type annotation on Lob fields
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dongmei Cao
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-24 20:46 UTC by Rochelle Raccah
Modified: 2016-07-07 08:55 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rochelle Raccah 2006-07-24 20:46:06 UTC
See related issue 81019.  After discussion with the gf persistence team, it was
decided not to generate these annotations with the optional @Basic(fetch=LAZY)
additional annotation. However, this is something that could be added as a
preference if/when we want to allow more customization to the generation process.

Note that I do not envision allowing customization of this per field, but rather
per type (user says I do/do not want fetch=LAZY for my Lobs).
Comment 1 Rochelle Raccah 2006-12-12 20:06:28 UTC
When solving this, keep in mind issue 90827.
Comment 2 Dongmei Cao 2008-06-16 19:03:10 UTC
In NetBean 6.5, there is an additional step (last step and optional) to allow the user to specify the fetch type
(default, eager, or lazy). By default, it is "default", meaning no "fetch" attribute is generated on @Basic. Note that
the fetch type is global (not per field, not per type).
Comment 4 Rochelle Raccah 2008-06-17 22:26:40 UTC
The new step is useful, but I believe the ability to specify something different for large data types like Lobs is still
useful.
Comment 5 Martin Balin 2016-07-07 08:55:12 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss