Community
Participate
Working Groups
This flag is of particular importance when using Oracle VPD (but not limited to) where we only need the multitenant id values populated in the db. The db takes care of the rest. The following will be added to the Multitenant annotation /** * (Optional) Indicate if the database requires the tenant criteria to * be added to the SELECT, UPDATE, and DELETE queries. By default this is * done but when set to false the queries will not be modified and it will * be up to the application or database to ensure that the correct criteria * is applied to all queries. */ boolean includeCriteria() default true; And the following attribute to the XML multitenant element. <xsd:attribute name="include-criteria" type="xsd:boolean"/>
Created attachment 201741 [details] Proposed changes - trunk
Created attachment 201742 [details] Proposed changes - 2.3.1 stream Note: only the core changes are being added to the 2.3.1 stream and not the new API. Users can configure through the use of a customizer.
Changes have been submitted. Verified by: Tom Ware Tests: N/A. Tested manually and with the JPA VPD example.
Comments om latest patch: 1. Comments on the INTERNAL API should describe similar information to what is in @Multitenant or should have a reference to the description. 2. The reference to Oracle VPD should be more generic stating something like: Database solution (i.e. Oracle VPD) or additional critera added by the application.
Comments have been updated. /** * ADVANCED: * Boolean used to indicate if the database requires the tenant criteria to * be added to the SELECT, UPDATE, and DELETE queries. By default this is * done but when set to false the queries will not be modified and it will * be up to the application or database to ensure that the correct criteria * is applied to all queries. * * @see org.eclipse.persistence.annotations.Multitenant */ public void setIncludeTenantCriteria(boolean includeTenantCriteria) { this.includeTenantCriteria = includeTenantCriteria; }
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink