Sunday, May 19, 2019

JAXRS all-in-one

All annotations are summarized here

"Base URL for any web application is:


Append tag from web.xml with Base URL that forms:


Append class-level @Path(“class-level”) annotation and then method-level @Path(“method-level”) annotation that forms:


extends Application







@PathParam("isbn") String isbn



It's all very clear apart @Context... read here to understand @Context

this for SecurityContext :

and some more coding examples here

Friday, May 17, 2019

More interesting readings on quarkus and microprofiles

I reveive from my friend Rob:

This will soon overhaul Spring Boot. Look how they fast grow with integrating all enterprise patterns on Quarkus. This community is the driver

Look at this suberb documentation, almost covering everything you need

and then this amazing reactive streaming doc

this will leave spring boot behind really soon

Worth reading is also

Interesting also eclipse.microprofile running on Open Liberty

Thursday, May 16, 2019

Jooq and QueryDSL as alternatives to JPQL, Panache,

HQL (and JPQL) both suck because they are not statically typed..."lack of type safety and absence of static query checking" "concatenation of strings which is usually very unsafe "

"Criteria Query API ended up very verbose and practically unreadable. "

"jOOQ generates Java code from your database and lets you build type safe SQL queries through its fluent API. "

So this is no ORM framework, it uses your DB as it is, it simply allows you to write safer SQL queries directly in a fluent Java API. No Hocus-Pocus, it's a 1-to-1 mapping between DB and Java.

Here some examples

how to use it and

If you want to use Native SQL or JPQL in Spring:

This is the horribly verbose JPA Criteria API
" the main and most hard-hitting advantage of Criteria queries over HQL is the nice, clean, Object Oriented API."