Fixed missing wireup of dependency

Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
master
Andrew DeMaria 7 years ago
parent f5454bb0fd
commit ab602b7b19
No known key found for this signature in database
GPG Key ID: 0A3F5E91F8364EDF
  1. 12
      airsonic-main/src/main/java/org/airsonic/player/dao/UserDao.java

@ -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;
}
} }

Loading…
Cancel
Save