Use the following data graph to create a new property type age and to add it to an existing entity type PersonAccount.
<?xml version="1.0" encoding="UTF-8"?> <sdo:datagraph xmlns:sdo="commonj.sdo" xmlns:wim="http://www.ibm.com/websphere/wim"> <wim:Root> <wim:schema> <wim:propertySchema nsPrefix="yourext" nsURI="http://www.yourco.com/wim/yourext" dataType="Int" multiValued="false" propertyName="age"> <wim:applicableEntityTypeNames>PersonAccount</wim:applicableEntityTypeNames> </wim:propertySchema> </wim:schema> </wim:Root> </sdo:datagraph>
<?xml version="1.0" encoding="UTF-8"?> <sdo:datagraph xmlns:sdo="commonj.sdo" xmlns:wim="http://www.ibm.com/websphere/wim"> <wim:Root> <wim:schema> <wim:propertySchema nsPrefix="yourext" nsURI="http://www.yourco.com/wim/yourext" dataType="Int" multiValued="false" propertyName="age"> <wim:repositoryIds>LDAP1</wim:repositoryIds> <wim:applicableEntityTypeNames>PersonAccount</wim:applicableEntityTypeNames> </wim:propertySchema> </wim:schema> </wim:Root> </sdo:datagraph>
<?xml version="1.0" encoding="UTF-8"?> <sdo:datagraph xmlns:sdo="commonj.sdo" xmlns:wim="http://www.ibm.com/websphere/wim"> <wim:schema> <wim:propertySchema nsPrefix="yourext" nsURI="http://www.yourco.com/wim/yourext" dataType="Int" multiValued="false" propertyName="age"> <wim:applicableEntityTypeNames>PersonAccount</wim:applicableEntityTypeNames> </wim:propertySchema> </wim:schema> </sdo:datagraph>