H2 console can't access jbdc database -
i've been looking around cannot find solution problem.
i have h2 database managed hybernate , jpa. specified address in persistence.xml : jdbc:h2:./data/repository.
i can in console h2, when enter in console same address, can't see tables... exist since can them java application.
thank's help, appreciated.
you have used path relative current working directory. current working directory depends on , how start application. use absolute path instead of relative one:
jdbc:h2:/data/repository or relative current user home directory:
jdbc:h2:~/data/repository
Comments
Post a Comment