- 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.
- 編寫高質量代碼:改善Python程序的91個建議
- Functional Programming in JavaScript
- C語言程序設計案例式教程
- Data Analysis with Stata
- STM32F0實戰:基于HAL庫開發
- Learning DHTMLX Suite UI
- 深入淺出Serverless:技術原理與應用實踐
- TMS320LF240x芯片原理、設計及應用
- Python程序設計與算法基礎教程(第2版)(微課版)
- Cocos2d-x Game Development Blueprints
- Android應用開發深入學習實錄
- Java Hibernate Cookbook
- Learning Apache Thrift
- C語言程序設計
- Building Scalable Apps with Redis and Node.js