изучаю Hibernate
читаю руководство-первый пример
столкнулся с необычной ошибкой,
Вопрос : может ли JDBC драйвер не поддерживать работу с Hibernate ??
Idea выдает следующую ошибку:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
com.intellij.rt.execution.application.AppMain events.EventManager store
0 [main] INFO cfg.Environment - Hibernate 3 . 2 cr2
0 [main] INFO cfg.Environment - hibernate.properties not found
0 [main] INFO cfg.Environment - Bytecode provider name : cglib
15 [main] INFO cfg.Environment - using JDK 1 . 4 java.sql.Timestamp handling
156 [main] INFO cfg.Configuration - configuring from resource: /hibernate.cfg.xml
156 [main] INFO cfg.Configuration - Configuration resource: /hibernate.cfg.xml
750 [main] INFO cfg.Configuration - Reading mappings from resource: events/Event.hbm.xml
968 [main] INFO cfg.HbmBinder - Mapping class : events.Event -> EVENTS
1031 [main] INFO cfg.Configuration - Configured SessionFactory: null
1171 [main] INFO connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!)
1171 [main] INFO connection.DriverManagerConnectionProvider - Hibernate connection pool size: 1
1171 [main] INFO connection.DriverManagerConnectionProvider - autocommit mode: false
1203 [main] INFO connection.DriverManagerConnectionProvider - using driver: interbase.interclient.Driver at URL: jdbc:interbase://localhost/c:/temp/events.gdb
1203 [main] INFO connection.DriverManagerConnectionProvider - connection properties: {user=SYSDBA, password=****}
1406 [main] INFO cfg.SettingsFactory - RDBMS: InterBase, version: WI-V6. 5 . 0 . 28
1406 [main] INFO cfg.SettingsFactory - JDBC driver: InterClient, version: 2 . 50 . 5 for JRE 1 . 3 and InterBase v6
1421 [main] WARN cfg.SettingsFactory - Could not obtain connection metadata
interbase.interclient.DriverNotCapableException: [interclient] Unsupported feature: using a JDBC 2 method which is not yet supported.
???????? ?????????? interbase.interclient ??. ? ??????????? ?? API.DriverNotCapableException
at interbase.interclient.DatabaseMetaData.supportsResultSetType(Unknown Source)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java: 81 )
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java: 1928 )
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java: 1211 )
правильно ли я понял что интербазе не может найти необходимый ему метод..?
и еще вопрос при указании в настройках
1.
<property name="connection.url">jdbc:interbase://localhost/c:/temp/events.gdb</property>
надо ли указывать файл БД или только каталог где он должен находиться ?
-
Цель в жизни определяет все..
Выбор есть всегда..
Но мы часто не хотим его делать..