Since JAXB is part of the JDK, it is one of the most often used frameworks to process XML documents. It provides a comfortable way to retrieve and store data from XML documents to Java classes. As nearly every Java developer has already used JAXB, I will not explain the different JAXB annotations. Instead I will focus on a little command line tool called xjc and show you how to generate your binding classes based on an existing XSD schema description.
Tuesday, January 14, 2014
Tuesday, October 22, 2013
Persisting enums with JPA 2.0 is possible, but there is no nice way to do it. Using the @Enumerated annotation, you can use EnumType.ORDINAL or EnumType.STRING to map the enum value to its database representation. But both options have some drawbacks, that we will discuss in the first part of this article. In the second part, I will show you to avoid these drawbacks by using a JPA 2.1 Type Converter.
Tuesday, October 15, 2013
With JPA2.1 the Criteria API was extended by CriteriaUpdate and CriteriaDelete. The two classes can be used to implement bulk update and delete operations using the Criteria API.
Friday, October 11, 2013
Hello and welcome to "Links of the week (CW41)" :-)This week was really busy for me, so there was not so much time to read interesting articles. But that does not mean, that nothing happened. Wildfly 8.0.0.Beta1 was released on the 4th and it became my main topic of the last days. It is the first Wildfly release which implements all user facing EE7 APIs and contains several other improvements like the new high performance web server Undertow. Check the Release Notes and Documentation for more information.
Bear Giles wrote a great article about Database Encryption Using JPA Listeners. He describes a nice and easy way to separate persistence and security by using JPA Listeners.
JPA 2.1 Type Converter are an alternative way to encrypt data before persisting it in the database. A Type Converter can be used to convert an attribute from its entity representation to its database representation and back. If you want to learn more about Type Converters, have a look at the article I wrote on Monday: JPA 2.1 - How to implement a Type Converter
Monday, October 7, 2013
Saturday, October 5, 2013
Wildfly 8.0.0.Beta1Yesterday, the Wildfly team released Wildfly 8.0.0.Beta1!
The server is available at the Wildfly download page. If you want to read a detailed description of all changes, check the official release notes.
What's new?Java EE 7 APIs
This is the first Wildfly version which implements all user facing EE7 APIs. This includes updates for JPA, Batch processing, Concurrency, JCA and others.
If you want to try Java EE7 features or have already done that, make sure to use to this version.
The development team plans to reduce the number of used ports to two with 8.0.0.final. Port 8080 for the application and port 9990 for the management interface. This is done by multiplexing the different protocols over HTTP.
That goal is nearly achieved in this release. Beside the two mentioned ports, Wildfly uses the deprecated native management port 9999. This port will be removed in 8.0.0.Final release.
Management Role Based Access Control (RBAC) and Auditing
Now Wildfly supports RBAC to implement different permissions for the management interface.
The development team resolved 219 issues in this release.
Road MapBased on the Wildfly JIRA, the road map for Wildfly 8 looks like this:
LinksWildfly download page
Thursday, October 3, 2013
Hello and welcome to "Links of the week (CW40)" :-)
I read about two main topics during the last days. The first was OpenShift. As you might remember, I posted a link to an interview and howto last week. But I did not stop there and found more interesting links about it.
If you are new to OpenShift but want to use it, you should check the OpenShift Developer Center. The OpenShift Team provide lots of Ressources to learn more about OpenShift and how to use it. This is the point to start if you want to use OpenShift:
And if you want to learn more about the OpenShift architecture, you should read Shane Johnsons article about it:
My second big topic of the last two weeks was (of course) JavaOne2013. I was not able to attend so I tried to get as much content about it as possible.
There were a lot of talks about the keynotes. But to view the VoD is better than to read a summary. So I was happy when Oracle published them as VoDs:
If you want more content about JavaOne you should read Dustin Marks huge Collection of JavaOne2013 related resources. He collected lots of stuff and wrote a Brief summary for each. A must read for everyone who wasn't there.