JPA Attribute Converter – The better way to persist enums
|

JPA Attribute Converter – The better way to persist enums

JPA provides 2 standard mappings for enums, but both have serious downsides. Using the @Enumerated annotation, you can use EnumType.ORDINAL or EnumType.STRING to map the enum value to its database representation. The ordinal of an Enum depends on the ordering of its values and can create problems if we need to add new ones. The…

Criteria Update/Delete – The easy way to implement bulk operations with JPA2.1
| |

Criteria Update/Delete – The easy way to implement bulk operations with JPA2.1

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…

Wildfly 8.0.0.Beta1 Released – all major features and user facing EE7 APIs implemented

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 implements all user facing EE7 APIs. This includes…