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 10/15: Java Threads, lock modes, JAX-RS caching 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

Heinz Kabutz published the 226th issue of his Java Specialists' Newsletter. This time he has a look at the creation of threads in Java and the role of the SecurityManager in this process. As always, a very interesting read for all advanced Java developers!


Java EE

Have you heard about Unsynchronized Persistence Contexts in JPA 2.1?
Well, don't worry, if you haven't. It is rarely discussed in the community. But Reza Rahman found a short video by the JPA 2.1 specification lead Linda DeMichiel about it: Unsynchronized Persistence Contexts in JPA 2.1/Java EE 7.



Vlad Mihalcea published the next issue of his Hibernate Master Class series. This time he shows how the PESSIMISTIC_READ and PESSIMISTIC_WRITE lock modes work.


Abhishek Gupta wrote a nice post about cache-control header in JAX-RS and how this can be simplified by using CDI producer methods to create an initialized CacheControl class. Always nice to see how these simple producer methods can provide huge benefits: Simplifying JAX-RS caching with CDI.


Java EE 8

Weld is the CDI reference implementation and the development team is currently working on a series of CDI 2.0 prototype releases. The latest release is Weld 3.0.0.Alpha5 and was published a few days ago. Jozef Hartinger wrote a blog post to announce the release and describe its highlights: Weld 3.0.0.Alpha5.


This and that

When we test a method, we often want to call it with different sets of parameters and make sure that we get the correct result. This can be done in lots of different ways. One of the better ways is to use parameterized JUnit tests as RafaƂ Borowiec describes in his blog post.


Are you familiar with branching in git or just like to refresh your knowledge? Than have a look at Learn Git Branchning. This site provides an interactive tutorial to explain the concepts behind branching in git.


See you next Monday

for the next issue of Java Weekly. You don't want to wait so long, than follow me on twitter, where I share great resources during the week.

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