Change method getXXXTypeById to return property type object rather than
its id. Affect files are: TypesService and TypesServiceImpl

By ZhiYu Yang
27 Sep 2014
test case for getting object based on criteria control
Merge branch 'Kim'

	Modify TypesService&TypesServiceImpl -> findStatusTypes
	From findStatusTypes() to findStatusTypes(int criteriaId)
	For example, the status types in enquiry should pass 1. For other place
please define the id and value in CriteriaControls and
CriteriaControlsValues tables
	
	By ZhiYu Yang
	27 Sep 2014
mods to configuration to change from update to validate for bean-table
mapping
mods to entity related to histories table
mods to define sql-type in some attribute in hbm files
mods to map contacts to createdUser and updatedUser

by Kim To, 28/09/2014

Changes files:
applicationContext.xml
hibernate.cfg.xml
all beans and hbm files
EnquiryAction.java
Merge remote-tracking branch 'origin/Kim'

This version is aim to suit the change of the database with proper
configuration in spring "set hbm2dll property with value 'validate'"

Kim also modify the db add trigger and some other stuff, check her
branch commit comment for more details

By ZhiYu Yang
28 Sep 2014
Merge branch 'master' into David
David merge with Master 28/09/2014