/[Apache-SVN]
ViewVC logotype

Revision 1866439


Jump to revision: Previous Next
Author: jleroux
Date: Thu Sep 5 07:13:10 2019 UTC (4 years, 7 months ago)
Changed paths: 2
Log Message:
Improved: Change current view-link requirement to allow use of  
entity-condition only in view-entities
(OFBIZ-11179)



To explain the subject, i will give an example encountered recently:

We used, for a customer project, a view with Agreement, Virtual and Variant 
product entities and where the agreement can be attached to a virtual OR a 
variant product.
So to make a view returning Variant Product, Virtual Product AND Agreement 
informations, i could not create a view, as the key-map link is mandatory and 
made it impossible.

I can not have an alternative relation to the same entity so we have to 
duplicate member-entity and an alternative relation path. 
The result is a complicated and ugly entity-view

I think this can have been much simpler if i could have done it directly 
through the entity-condition (see the AGPA/PDTA view link in attached file 
ExampleWithoutKeyMap.xml)

So the purpose is to add the possibility to create a view-link without key map,  
if there is an entity-condition.

You can test by applying the given patch and add the entity view from attached 
file ExampleWithoutKeyMap.xml

Thanks: Leila Mekika

Changed paths

Path Details
Directoryofbiz/ofbiz-framework/trunk/framework/entity/dtd/entitymodel.xsd modified , text changed
Directoryofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/jdbc/SqlJdbcUtil.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26