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 12/15: CDI, templating in MVC, Keycloak, recorded sessions 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 EE

Romain Manni-Bucau explains in his recent blog post how to use CDI event observers to implement the behavior of @Startup without EJB: CDI and @Startup: SOLVED!


Another useful CDI example was posted by Chris Ritchie. He shows how to use CDI producer methods to read properties from a .properties file and inject them into your beans: Inject external properties using CDI, Java and WildFly.


Vlad Mihalcea had a detailed look at the CascadeType.LOCK and how the lock is propagated from the parent to the child entities: Hibernate CascadeType.LOCK gotchas.


Slow database queries are often the cause for performance issues. Therefore a check for slow queries should always be the first step in the analytic process. How to configure Hibernate statistics to get the required information is described in: How to activate Hibernate Statistics to analyze performance issues.


Java EE 8

There are already lots of great templating solutions available. Therefore the MVC JSR will not provide an additional one but provide a way to use the existing ones: Templating in the MVC JSR. Ozark, the MVC reference implementation, already supports a list of different templating solutions.


It took some time, but now the JSR 375 (Java EE Security API) Expert Group is formed. David Delabassee gives a short overview about the EG members and how to follow the discussions: Java EE Security API (JSR 375) Update.
The will be also two upcoming talks about the JSR at JavaLand and Devoxx France.


Security

Red Hat has decided to stop their work on the PicketLink project and merge it into Keycloak. You can read more about the reasons and the official announcement: PicketLink and Keycloak projects are merging!


If you want to give Keycload a try, you should have a look at Setting up Keycloak on Wildfly. Sebastian Lorenz walks you through the setup process and provides a small sample application to test the configuration.


This and that

Petri Kainulainen wrote a new post in his Getting Started with Gradle series. This time he explains how to use gradle to create a web application project.


Recordings

Last week, two interesting online events took place. And the good thing about online events is, you can watch the replay, if you missed the live event.


Aleksey Shipilëv spoke about the Java Memory Model at the virtual JUG. Here you can find the replay, a short summary of the talk and an interview with Aleksey: Java Memory Model Pragmatics by Aleksey Shipilëv.


Ales Justin gave an introduction to the CapeDwarf project, an open source implementation of the Google App Engine. If you like to learn more, you can watch the replay here: Implementing your own Google App Engine.


Upcoming online events

On Wednesday 18th at 5pm UTC, Bert Ertman will talk about Building Modular Java Applications in the Cloud Age at the vJUG.


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