Add Enterprise category: Servlet vs JAX-RS, EJB vs CDI, JDBC vs JPA, JPA vs Jakarta Data#42
Conversation
…PA patterns Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
|
@copilot can you generate screenshots for each new slug? |
Here are screenshots of each new enterprise slug: |
|
@copilot The slug on "JDBC versus JPA" could be followed by an additional one on "JPA versus Jakarta Data" where the latter just declares an interface and lets Data generate the DAO ("Repository") implementation. Jakarta Data specification: https://jakarta.ee/specifications/data/1.0/ |
Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
Added in commit |
|
@copilot give me screenshots for each new slug. The screenshot must be of the entire detailed page of each. |
Here are full-page screenshots of each new enterprise slug: Each screenshot shows the complete detail page: nav bar, Enterprise badge, gradient title, old/modern code panels, summary + explanation, "Why the modern approach wins" cards, related patterns, documentation links, and prev/next navigation. |








Introduces a new
enterprisecategory covering four Java EE → Jakarta EE migration patterns.New content (
content/enterprise/)servlet-vs-jaxrs—HttpServletboilerplate → declarative@Path/@GETJAX-RS resourceejb-vs-cdi—@StatelessEJB +@EJBinjection →@ApplicationScopedCDI bean +@Inject+@Transactionaljdbc-vs-jpa— ManualResultSetmapping →EntityManager.find()and JPQLjpa-vs-jakarta-data— VerboseEntityManager+ JPQL →@Repositoryinterface with auto-generated DAO implementation via Jakarta DataGenerator & UI
"enterprise": "Enterprise"toCATEGORY_DISPLAYand the orderedcategorieslist ingenerate.pytemplates/index.html.badge.enterpriseCSS rule (--cyanpalette) tostyles.cssNavigation
Threaded the four new patterns into the global prev/next chain after
language/compact-canonical-constructor(previously the terminal node).All HTML and
site/data/snippets.jsonregenerated (99 snippets total).Screenshots
Servlet versus JAX-RS

EJB versus CDI

JDBC versus JPA

JPA versus Jakarta Data

Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.