Child pages
  • Using Strategy Design Pattern with EOF
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Work In Progress


EOF and Entity Modeler allow you to model class inheritance using a number of strategies for mapping the inheritance hierarchy to the database. A complex EOF inheritance hierarchy can sometimes be challenging to implement, unwieldy to maintain, difficult to refactor, complex to add features, reveal buggy behaviour in EOF, and overall can take the Fun out of your development! Not only that, the Strategy Design Pattern helps us to build more maintainable code by implementing the following OO Principle:

OO Principle

Favor composition over inheritance

To understand how the Strategy Design pattern works, see chapter 1 of the Head First Design Patterns book.

I am sure there are many ways to skin a cat. Here we will look at one way to implement the Strategy Design pattern for a single Entity.

What Are We Going to Model?

  • No labels