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 46: Joda-Time to Java8, new Apache Tamaya, Java internals 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.


Prior to Java 8 the standard date and time handling had several issues. Therefore lots of projects used the Joda-Time library. But this has changed with Java 8. The new Java date and time API solves the existing problems and the usage of an external library is no longer necessary. 
But what to do with existing projects that use Joda-Time and are now moved to Java 8? Replacing the existing Joda-Time code with Java 8 Date and Time seems to be easy and is an option you should consider. Stephen Colebourne explains what you need to do in Converting from Joda-Time to java.time.

Mark Struberg was asked to help with a tricky NonSerializableException seemingly caused by a serializable non-static inner class. Do you know the reason? 
If yes, you belong to Marks top 1% of all Java developers. If no, don't worry. He wrote a great article explaining the Java internals of inner classes and why the NonSerializableException was thrown.


Oracle released a new batch of recorded JavaOne talks: JavaOne 2014.
Now there are 45 recorded JavaOne 2014 talks available at parleys.

Tools and Frameworks

Are you familiar with JBoss Forge? If not, you should have a look at this hands on lab provided by Antonio Goncalves, Daniel Cunha, Ivan St Ivanov and Koen Aers: Run a JBoss Forge “Hands-on-Lab” at Your Local User Group.
You could also use it to organize a lab with some colleagues or at your local JUG.

If you follow the Java Weekly, you have heard about the failed Java configuration JSR proposal. The good news is, there is now the Apache Tamaya project that will focus on configuration and will implement the ideas and concepts of the JSR proposal. The project has entered the Apache Incubation Status a few days ago. To learn more about it, look at:

This and that

Getting more responsibilities as a developers also means, that you have less time to write code. In the worst case you are spending all your time working on your responsibilities and no time implementing something. But it is essential, that you spend at least some time writing code to stay effective. Pet Kua explains in his article HOW DO I STILL WRITE CODE AS A TECH LEAD? how to handle this situation.

Do you take care that your package dependencies contain no cycles?
Jens Schauder does and he gives 5 reasons why you should do the same: FIVE REASONS WHY YOU SHOULD KEEP YOUR PACKAGE DEPENDENCIES CYCLE FREE.

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