Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348815 - Composite persistence unit does not process VALIDATION_ONLY_PROPERTY correctly
Summary: Composite persistence unit does not process VALIDATION_ONLY_PROPERTY correctly
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-08 17:23 EDT by Andrei Ilitchev CLA
Modified: 2022-06-09 10:10 EDT (History)
0 users

See Also:


Attachments
Suggested patch. (964 bytes, patch)
2011-07-13 18:17 EDT, Andrei Ilitchev CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Ilitchev CLA 2011-06-08 17:23:21 EDT
Currently "eclipselink.validation-only" persistence unit property is processed both by composite pu and by all its members.

It should be processed by composite only, ignored by member persistence unit. 

Workaround: specify the property in the composite and in all its members.
Comment 1 Andrei Ilitchev CLA 2011-07-13 18:17:20 EDT
Created attachment 199625 [details]
Suggested patch.

Very simple patch - following the same pattern as "javax.persistence.transactionType" and "eclipselink.target-server" force member's "eclipselink.validation-only" property to be the same as composite's one. The fix is in EntityManagerSetupImpl.overrideMemberProperties method.
Comment 2 Andrei Ilitchev CLA 2011-07-13 18:20:39 EDT
The fix checked into both trunk (2.4) and 2.3.1
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:10:59 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink