DaoFactoryAbs df = DaoFactoryAbs.getInstance("jdbc", "h2", "ENTERPRISE");
CustomerDaoAbs customerDao = df.getCustomerDao();
customerDao.findAll().forEach(System.out::println);
===================================
connection = DriverManager.getConnection(url, user, password);
if url is "jdbc:h2:~/Code/project/nb/AppDatabase/res/db/ENTERPRISE";
All is ok
but
if url is "jdbc:h2:./res/db/ENTERPRISE";
connection is ok
but get error
Caused by: appdatabase.dao.exception.DaoException: org.h2.jdbc.JdbcSQLException: Tabla "CUSTOMER" no encontrada
Table "CUSTOMER" not found; SQL statement:
SELECT * FROM CUSTOMER [42102-197]
Can someone tell me the reason for this error?