Existence of workspace is checked when creating content with test case

Signed-off-by: MKRussel <russel@smitsol.com>
Issue #SMARTCMS-53 - Existence of workspace is not checked when creating a content
Add singleton annotation on DAO Impls and re-use class injection

The class injection is needed in couple of places but they were
different requiring different injection which was unrealistic to have
so made them coherent so that single injection can be used.

The DAO Implementations are not required to be non-singleton
hence instead of marking it singleton in each case directly mark
them @Singleton at class definition.

Signed-off-by: Imran M Yousuf <imyousuf@smitsol.com>
Issue #SMARTCMS-50 - Allow In-Memory transaction capabilities for Smart CMS DTOs
Implement transaction related injection code generation

Also use it in the demo module so that the creation of DAOs
goes through test in the demo's test phase.

Signed-off-by: Imran M Yousuf <imyousuf@smitsol.com>
Issue #SMARTCMS-50 - Allow In-Memory transaction capabilities for Smart CMS DTOs
Refactor code

Signed-off-by: MKRussel <russel@smitsol.com>
Issue #SMARTCMS-53 - Existence of workspace is not checked when creating a content

Signed-off-by: MKRussel <russel@smartitengineering.com>
Fix a bug

Signed-off-by: MKRussel <russel@smitsol.com>
Content creation should throw exception if workspace id and id of content is null in ContentId object

Signed-off-by: MKRussel <russel@smitsol.com>
Error message correction

Signed-off-by: MKRussel <russel@smitsol.com>
Merge pull request #2 from frodooooo39/master

Pulling from frodooooo39/smart-cms