use name on the class type
IDM related changes and use JPA
Merge pull request #53 from anilsaldhana/master

see comments