The application that we will build with CDI is one that we will all be familiar with, that of an online book store! Though we don't intend to develop the application to the level of complexity that is provided by Amazon.com, it will provide a good overview of using CDI within an application for us to explore various aspects of its development.
The entities our application will require are as follows:
User
: This entity will hold the user login credentials, and is applicable to customers and internal site administrators.Account
: This entity is used for capturing additional information that only applies to customers, such as addresses, and it will be the link to any orders that a customer may place.Category
: This entity defines a grouping that a book is part of.Author
: This entity specifies an author within the application that can be linked to a book.Book
: This entity captures all the information about a particular book, and links to the category and author associated...