首页 > 数据库技术 > 详细

hibernate 自动生成数据库

时间:2014-10-14 18:44:00      阅读:417      评论:0      收藏:0      [点我收藏+]

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)

hibernate 自动生成数据库

原文:http://www.cnblogs.com/javaleon/p/4024776.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!