您的位置:首页 > 博客中心 > 数据库 >

hibernate 自动生成数据库

时间:2022-03-14 01:01

Hibernate: create table City (cityId varchar(255) not null, cityName varchar(200), remark longtext, versionNum integer, country_countryID varchar(255), cities_KEY varchar(255), primary key (cityId))
Hibernate: create table Country (countryID varchar(255) not null, countryName varchar(200), remark longtext, versionNum integer, primary key (countryID))
Hibernate: create table User (id bigint not null auto_increment, age integer, name varchar(32), nice_name integer, primary key (id))
Hibernate: alter table City add constraint FK_9wtjfq49hl9sj2mjqflcmyk5c foreign key (country_countryID) references Country (countryID)

热门排行

今日推荐

热门手游