繁体   English   中英

Spring JPA spring.jpa.hibernate.ddl-auto:create ORA-02000:缺少ALWAYS关键字

[英]Spring jpa spring.jpa.hibernate.ddl-auto:create ORA-02000: missing ALWAYS keyword

当我使用spring-boot-starter-data-jpa并设置spring.jpa.hibernate.ddl-auto:create和我的实体时

@Entity
public class BaseOnDoubleValue extends DoubleData {
    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    @Column(name = "uuid",length = 40)
    private long uuid;
    private int baseid;

然后我有这样的错误

2015-11-19 11:07:02.438 ERROR 5876 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : HHH000389: Unsuccessful: create table base_on_double_value (uuid bigint generated by default as identity, baseid integer not null, date_time timestamp, error integer not null, id integer not null, quality smallint not null, base_value double, primary key (uuid))
2015-11-19 11:07:02.438 ERROR 5876 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : ORA-02000: missing ALWAYS keyword

你能帮我看看吗?

我自己解决此问题。

我将此添加到application.properties

spring.jpa.database= oracle

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM