Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362833 - Need a property to set ManyToOne relationship FetchType to LAZY
Summary: Need a property to set ManyToOne relationship FetchType to LAZY
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-03 15:24 EDT by Daniel Lo CLA
Modified: 2022-06-09 10:36 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Lo CLA 2011-11-03 15:24:33 EDT
Build Identifier: 2.1.3

By default the ManyToOne relationship FetchType is set to EAGER, this causes lots of unnecessary query to fetch the related entities, we need a property such as eclipselink.manyt-to-one.lazy=true in the persistence.xml to change the default FetchType.

Reproducible: Always
Comment 1 Eclipse Webmaster CLA 2022-06-09 10:36:17 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink