We should follow below rules when we are creating pojo in Spring:
1. There should be a poji.
2. The pojo should should implement the poji.
3. We don't need a no argument constructor, but you should keep in mind we will map the constructor in the map xml file.
4. All the member variables should be private, there should be setXXX() and getXXX() accompany with these member variables.