Blog
Tracking another repository in Git
21 May, 14

Tracking another repository in Git

Recently, I had to create few pull requests to other repositories and in order to do that I had to track the code on some repositories for updating my copy and finally publishing my changes to them. In such situation following steps/commands can help: Add the...
One-To-One mapping with shared primary keys
13 Apr, 14

One-To-One mapping with shared primary keys

Here’s a simple example of how to share primary keys between two persistent entities having one-to-one association. We’ll have a User entity which has one address. Here’s the User POJO: public class User { Long id; Address address; String username;...
Make your view IE8 aware
5 Apr, 14

Make your view IE8 aware

There might come a requirement where you will want to switch the styling of the html elements according to browser and mainly IE. For example, to make your view IE8 aware you can define a class on the body with IE’s conditional comments like: <!--[if...