Automated Database Update Or Rollback

One of the important step during release is doing database update and rollback in case something goes wrong, usually people perform this operation manually. In this blog I’ll talk about how we can automate this process by following some convention. Here I’m taking mysql database as an example we can have same conventions for other …

Release Strategy for Java Web based projects

In this post I’ll be discussing about the 2 strategies that  we can follow for releasing a Java based web project. A project can be primarily released in two ways    Incremental Release    Full Release Incremental Release is done in big projects which has multiple modules & usually few modules gets updated between two releases. It …

Git : How to fix issues in a merged branch

Sometime back we faced a peculiar problem in our project where we have to fix some issue introduced due to a merged branch. To explain this problem first I’ve to explain the way we manage branches. As we entered in the maintenance mode of project there was a dire need of fixing issues and working …

Equals implementation for Lazy loaded objects in Hibernate

Most of you already know about the standard way to implement equals and hashCode for a class. As an example lets consider a User class public class User {private Long id;private String name;private String address;} If we consider Id as unique identifier for logical equality of users then the equals and hashCode method can be …

XStream Int parsing issue

This blog is about issue in parsing int data from an xml. While working with XStream I experienced a problem, if the xml comprises an int data beginning from 0 XStream was throwing an Exception ConversionException. On digging deeper I patterned out that the converter(IntConverter) used to convert the string value into corresponding integer value …

Template design pattern in action part1

So finally I got time to complete the blog 🙂 I’ll discuss about how we can solve the problem using templating design pattern. So what we have done, we have written a Template class “CacheTemplate” having a method getCachedData. getCachedData takes 2 parameters key: Key for which we have data cached cacheCallback: If we don’t …

Design a site like this with WordPress.com
Get started