Hibernate by Example - Part 2 (DetachedCriteria)

So last time we helped out justice league to effectively manager their super heroes. Today we focus on how The Avengers will be using Hibernate's Detached... Read all

Apache CXF: How to add custom SOAP headers to the web service request?

Here’s how to do it in CXF proprietary way:// Create a list of SOAP headers List<Header> headersList = new ArrayList<Header>(); Header testHeader =... Read all

Java Web Application Security - Part V: Penetrating with Zed Attack Proxy

web application security is an important part of developing applications. as developers, i think we often forget this, or simply ignore it. in my career, i've... Read all

Configuring Sonar with Maven

Sonar is an open source web-based application to manage code quality which covers seven axes of code quality as: Architecture and design, comments,... Read all

A Closer Look at JUnit Categories

JUnit 4.8 introduced Categories: a mechanism to label and group tests, giving developers the option to include or exclude groups (or categories.) This post... Read all

Exposing a POJO as a JMX MBean Easily With Spring

JMX is a great way to check or change state variables or invoke a method in a (remote) running application via a management GUI such as JConsole. And Spring... Read all

Handling Exceptions in Java Using Eclipse

What exactly is an exception? Exceptions are irregular or unusual events that happen in a method the program is calling which usually occurs at runtime. The... Read all

Template Method Pattern Tutorial with Java Examples

Read all

Top 10 Interesting NetBeans IDE Java Shortcuts I Never Knew Existed

I'm working on updating the NetBeans IDE Keyboard Shortcut Card (which you can always find under the "Help" menu in the IDE) and have learned about a lot of... Read all

Sorting Collections in Hibernate Using SQL in @OrderBy

When you have collections of associated objects in domain objects, you generally want to specify some kind of default sort order. For example, suppose I have... Read all

 

 

 

 

Top