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 #11: Missing stream method, Java 9 overview, lost updates 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 Weekly #10: Concurrency, no config JSR, MVC, JCP 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 Weekly #9: Money, retired DTOs, JSR for MVC, JDK tools aand 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 Weekly #8: Java9, JMS 2, JUnit, Microservices and more...

The Java ecosystem is evolving at a rapid pace and it can be a challenge to keep track on it. Fortunately lots of 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 resources I found during the week and present them to you all in one place. I hope that 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. I will definitely read it and come back to you.


Java 9

Mark Reinhold announced the first batch of JEPs for Java 9. These are:

For me as a developer the two most interesting JEPs are 198 Light-Weight JSON API and 201 Modular Source Code. JEP 201 is only the first step for the JIGSAW project and JEP 200 will be more interesting. But it is good to see, that it is targeted for Java 9.


Java EE

The Java Temporary Cache API (JCache) was released a few month ago and was one of the most wanted features in the Java EE 8 community surveys. If you like to refresh your knowledge of this specification, you should have a look at Java Temporary Caching API aka JCache by David Delabassee. He gives a short overview of existing resources and upcoming JavaOne sessions.

Java Weekly #7: Generics with Lambda, unified type conversion and more...

Java

Java generics are an important concept in the modern Java development and they are key to understand and use the new Java 8 lambda expressions to its full extend. Josh Juneau wrote a great article, explaining how to use Java generics and why we need them to use lambda expressions.


Javin Paul wrote a great article about a small change introduced with JDK 1.7.0_40. Empty ArrayList and HashMap are now initialized with a capacity of 0, instead of an Object array of size 10 for an empty ArrayList and a default capacity of 16 for an empty HashMap. Depending on the application, this can be a huge performance improvement.


The Java update 8u11 and 7u65 introduced some errors and broke several third-party tools. This was the result of a stricter verification by the bytecode verify as described by Niv Steingarten in his post Oracle’s Latest Java 8 Update Broke Your Tools — How Did it Happen?


Java EE

Arjan Tijms had a look at the different approaches on how to convert objects in Java EE. He describes 5 (yes, five!) ways which are currently defined in different Java EE specifications and names two more APIs which are part of Java SE. 
This raises the questions, if we need to define one unified conversion API. From my point of view, this should have been already done in the past. But better now then never...

Java Weekly #6: Micro Services, CDI 2.0, NoEstimates and more...

Java

After using Scala for some days and switching back to Java, Lucas Eder started to miss some features of the Scala syntax. He wrote a blog post about The 10 Most Annoying Things Coming Back to Java After Some Days of Scala

Java EE

Roberto Cortez wrote a great tutorial on how to deploy Spring Batch as a Wildfly module. You should have a look, if you want to use one of the most feature rich implementations of JSR-352 with Wildfly.


Monitoring the O/R mapper becomes an important task, if you need to analyze performance issues of a Java EE application. Therefore Hibernate provides its Statistics Interface which exposes several statistics related to sessions, entites, queries and more. If you like to learn how to activate these statistics and how you can access them, have a look at Hibernate Statistics with Hawtio and Jolokia by Markus Eisele.

Java Weekly #5: Metaspace, Server-Sent Events, Java EE 8 drafts and more...

Java

If you like to learn more about the removal of PermGen and the introduction of Metaspace in Java 8, you should have a look at Where Has the Java PermGen Gone? by Monica Beckwith. She wrote a great post about problems with the old PermGen and how they were solved with the new Metaspace.


Java EE

Server-Sent Events (SSE) were introduced with HTML 5 and enable the server to push data via HTTP to the client. Shing Wai Chan shows in his post Server-Sent Events with Async Servlet By Example how you can implement SSE by only using the Servlet API.


Antonio Goncalves wrote an interesting article about integration testing. He wants to execute the integration tests of his web application only, if it is successfully deployed on the JBoss application server. Otherwise the tests shall be skipped. He describes in his post Your tests assume that JBoss is up and running how this can be achieved by using JUnit assumptions and the JBoss HTTP management API.