![](/img/trans.png)
[英]spring.jpa.hibernate.ddl-auto=update not working in spring boot
[英]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.