I was planning to write this blog 2-3 days back in fact not a blog but a blog series & this blog will be the starting of this blog series. This blog will only give you an overview what I’ll be discussing in the coming blogs, first the reason why I’m writing this blog 🙂 …
Category Archives: Uncategorized
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 …
Continue reading “Release Strategy for Java Web based projects”
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 …
Continue reading “Git : How to fix issues in a merged branch”
My experience with Git
Few days ago I came to know about git, so to give it a try I created an account on github. To those who doesn’t know much about it GIT is a fast version control system :). Since I’m using windows I’ve to download a git client, so the first google result that came on …
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 …
Continue reading “Equals implementation for Lazy loaded objects in Hibernate”
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 …
Property file reader
In my current project we have some property files and we need to read properties from those property files, so we come up with an approach to read property files. The main points that we need to focus was1.) The properties should be loaded only once, In a way we need singleton behavior2.) We can …
JSR-303
JSR-303The main idea behind JSR-303 is to have a common approach for validation at all places of the application in a simplistic way. The bean validation is built keeping in mind the validation process as a kind of meta information for a bean, so if you say that a property of bean should be not …