List of usage examples for org.springframework.dao InvalidDataAccessResourceUsageException getMessage
@Override
@Nullable
public String getMessage()
From source file:com.devnexus.ting.core.service.impl.SystemSetupServiceImpl.java
@Override public boolean isDatabaseSetup() { try {/*from w ww . ja v a2 s .co m*/ final List<SchemaMigration> migrations = schemaMigrationRepository.findAll(); if (migrations.isEmpty()) { return false; } else { return true; } } catch (InvalidDataAccessResourceUsageException e) { LOGGER.warn("Looks like the database has not been set up, yet.", e.getMessage()); return false; } }