Hi
I'm trying to use explicit relative path url, but I get error Table Not
Found
Project Netbeans
AppDatabase
build
dist
nbproject
res
db
ENTERPRISE.mv.db
src
===================================
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?
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.