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 48: Modern APIs, Entity Graph, agile specs 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.


The Apache Tamaya project is currently discussing, if they should target Java 7 or Java 8. It might not seem to be such a big deal to stick with Java 7 and make the adoption easy. But as Anatole Tresch shows in his recent blog posting Java 8 is much more than just Lambdas and Streams. There are several other new features that make the design and implementation of a modern API much easier.

Tomasz Nurkiewicz wrote an interesting article in which he shares 10 Tips and Tricks about the ExecutorService,

Java EE

Working with List in REST APIs is often annoying. The type information of the objects contained in the List get lost and (de-)serialization fails. This can be easily solved by using GenericType and GenericEntity as Adam Bien shows in two of his blog posts:

JPA Entity Graph is one of the best new features in JPA 2.1. Roberto Cortez wrote a nice blog post about it and shows how to use Entity Graphs to implement use case specific eager loading: JPA ENTITY GRAPHS.

Java EE 8

3 new specifications for Java EE 8 were announced this week:

  • JSR 373 - Java EE Management API 2.0
    The new API will define a REST-based interface to describe managed objects and it shall supersede the existing EJB-based API.
  • JSR 374 - Java API for JSON Processing 1.1
    This update of the JSON-P specification shall support JSON Pointer and JSON Patch, add editing/transformation operations to the JSON object model and update the API to work with Java 8.
  • JSR 375 - Java EE Security API 1.0
    This new API shall update the security API for the modern cloud/PaaS application paradigm. Therefore the specification will try to standardize the user management, password aliasing, role mapping, authentication and authorization.
    You can also have a look at David Delabassees article at the Glassfish blog. He gives a short overview about the new Java EE Security JSR.

The announcement of the MVC 1.0 JSR caused some confusion. It was followed by several articles explaining the conceptual differences between the existing and well-known MVC in JSF and the purpose of the new spec. After all these theoretical discussions and explanations, Arjan Tijms chose a code based approach to point out the differences between the two MVC flavors.

Java 9

The JSR 376 Java Platform Module System was published for review this week. Looks like we are getting closer to a modular Java platform step by step.
This is also Lucys opinion who published a short article about JSR 376 on voxxed.

This and that

Petri Kainulainen had a closer look at the lifecycle of specifications in an agile environment and wrote an interesting post about the importance of enabling specifications and executable specifications.

Upcoming online events

Guillaume Laforge will give his talk Groovy for Java Developers at 5pm UTC on Tuesday 2nd at the vJUG.

Antoine Sabot-Durand will talk about CDI: From the Basic to the Advanced Features at 6pm UTC on Tuesday 2nd at the virtual:JBUG. 

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 every issue.

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