2.1. Order processing domain

The first thing we need for a simple example is a business domain within which to work. I have chosen to model an order processing application. In the fullness of time; our model will contain classes called “BusinessPartner,” “Customer,” “Order,” “OrderLine,” “Product,” etc. However, in the first case we will start with just one business entity, the “BusinessPartner” class.

A BusinessPartner is an entity with which the user of the application does business. In our example this will represent a company or individual that places orders for our products. Simplistic treatments of this topic would call the class “Customer,” but “Customer” is actually one of many roles that may be played by a business partner, hence my ...

Get Java™ Data Objects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.