Moved Enum type marshaller from the app to support enum id for mongodb.
Dynamically finding collection type from hasMany field instead of
storing in Basic.java holder.
Added support for not equal in enum numbers for mongodb.