- 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.
- Kali Linux Web Penetration Testing Cookbook
- Vue.js 3.x從入門到精通(視頻教學版)
- MongoDB for Java Developers
- Spring Boot Cookbook
- 小學生C++創意編程(視頻教學版)
- Procedural Content Generation for C++ Game Development
- Spring Boot+MVC實戰指南
- C# Multithreaded and Parallel Programming
- 微前端設計與實現
- Python機器學習開發實戰
- INSTANT Premium Drupal Themes
- 程序員的英語
- 數據庫技術及應用教程上機指導與習題(第2版)
- 軟件自動化測試實戰解析:基于Python3編程語言
- Python數據分析與挖掘實戰(第2版)