- 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.
- 黑客攻防從入門到精通(實戰秘笈版)
- Android Jetpack開發:原理解析與應用實戰
- Oracle Database In-Memory(架構與實踐)
- Mastering QGIS
- Python計算機視覺編程
- Functional Programming in JavaScript
- 軟件工程
- Mastering RStudio:Develop,Communicate,and Collaborate with R
- 快速念咒:MySQL入門指南與進階實戰
- 零基礎學C語言第2版
- Python網絡爬蟲技術與應用
- Instant Zurb Foundation 4
- 區塊鏈架構之美:從比特幣、以太坊、超級賬本看區塊鏈架構設計
- Exploring SE for Android
- Mastering XenApp?