Cheat Sheet: New Features in JPA 2.1

JPA 2.1 introduced 12 new features, like StoreProcedureQueries, Entity Graphs and Attribute Converter, to make your work with the database easier and more efficient.
Download your free New Features in JPA 2.1 cheat sheet now, to get all the information you need to improve your database access.

This 5 page cheat sheet brings you:

- a short description and
- code snippets for each feature,
- links to more detailed articles.

Signup now and get your free New Features in JPA 2.1 cheat sheet and regular blog updates.

I respect your privacy and have ZERO TOLERANCE for spam!

Java Weekly 5/15: CDI in Java SE, DeltaSpike, James Gosling and more ...

The Java world is evolving at a rapid pace and it can be challenging to keep track of it. Fortunately lots of great resources are created every week, explaining new features or looking at existing stuff from a different angle.

I am using the Java Weekly series to collect the most interesting links I found during the last week and present them to you all in one place. I hope you find it useful and that it makes it easier for you to keep up-to-date. If you like to suggest a resource or something I can improve on, please leave me a comment.


Java 8 introduced Optional to provide a more convenient way to work with possible null values. That sounds great! But if you are new to Optional, you might be wondering about the advantages of using the methods isPresent() and get() instead of the good old null check. And you are right, if you use it that way. But there are multiple other ways to use Optional as Dadepo Aderemi shows in his post: Using Optional Effectively in Java 8.

Standardizing the usage of CDI in a Java SE environment is one of the goals of the upcoming CDI 2.0 specification. But it is already possible to use CDI in Java SE. Weld and OpenWebBeans provide proprietary ways to start their container in Java SE and Apache DeltaSpike provides a unified API for it.
Rudy De Busscher describes in his post CDI for Java SE already standardised with DeltaSpike how to do it and which pitfalls you should avoid.

Speaking of DeltaSpike, Antoine Sabot-Durand gave a great presentation about the Apache project this week. And don't worry, if you missed it. You can watch the replay here and Antoine uploaded the slides to slideshare.

But that was not the only great online event this weak. The vJUG hosted a session with James Gosling who talked about the wave glider project. You can get more information about the project, watch the replay of the session and an interview with James Gosling on the RebelLabs site.

Heinz Kabutz published issue 225 of The Java Specialists Newsletter. This time, he shows a nice trick to hide interface methods.

Java EE

Arjan Tijms is working on a very detailed article series about JACC. In the first part of the series, Arjan describes the concept of role mapping and several ways to implement it: Java EE authorization - JACC revisited part I.
The different, container specific ways to deploy a JACC provider and how to obtain the container specific role mapper are explained in the second part of the series: Java EE authorization - JACC revisited part II.
A fully working JACC provider will be presented in the upcoming third and final part of the series .

Abhishek Gupta had a look at interceptors in Java EE in his article Java EE Interceptors. If you like to get an overview on how to use interceptors and their history, you should take a few minutes to read this article.

Upcoming online events

Lukas Eder will give a talk jOOQ: Get Back in Control of Your SQL at 5pm UTC on Thursday 29th at the vJUG.

See you next week!

These were the most interesting resources I found this week. I hope you find them useful and I see you next Monday for the next issue. You can subscribe below to get an email notification for it or follow me on twitter and google+.

If you like to suggest a link for next weeks issue or something I can improve on, please write me a comment.

No comments:

Post a Comment