Java
-
Getting started with annotation based Spring MVC web application
Here is a minimal way to get a Spring 3 MVC project started with Maven. First create spring-web-annotation/pom.xml file and…
Read More » -
Java Auto-Unboxing Gotcha. Beware!
What do you think that the following code snippet will print? …
Read More » -
Too Many Parameters in Java Methods, Part 1: Custom Types
I consider lengthy parameters lists in constructors and methods to be another “red flag” in Java development that may not…
Read More » -
Stacks and Queues in Java
I have been working on some Java code recently that required both a stack and a queue. The choices to…
Read More » -
Unique hashCodes is not enough to avoid collisions
There is a common misconception that if you have unique hashCode() you won’t have collisions. While unique, or almost unique,…
Read More » -
Adding Social Sign In to a Spring MVC Web Application: Configuration
In the good old days users logged in by using the combination of username and password. Although nowadays some people…
Read More » -
Step by step auto code generation for POJO domain java classes and hbm using Eclipse Hibernate plugin
Overview: In this tutorial we’ll use Eclipse Hibernate tool to auto generate domain objects and the corresponding hbm xml files.…
Read More » -
Write an auto-debugger to catch Exceptions during test execution
Previously I have stated that there are some exceptions you would always want to keep an debugger breakpoint on for.…
Read More » -
Java Object to Object Mapper
I’ve been using Dozer some time on the project. But, recently I have got very interesting error which motivates me…
Read More »