Fixed missing wireup of dependency

Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
This commit is contained in:
Andrew DeMaria
2017-09-16 09:25:13 -06:00
parent f5454bb0fd
commit ab602b7b19
@@ -23,6 +23,7 @@ import org.airsonic.player.domain.*;
import org.airsonic.player.util.StringUtil; import org.airsonic.player.util.StringUtil;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.RowMapper; import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
@@ -67,7 +68,12 @@ public class UserDao extends AbstractDao {
private UserRowMapper userRowMapper = new UserRowMapper(); private UserRowMapper userRowMapper = new UserRowMapper();
private UserSettingsRowMapper userSettingsRowMapper = new UserSettingsRowMapper(); private UserSettingsRowMapper userSettingsRowMapper = new UserSettingsRowMapper();
String userTableQuote = ""; private final String userTableQuote;
@Autowired
public UserDao(String userTableQuote) {
this.userTableQuote = userTableQuote;
}
/** /**
* Returns the user with the given username. * Returns the user with the given username.
@@ -390,8 +396,4 @@ public class UserDao extends AbstractDao {
String getUserTable() { String getUserTable() {
return userTableQuote + "user" + userTableQuote; return userTableQuote + "user" + userTableQuote;
} }
public void setUserTableQuote(String userTableQuote) {
this.userTableQuote = userTableQuote;
}
} }