- Developing Middleware in Java EE 8
- Abdalla Mahmoud
- 195字
- 2021-07-23 19:24:37
Entity mapping
One of the fundamental tasks in JPA development is to map your domain model entity classes to your database tables and columns. There are two approaches when you are going to design your entities and database in general:
- Designing entity classes and generating a database schema from them
- Designing database tables then implementing entity classes around them
The first approach is only valid and useful when you are starting your application from scratch. Beginning the design with entity classes makes it easier for you, as an application developer, to analyze and design your solution with object-oriented techniques. Note that this may be suitable only for small to medium-scale applications. In large-scale applications, there may be a big database design and implementation team who will take on the database responsibility. In such a case, you have to follow the second approach. Another common case is that the database may exist, as you are going to develop a new vertical application above an existing application, or you are revamping or migrating an existing system to newer technologies.
Anyways, by learning the basic mappings of JPA, you will be able to follow either of these approaches.
- OpenDaylight Cookbook
- Building a Game with Unity and Blender
- Python:Master the Art of Design Patterns
- Learning DHTMLX Suite UI
- Haskell Data Analysis Cookbook
- Arduino家居安全系統(tǒng)構(gòu)建實戰(zhàn)
- R數(shù)據(jù)科學(xué)實戰(zhàn):工具詳解與案例分析
- OpenStack Networking Essentials
- Docker:容器與容器云(第2版)
- 少兒編程輕松學(xué)(全2冊)
- Apache Kafka 1.0 Cookbook
- 編程風(fēng)格:程序設(shè)計與系統(tǒng)構(gòu)建的藝術(shù)(原書第2版)
- MATLAB/Simulink建模與仿真
- 測試架構(gòu)師修煉之道:從測試工程師到測試架構(gòu)師(第2版)
- R Data Visualization Cookbook