Fix using long at the wrong location

mapConfig.setTimeToLiveSeconds expects int but cacheConfiguration.setTimeToLiveSeconds expects long
Merge pull request #395 from LeovR/patch-1

Fix using long at the wrong location
Fix #396
Merge branch 'master' of https://github.com/jhipster/generator-jhipster
Corrected Transactional tests
Corrected ehcache configuration for tests
Use MediaType instead of user-written string
Use MediaType instead of user-written string
Use MediaType instead of user-written string
Use MediaType instead of user-written string
Use MediaType instead of user-written string
Use existing TimeUnit
Fix #392
Merge pull request #403 from Hartimer/master

Use existing constants instead of user-written values
Corrected import
Fix #390
release v0.17.0