minor change in EntityManager

This commit is contained in:
magenoxx 2012-01-25 18:09:42 +04:00
parent fd25002578
commit 8536d9d78d

View file

@ -8,16 +8,15 @@ import java.sql.*;
/** /**
* @author noxx * @author noxx
*/ */
public class EntityManager { public enum EntityManager {
instance;
private static final Logger log = Logger.getLogger(EntityManager.class); 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"; private static final String MAGE_JDBC_URL = "jdbc:sqlite:db/mage.db";
static { static {
instance = new EntityManager();
try { try {
init(); init();
} catch (Exception e) { } catch (Exception e) {
@ -145,11 +144,6 @@ public class EntityManager {
log.debug("[DBTest] checking test user [ERROR]"); log.debug("[DBTest] checking test user [ERROR]");
log.debug("[DBTest] couldn't find test user"); 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 { public static void main(String[] args) throws Exception {