Lazy loading is often an issue with JPA. You have to define at the entity if you want to use FetchType.LAZY (default) or FetchType.EAGER to load the relation and this mode is always used. FetchType.EAGER is only used if we want to always load the relation. FetchType.LAZY is used in almost all of the cases
Encrypting the communication between client and server provides improved security and privacy protection for your system. This can be an important requirement by the customer, especially if client or server need to work in an unprotected network. This article shows you how to setup SSL encrypted EJB calls in JBoss AS 7.
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
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 their drawbacks. The ordinal of an Enum depends on the ordering of its values and can
JPA 2.1 added a list of nice features to the specification. One of them is the support for bulk update and delete operations in the Criteria API. We will have a look at the new CriteriaUpdate and CriteriaDelete classes in this article. If you like to learn more about the other features added in JPA 2.1, have
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
JPA 2.1 brings several improvements. One of them is the Attribute Converter. It allows the developer to specify methods to convert between the database and the Java representation of an attribute.
Contents1 Wildfly 8.0.0.Beta12 What’s new?3 Road Map4 Links Wildfly 8.0.0.Beta1 Yesterday, 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