O'Reilly logo

Java™ Data Objects by Robin M. Roos

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required