| | |
| | | User admin = new User(); |
| | | admin.setId("admin"); |
| | | admin.setPw("admin"); |
| | | admin.setFirstName("admin"); |
| | | admin.setLastName("admin"); |
| | | admin.setEmail("none"); |
| | | UserMgr um = new UserMgr(); |
| | | um.setServletContext(servletContext); |
| | | um.createUser(admin); |
| | |
| | | private boolean dbVorhanden(PersistenceManager pm, String sql) { |
| | | boolean istVorhanden = false; |
| | | List<List<String>> list = pm.select(sql, Record.WITHOUT_BLOBS); |
| | | if(list.size() > 1) { |
| | | if(list != null && list.size() > 1) { |
| | | istVorhanden = true; |
| | | logger.fine("Datenbank ist vorhanden"); |
| | | } |