mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
minor change in EntityManager
This commit is contained in:
parent
fd25002578
commit
8536d9d78d
1 changed files with 3 additions and 9 deletions
|
@ -8,16 +8,15 @@ import java.sql.*;
|
|||
/**
|
||||
* @author noxx
|
||||
*/
|
||||
public class EntityManager {
|
||||
public enum EntityManager {
|
||||
|
||||
instance;
|
||||
|
||||
private static final Logger log = Logger.getLogger(EntityManager.class);
|
||||
|
||||
private static final EntityManager instance;
|
||||
|
||||
private static final String MAGE_JDBC_URL = "jdbc:sqlite:db/mage.db";
|
||||
|
||||
static {
|
||||
instance = new EntityManager();
|
||||
try {
|
||||
init();
|
||||
} catch (Exception e) {
|
||||
|
@ -145,11 +144,6 @@ public class EntityManager {
|
|||
log.debug("[DBTest] checking test user [ERROR]");
|
||||
log.debug("[DBTest] couldn't find test user");
|
||||
}
|
||||
|
||||
while (rs.next()) {
|
||||
System.out.println("user = " + rs.getString("login"));
|
||||
System.out.println("password = " + rs.getString("password"));
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
|
|
Loading…
Reference in a new issue