Fixed missing wireup of dependency
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
This commit is contained in:
@@ -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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user