5:33:44,381 WARN org.hibernate.cfg.SettingsFactory:126 - Could not obtain connection metadata
java.sql.SQLException: 不支持的特性
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at oracle.jdbc.dbaccess.DBError.throwUnsupportedFeatureSqlException(DBError.java:689)
at oracle.jdbc.OracleDatabaseMetaData.supportsGetGeneratedKeys(OracleDatabaseMetaData.java:4180)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:123)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
at TeacherTest.main(TeacherTest.java:19)
15:33:44,933 INFO org.hibernate.tool.hbm2ddl.SchemaExport:226 - Running hbm2ddl schema export
15:33:44,934 DEBUG org.hibernate.tool.hbm2ddl.SchemaExport:242 - import file not found: /import.sql
15:33:44,935 INFO org.hibernate.tool.hbm2ddl.SchemaExport:251 - exporting generated schema to database
15:33:44,937 DEBUG org.hibernate.tool.hbm2ddl.SchemaExport:377 -
drop table Teacher cascade constraints
15:33:44,976 DEBUG org.hibernate.tool.hbm2ddl.SchemaExport:377 -
drop sequence teacherSEO_DB
15:33:44,994 DEBUG org.hibernate.tool.hbm2ddl.SchemaExport:377 -
create table Teacher (
id number(10,0) not null,
name varchar2(255 char),
title varchar2(255 char),
primary key (id)
)
15:33:45,021 DEBUG org.hibernate.tool.hbm2ddl.SchemaExport:377 -
create sequence teacherSEO_DB
15:33:45,026 INFO org.hibernate.tool.hbm2ddl.SchemaExport:268 - schema export complete
Hibernate:
select
teacherSEO_DB.nextval
from
dual
Hibernate:
insert
into
Teacher
(name, title, id)
values
(?, ?, ?)
java.sql.SQLException: 不支持的特性
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at oracle.jdbc.dbaccess.DBError.throwUnsupportedFeatureSqlException(DBError.java:689)
at oracle.jdbc.OracleDatabaseMetaData.supportsGetGeneratedKeys(OracleDatabaseMetaData.java:4180)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:123)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
at TeacherTest.main(TeacherTest.java:19)
15:33:44,933 INFO org.hibernate.tool.hbm2ddl.SchemaExport:226 - Running hbm2ddl schema export
15:33:44,934 DEBUG org.hibernate.tool.hbm2ddl.SchemaExport:242 - import file not found: /import.sql
15:33:44,935 INFO org.hibernate.tool.hbm2ddl.SchemaExport:251 - exporting generated schema to database
15:33:44,937 DEBUG org.hibernate.tool.hbm2ddl.SchemaExport:377 -
drop table Teacher cascade constraints
15:33:44,976 DEBUG org.hibernate.tool.hbm2ddl.SchemaExport:377 -
drop sequence teacherSEO_DB
15:33:44,994 DEBUG org.hibernate.tool.hbm2ddl.SchemaExport:377 -
create table Teacher (
id number(10,0) not null,
name varchar2(255 char),
title varchar2(255 char),
primary key (id)
)
15:33:45,021 DEBUG org.hibernate.tool.hbm2ddl.SchemaExport:377 -
create sequence teacherSEO_DB
15:33:45,026 INFO org.hibernate.tool.hbm2ddl.SchemaExport:268 - schema export complete
Hibernate:
select
teacherSEO_DB.nextval
from
dual
Hibernate:
insert
into
Teacher
(name, title, id)
values
(?, ?, ?)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货