Hey,
I learn Hibernate and I wanted to build up their tables:
Code:
@Entity
@Table(name ="Language", schema="WebMuseum")
public class Test implements Serializable {
@Id
@Column(name="txn_details_id",nullable = false,columnDefinition = "varchar(50)")
private String name;
@Column
private byte[] flag;
public Test() {
// TODO Auto-generated constructor stub
}
public Test(String name, byte[] flag) {
super();
this.name = name;
this.flag = flag;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public byte[] getFlag() {
return flag;
}
public void setFlag(byte[] flag) {
this.flag = flag;
}
}
Code:
INFO] Hibernate:
[INFO] drop table Language
[ERROR] gru 07, 2015 3:12:45 AM org.hibernate.tool.hbm2ddl.SchemaExport perform
[ERROR] ERROR: HHH000389: Unsuccessful: drop table Language
[ERROR] gru 07, 2015 3:12:45 AM org.hibernate.tool.hbm2ddl.SchemaExport perform
[ERROR] ERROR: GDS Exception. 335544569. Dynamic SQL Error
[ERROR] SQL error code = -607
[ERROR] Invalid command
[ERROR] Table LANGUAGE does not exist
[INFO] Hibernate:
[INFO] create table Language (
[INFO] txn_details_id varchar(50) not null,
[INFO] flag blob,
[INFO] primary key (txn_details_id)
[INFO] )
[ERROR] gru 07, 2015 3:12:45 AM org.hibernate.tool.hbm2ddl.SchemaExport perform
[ERROR] ERROR: HHH000389: Unsuccessful: create table Language (txn_details_id varchar(50) not null, flag blob, primary key (txn_details_id))
[ERROR] gru 07, 2015 3:12:45 AM org.hibernate.tool.hbm2ddl.SchemaExport perform
[ERROR] ERROR: GDS Exception. 335544351. unsuccessful metadata update
[ERROR] cannot create index RDB$PRIMARY19
[ERROR] gru 07, 2015 3:12:45 AM org.hibernate.tool.hbm2ddl.SchemaExport execute
[ERROR] INFO: HHH000230: Schema export complete
My version Hibernate is: 5.0.3.Final
My Firebird is: 2.5