- Java EE 8 Application Development
- David R. Heffelfinger
- 195字
- 2021-07-02 22:05:04
The Customer database
Examples in this chapter will use a database called CUSTOMERDB. This database contains tables to track customer and order information for a fictitious store. The database uses JavaDB for its RDBMS, since it comes bundled with GlassFish, but it can be easily adapted to any other RDBMS.
A script is included with this book's code download to create this database and pre-populate some of its tables. Instructions on how to execute the script, and add a connection pool and data source to access it are included in the download as well.
The schema for the CUSTOMERDB database is depicted in the following diagram:
As can be seen in the diagram, the database contains tables to store customer information such as name, address, and email address. It also contains tables to store order and item information.
The ADDRESS_TYPES table will store values such as "Home", "Mailing", and "Shipping", to distinguish the type of address in the ADDRESSES table; similarly, the TELEPHONE_TYPES table stores the "Cell", "Home", and "Work" values. These two tables are prepopulated when creating the database, as well as the US_STATES table.
For simplicity, our database only deals with U.S. addresses.
- SPSS數據挖掘與案例分析應用實踐
- Visual C++程序設計教程
- Mobile Application Development:JavaScript Frameworks
- 跟老齊學Python:輕松入門
- DevOps入門與實踐
- C#程序設計教程
- Cassandra Data Modeling and Analysis
- 鋒利的SQL(第2版)
- 人人都懂設計模式:從生活中領悟設計模式(Python實現)
- Mastering Drupal 8 Views
- C#應用程序設計教程
- 區塊鏈技術與應用
- 蘋果的產品設計之道:創建優秀產品、服務和用戶體驗的七個原則
- iOS自動化測試實戰:基于Appium、Python與Pytest
- Raspberry Pi Robotic Blueprints