Added setter for id in BaseDomain, Fixed a bug in db config, added jpa plugin