Community
Participate
Working Groups
Created attachment 136450 [details] File containing necessary SQL and Javacode The embeddedid's fields are null when the entityclass has a LOB-column that uses a Basic-annotation to fetch lazily. Remove the annotiation and the embeddedid's fields are retrieved as expected. This bug has been witnessed on both Oracle and MS-SQL platforms, and different tables. To reproduce, simply create a table containing a compound primarykey and a LOB-field and create an entityclass for that table. Set the fetchtype to LAZY for the LOB-field and try and retrieve some rows. SQL- and Java-file for doing this is attached.
Setting target an priority. See the following link for an explanation: http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines
This bug fix did not make the cut off for 2.0.0. We are deferring the bugs to Future where we can properly sort them all together based on community votes and severity. We will then assign them accordingly to future patch sets and releases.
Changing the priority of the bugs that have been recently triaged to future. Targetting them to P2 will differentiate them from the P3s that have been triaged into future earlier.
Tried with Embedded, not EmbeddedId and it's broken too. 2.0.1.v20100213-r6600
As a workaround for the time being you can set the following property to avoid this error: eclipselink.weaving.fetchgroups=false
Created attachment 186539 [details] Proposed changes
Created attachment 186565 [details] Suggested update to the patch Instead of altering shouldReadAllMapping method signature to take a descriptor I suggest to clone the query and remove the fetch group. Currently FetchGroups don't support aggregates but when (and if) the support is added it would be a simple matter of extracting the nested fetch group corresponding to the mapping (just like in ReferenceMapping case) where the current patch always removes the fetch group.
Created attachment 186639 [details] Updated patch with Andrei's changes
Changes have been submitted. Verified by: Andrei Ilitchev New test (testLAZYLOBWithEmbeddedId) added to the DDLGenerationJUnitTestSuite. All tests pass (full regression test suite, extended jpa test suite and core lrg)
Fix was backported to 2.1.3 and 2.2.1
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink