Posts

How to make Composite Primary Key Using Two Foreign key?

Image
0 I have Three table in which one table is using the foreign key of other two table to make the composite primary key. Now i am using the @Embeddable but as both the key are the foreign key, How i will create the composite primary key now in the Entity. CREATE TABLE table1 (table1id INT NOT NULL AUTO_INCREMENT, PRIMARY KEY (table1id)); table2 CREATE TABLE table2 (table2id INT NOT NULL AUTO_INCREMENT, PRIMARY KEY (table2id)); table3 CREATE TABLE table3 ( table1id INT NOT NULL, table2id INT NOT NULL, PRIMARY KEY (table1id, table2id), FOREIGN KEY (table1id) REFERENCES table1 (table1id), FOREIGN KEY (table2id) REFERENCES table2 (table2id) ); How to convert this table into an Hibenate Entity. @Entity @Table(name="table3") class Table1 { @Id long tab...

刘武周

body.skin-minerva .mw-parser-output table.infobox caption{text-align:center} 定杨可汗 概要 姓名 刘武周 尊号 定杨可汗 政权 汉 都城 马邑 在世 ?—622年 在位 617年—620年 父 刘匡 母 赵氏 皇后 沮皇后 年号 天興 劉武周 (6世纪-622年),瀛州景城(今河北泊頭東北)人,隋朝末年地方割據勢力。父刘匡,母赵氏。 目录 1 生平 2 妻子 3 参考文献 4 参见 生平 祖籍河間景城(今河北交河東北),遷居馬邑(今山西朔州)。刘武周驍勇善騎射,喜結交豪俠,後前往洛陽,投奔太仆楊義臣。大業八年至十年(612年—614年)間,應募三度北伐高勾麗,以軍功任建節校尉,還馬邑,為鷹揚府校尉(隋朝府兵系统的基层军官)。 大業十三年(617年),與太守王仁恭的侍女私通,恐事發,集乡闾豪杰,与张万岁、杨伏念、苑君璋、尉迟恭等殺王仁恭,據郡起兵,自稱太守,开仓放粮。及後依附突厥,先后攻占雁门、楼烦(今山西静乐)、定襄(治今内蒙古和朴格尔西北)等郡。隋雁門郡丞陳孝意與虎賁將王智辯合兵征討劉武周,困之於桑乾鎮(今山西山陰南)。劉武周援引突厥騎兵還擊,王智辯兵敗被殺,陳孝意奔還雁門。劉武周趁勢破樓煩郡,進取隋帝行宮汾陽宮,將俘獲的宮女獻給突厥,突厥方面則以戰馬回報。武周氣勢更熾,發軍陷定襄,又回軍馬邑。突厥冊封劉武周為“定楊可汗”。劉武周遂自稱皇帝,国号汉 [1] [2] ,建元天興。 易州(治所在今河北易县)宋金剛被竇建德打敗,引殘兵奔劉武周,封為宋王。唐武德二年(619年)三月,劉武周南侵并州(治所晉陽),駐紮黃蛇嶺(今山西榆次北),并州總管李元吉派車騎將軍張達率軍抗擊,全軍覆沒。五月,陷平遙,六月,命宋金刚率兵三万进攻太原,佔領介州(今山西介休)。李淵遣右仆射裴寂為晉州道(今山西臨汾)行軍總管,督軍抗擊劉武周,雙方戰於索原度(在介休介山下),唐軍潰敗,裴寂逃回晉州,姜寶誼戰死。十月,宋金刚下浍州(今山西翼城),夏县人吕崇茂,蒲坂(今山西永济北)的王行本,相繼響應,至此山西除浩州(今山西汾阳)外,大部盡歸...

npm start assertionError

Image
-1 I am trying to use getbase.org css framework for my new project: They have an installation setup on their documentation which is: git clone https://github.com/matthewhartman/base-starter.git your-website / && cd your-website && rm -rf .git && npm i && npm start This is what I get when I want to start it, I do have the latest node, npm and gulp installed: Also I just realise that project version is 3.9.1 but local version is 4.0.0, maybe that's the case? I have used getbase.org without any problems before i reinstalled my ubuntu os. Any help is appreaciated, been looking for a solution for hours... git npm terminal gulp share | improve this question ...