Add tableName setter for JdbcHttpSessionConfiguration

See gh-488
This commit is contained in:
Eddú Meléndez
2016-04-18 20:38:45 +10:00
parent 67201417df
commit 5865b0a715
2 changed files with 52 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ import org.springframework.util.StringUtils;
* {@link DataSource} must be exposed as a Bean.
*
* @author Vedran Pavic
* @author Eddú Meléndez
* @since 1.2.0
* @see EnableJdbcHttpSession
*/
@@ -106,6 +107,14 @@ public class JdbcHttpSessionConfiguration extends SpringHttpSessionConfiguration
this.springSessionConversionService = conversionService;
}
public void setTableName(String tableName) {
this.tableName = tableName;
}
public void setMaxInactiveIntervalInSeconds(Integer maxInactiveIntervalInSeconds) {
this.maxInactiveIntervalInSeconds = maxInactiveIntervalInSeconds;
}
private String getTableName() {
if (StringUtils.hasText(this.tableName)) {
return this.tableName;