Author: deepak
Date: Sat Aug 27 07:42:02 2016
New Revision: 1757960
URL:
http://svn.apache.org/viewvc?rev=1757960&view=revLog:
(OFBIZ-7625) Applied patch from jira issue
===================================
Add "changeByUserLoginId" field for ExampleStatus
===================================
Thanks Nameet and Renuka for your contribution.
Modified:
ofbiz/trunk/specialpurpose/example/entitydef/entitymodel.xml
ofbiz/trunk/specialpurpose/example/minilang/example/ExampleServices.xml
Modified: ofbiz/trunk/specialpurpose/example/entitydef/entitymodel.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/example/entitydef/entitymodel.xml?rev=1757960&r1=1757959&r2=1757960&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/example/entitydef/entitymodel.xml (original)
+++ ofbiz/trunk/specialpurpose/example/entitydef/entitymodel.xml Sat Aug 27 07:42:02 2016
@@ -78,6 +78,7 @@ under the License.
<field name="exampleId" type="id-ne"></field>
<field name="statusDate" type="date-time"></field>
<field name="statusEndDate" type="date-time"></field>
+ <field name="changeByUserLoginId" type="id-vlong"></field>
<field name="statusId" type="id-ne"></field>
<prim-key field="exampleId"/>
<prim-key field="statusDate"/>
@@ -87,6 +88,9 @@ under the License.
<relation type="one" fk-name="EXMPLST_STTS" rel-entity-name="StatusItem">
<key-map field-name="statusId"/>
</relation>
+ <relation type="one" fk-name="EXMPLST_STTS_USER" rel-entity-name="UserLogin">
+ <key-map field-name="changeByUserLoginId" rel-field-name="userLoginId"/>
+ </relation>
</entity>
<entity entity-name="ExampleType"
package-name="org.apache.ofbiz.example.example"
Modified: ofbiz/trunk/specialpurpose/example/minilang/example/ExampleServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/example/minilang/example/ExampleServices.xml?rev=1757960&r1=1757959&r2=1757960&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/example/minilang/example/ExampleServices.xml (original)
+++ ofbiz/trunk/specialpurpose/example/minilang/example/ExampleServices.xml Sat Aug 27 07:42:02 2016
@@ -39,6 +39,7 @@ under the License.
<set-pk-fields map="parameters" value-field="newEntity"/>
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<set field="newEntity.statusDate" from-field="nowTimestamp"/>
+ <set field="newEntity.changeByUserLoginId" from-field="userLogin.userLoginId"/>
<create-value value-field="newEntity"/>
</simple-method>