- Java EE 8 and Angular
- Prashant Padmanabhan
- 199字
- 2021-07-02 19:22:36
Summary
As you may have noticed, getting started with JPA and CDI isn't that complex. With an understanding of both, it's possible to build large applications which utilize these technologies for various business cases. We looked at how dependency injection promotes writing loosely coupled and testable code and how CDI, a ubiquitous API for dependency injection and context management in Java EE, helps us do that.
CDI 2 brings ordered and asynchronous events to further enrich this programming model. As of the 2.0 release, CDI is available for Java SE as well. JPA has been updated for utilizing Java 8 Streams, repeatable annotations, and date/time APIs along with better CDI integration support. The JPA entities are defined as classes using @Entity, @MappedSuperclass, and @Embeddable annotations. To track state changes, we get to use entity listeners that can be used with CDI as well. Bean Validation 2.0 can be leveraged when defining constraints on JPA entities; this declarative method makes adding validations a fairly easy task to do.
Having learnt about CDI and JPA, which are two fundamental APIs that are used for building Java EE solutions; we can now switch our focus to microservices as we explore API-driven architecture.
- Cross-platform Desktop Application Development:Electron,Node,NW.js,and React
- Interactive Data Visualization with Python
- Offer來了:Java面試核心知識點精講(原理篇)
- Python爬蟲開發與項目實戰
- Processing互動編程藝術
- Scratch 3游戲與人工智能編程完全自學教程
- 編寫高質量代碼:改善C程序代碼的125個建議
- Java Web應用開發技術與案例教程(第2版)
- CKA/CKAD應試教程:從Docker到Kubernetes完全攻略
- Mastering Linux Network Administration
- 程序是怎樣跑起來的(第3版)
- Building RESTful Python Web Services
- Building Serverless Web Applications
- 監控的藝術:云原生時代的監控框架
- Building Business Websites with Squarespace 7(Second Edition)