gpt4 book ai didi

java - Spring jpa spring.jpa.hibernate.ddl-auto :create ORA-02000: missing ALWAYS keyword

转载 作者:行者123 更新时间:2023-12-02 04:11:04 48 4
gpt4 key购买 nike

当我使用 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

关于java - Spring jpa spring.jpa.hibernate.ddl-auto :create ORA-02000: missing ALWAYS keyword,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33794639/

48 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com