5. A computer-implemented method comprising: receiving pattern code including definitions of a plurality of business classes, wherein a definition of each of the plurality of business classes includes a reference to a key field, wherein each key field of each of the plurality of business classes references an external object of a plurality of external objects, wherein a definition of a first business class of the plurality of business classes includes a reference to a first key field, wherein the first key field references a first external object, wherein the first external object is in an ontological relationship with each of the other external objects and, wherein the ontological relationships include a surrogate relationship between the first external object and one of the other external objects and an extends relationship between the first external object and one of the other external objects; and compiling, using one or more processors, the code to generate an executable, wherein the compiling includes validating the surrogate and extends relationships between the first business class and the plurality of business classes; wherein the surrogate relationship defines a relationship where one of plurality of business classes can functionally replace the first business class in the compiled object code; wherein the extends relationship defines a relationship where one of the plurality of business classes extends the first business class in the compiled object code.
5. A computer-implemented method comprising: receiving pattern code including definitions of a plurality of business classes, wherein a definition of each of the plurality of business classes includes a reference to a key field, wherein each key field of each of the plurality of business classes references an external object of a plurality of external objects, wherein a definition of a first business class of the plurality of business classes includes a reference to a first key field, wherein the first key field references a first external object, wherein the first external object is in an ontological relationship with each of the other external objects and, wherein the ontological relationships include a surrogate relationship between the first external object and one of the other external objects and an extends relationship between the first external object and one of the other external objects; and compiling, using one or more processors, the code to generate an executable, wherein the compiling includes validating the surrogate and extends relationships between the first business class and the plurality of business classes; wherein the surrogate relationship defines a relationship where one of plurality of business classes can functionally replace the first business class in the compiled object code; wherein the extends relationship defines a relationship where one of the plurality of business classes extends the first business class in the compiled object code. 8. The computer-implemented method of claim 5 , wherein compiling includes establishing a plurality of candidate paths among extends and surrogate relationships between the first business class and each of the plurality of business classes.