extendDefinition

Top  Previous  Next

- extendDefinition <container name>

 

Used primarily for domain modeling. It allows you to define an domain object that inherits and extends the definition of a previously defined domain object.

 

The Schema

 

<schema packageScope="com.wickedfastsolutions.demo.domain">
    <Employee>
        <id type="integer">1234</id>
        <lastName>Doe</lastName>
    </Employee>
    <PartTimeEmployee extendDefinition="Employee">
        <hours type="integer">14</hours>
    </PartTimeEmployee>
    <FullTimeEmployee extendDefinition="Employee">
        <bonus type="double" scale="2">0.00</bonus>
    </FullTimeEmployee>
    <ExemptEmployee extendDefinition="FullTimeEmployee">
        <monthlySalary type="double">0.00</monthlySalary>
    </ExemptEmployee>
    <NonExemptEmployee extendDefinition="FullTimeEmployee">
        <hourlyRate type="double">0.00</hourlyRate>
    </NonExemptEmployee>
</schema>