Using Projections in Hibernate

Hi Guys, I am back with another post titled “Using Projections in Hibernate”. When we deal with large objects(containing multiple attributes) we use Projections to select only a subset of attributes of an object. It helps in avoiding unnecessary column...

Inheritance in Hibernate

Inheritance is one of the biggest mismatch between object oriented model and relational model(SQL based models) because object oriented paradigm supports both Is a(Inheritance) and Has a(Association) relationship. But relational models support only Has a relationship...

Filtering Records using Hibernate Criteria

Hi Guys! I am back with a new blog post titled “Filtering Records using Hibernate Criteria”. I often use Hibernate Criteria in my project whenever a new entity is added and I need to implement certain filters on it. The Hibernate Session provides...

Useful Git Commands

Hi. I am back with a new blog post on some Useful Git commands. Recently I pulled the latest code of a branch and due to some bad commit I was not able to use certain feature. So, I needed a way to rollback to some previous version(commit) i.e. the point when the code...

Managing multiple ssh key

Some times we need to manage more than one ssh key. There may be many scenario like you are having more than 2 github account or you have an account and your client want to add your ssh key to their github account. In past I faced same kind of issue and found...

git repository multiple remotes

In my previous project repository was hosted on github.com and application was supposed to deployed on heroku which was also provide a git repository. Every time I had to push code on main repository and after that same changes need to pushed on heroku git repo. I...

Lithium-Ion Battery Charger Circuitry

Lithium-ion battery management Hi everyone, this blog is about the battery management circuit of a typical Lithium-ion battery. If you want to make a simple Lithium-ion battery charger or a handy wireless stuff with charging enabled, you can use this very simple...

Install Window Application in Ubuntu

Purpose of this blog, if you want to install .exes file in Ubuntu that is possible via wine. Run this command and Install this application: sudo apt-get install wine How to install Application: Right click any .exe file Open with Wine Window Program How to uninstall...