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 9/15: Reflection, a Java 8 pitfall, Flyway, MVC 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.


Do you like to learn more about reflection in Java?
There was a great vJUG session with Heinz Kabutz about it. Here you can find the recorded session, a write up about it and a short interview with Heinz at the RebelLabs blog: vJUG Write Up: Live Reflection Madness.

Daniel Shaya discovered an awful pitfall in Java8, after he started to use Files.lines() in Java 8. He explained the issue and how to avoid it in: Java 8 pitfall - Beware of Files.lines().

Java EE

Using JPA is the most common approach in Java EE to persist data to a database. The latest update (JPA 2.1 as part of Java EE 7) introduced several new features to the specification. You can get an overview and a cheat sheet about the new features here: JPA 2.1 - 12 features every developer should know.

If you read the Java Weekly on a regular basis, you should be well aware of Arun Guptas Hanginar Series. Last week, he did the 6th Hanginar with Axel Fontaine about database migration with Flyway. Don't worry if you missed the live event. You can still watch the replay and learn more about Flyway and how it integrates with Java EE applications.

Using EARs in Java EE can be an issue, if you want to create portable applications. As Mark Struberg describes in his recent blog post, the Java EE specification does not clearly define isolation and visibility of classes: CDI in EARs.
After he published his post, several discussions started on his blog and twitter about it and were continued on the CDI mailing list: CDI Mailing List - Extension handling in EARs.

Java EE 8

MVC is one of the new specifications that will be part of Java EE 8. Manfred Riem, the co-spec lead of the JSR, started to collect interesting links and resources about it: MVC.

Arjan Tijms collects interesting links about the specifications that will be part of Java EE 8 since April 2014. He now analyzed the popularity of the different links and tried to find the most popular specification in Java EE 8.


Two weeks ago, Ivan St. Ivanovs first post of his series about using primitives in generics was already part of the Java Weekly. Now he published the second post in which he describes the current proposal implemented in Project Valhalla: Primitives in Generics, part 2.

This and that

The HTTP/2 specification was approved by the IESG. David Delabassee created a short write up with links to some useful resources about it and what it means for use Java developers: HTTP/2 is done.

See you next Monday

on for the next issue of Java Weekly. If you don't want to wait until next Monday, follow me on twitter where I share great resources regularly.

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