@@ -32,7 +32,7 @@ public void testBasic() throws Exception {
3232 assertAll (() -> assertEquals ("db_test" , schema .name .toLowerCase ()),
3333 () -> assertEquals (DatabaseType .H2 , schema .databaseType ),
3434 () -> assertEquals (1 , schema .tables .size ()),
35- () -> assertEquals ("foo" , schema .tables .get (0 ).name .toLowerCase ()),
35+ () -> assertEquals ("foo" , schema .tables .get (0 ).id . name .toLowerCase ()),
3636 () -> assertEquals (1 , schema .tables .get (0 ).columns .size ())
3737 );
3838 }
@@ -45,8 +45,8 @@ public void testTwoTables() throws Exception {
4545 assertNotNull (schema );
4646
4747 assertEquals (2 , schema .tables .size ());
48- assertTrue (schema .tables .stream ().map (t -> t .name .toLowerCase ()).anyMatch (n -> n .equals ("foo" )));
49- assertTrue (schema .tables .stream ().map (t -> t .name .toLowerCase ()).anyMatch (n -> n .equals ("bar" )));
48+ assertTrue (schema .tables .stream ().map (t -> t .id . name .toLowerCase ()).anyMatch (n -> n .equals ("foo" )));
49+ assertTrue (schema .tables .stream ().map (t -> t .id . name .toLowerCase ()).anyMatch (n -> n .equals ("bar" )));
5050 }
5151
5252
@@ -135,8 +135,8 @@ public void testBasicForeignKey() throws Exception {
135135 DbInfoDto schema = DbInfoExtractor .extract (getConnection ());
136136 assertEquals (2 , schema .tables .size ());
137137
138- TableDto bar = schema .tables .stream ().filter (t -> t .name .equalsIgnoreCase ("Bar" )).findAny ().get ();
139- TableDto foo = schema .tables .stream ().filter (t -> t .name .equalsIgnoreCase ("Foo" )).findAny ().get ();
138+ TableDto bar = schema .tables .stream ().filter (t -> t .id . name .equalsIgnoreCase ("Bar" )).findAny ().get ();
139+ TableDto foo = schema .tables .stream ().filter (t -> t .id . name .equalsIgnoreCase ("Foo" )).findAny ().get ();
140140
141141 assertEquals (0 , bar .foreignKeys .size ());
142142 assertEquals (1 , foo .foreignKeys .size ());
@@ -184,7 +184,7 @@ public void testColumnUpperBoundConstraint() throws Exception {
184184
185185 assertEquals (1 , schema .tables .size ());
186186
187- TableDto fooTable = schema .tables .stream ().filter (t -> t .name .equalsIgnoreCase ("Foo" )).findAny ().get ();
187+ TableDto fooTable = schema .tables .stream ().filter (t -> t .id . name .equalsIgnoreCase ("Foo" )).findAny ().get ();
188188
189189 assertEquals (2 , fooTable .columns .size ());
190190
@@ -212,7 +212,7 @@ public void testTableConstraint() throws Exception {
212212
213213 assertEquals (1 , schema .tables .size ());
214214
215- TableDto fooTable = schema .tables .stream ().filter (t -> t .name .equalsIgnoreCase ("Foo" )).findAny ().get ();
215+ TableDto fooTable = schema .tables .stream ().filter (t -> t .id . name .equalsIgnoreCase ("Foo" )).findAny ().get ();
216216
217217 assertEquals (2 , fooTable .columns .size ());
218218
@@ -236,7 +236,7 @@ public void testPrimaryKey() throws Exception {
236236
237237 assertEquals (1 , schema .tables .size ());
238238
239- TableDto fooTable = schema .tables .stream ().filter (t -> t .name .equalsIgnoreCase ("Foo" )).findAny ().get ();
239+ TableDto fooTable = schema .tables .stream ().filter (t -> t .id . name .equalsIgnoreCase ("Foo" )).findAny ().get ();
240240
241241 assertEquals (1 , fooTable .columns .size ());
242242
@@ -257,7 +257,7 @@ public void testEnumStringConstraint() throws Exception {
257257
258258 assertEquals (1 , schema .tables .size ());
259259
260- TableDto fooTable = schema .tables .stream ().filter (t -> t .name .equalsIgnoreCase ("Foo" )).findAny ().get ();
260+ TableDto fooTable = schema .tables .stream ().filter (t -> t .id . name .equalsIgnoreCase ("Foo" )).findAny ().get ();
261261
262262 assertEquals (2 , fooTable .columns .size ());
263263
@@ -282,7 +282,7 @@ public void testEnumBooleanConstraint() throws Exception {
282282
283283 assertEquals (1 , schema .tables .size ());
284284
285- TableDto fooTable = schema .tables .stream ().filter (t -> t .name .equalsIgnoreCase ("Foo" )).findAny ().get ();
285+ TableDto fooTable = schema .tables .stream ().filter (t -> t .id . name .equalsIgnoreCase ("Foo" )).findAny ().get ();
286286
287287 assertEquals (1 , fooTable .columns .size ());
288288
@@ -306,7 +306,7 @@ public void testEnumIntegerConstraint() throws Exception {
306306
307307 assertEquals (1 , schema .tables .size ());
308308
309- TableDto fooTable = schema .tables .stream ().filter (t -> t .name .equalsIgnoreCase ("Foo" )).findAny ().get ();
309+ TableDto fooTable = schema .tables .stream ().filter (t -> t .id . name .equalsIgnoreCase ("Foo" )).findAny ().get ();
310310
311311 assertEquals (1 , fooTable .columns .size ());
312312
@@ -331,7 +331,7 @@ public void testEnumTinyIntConstraint() throws Exception {
331331
332332 assertEquals (1 , schema .tables .size ());
333333
334- TableDto fooTable = schema .tables .stream ().filter (t -> t .name .equalsIgnoreCase ("Foo" )).findAny ().get ();
334+ TableDto fooTable = schema .tables .stream ().filter (t -> t .id . name .equalsIgnoreCase ("Foo" )).findAny ().get ();
335335
336336 assertEquals (1 , fooTable .columns .size ());
337337
@@ -355,7 +355,7 @@ public void testEnumSmallIntConstraint() throws Exception {
355355
356356 assertEquals (1 , schema .tables .size ());
357357
358- TableDto fooTable = schema .tables .stream ().filter (t -> t .name .equalsIgnoreCase ("Foo" )).findAny ().get ();
358+ TableDto fooTable = schema .tables .stream ().filter (t -> t .id . name .equalsIgnoreCase ("Foo" )).findAny ().get ();
359359
360360 assertEquals (1 , fooTable .columns .size ());
361361
@@ -380,7 +380,7 @@ public void testEnumBigIntConstraint() throws Exception {
380380
381381 assertEquals (1 , schema .tables .size ());
382382
383- TableDto fooTable = schema .tables .stream ().filter (t -> t .name .equalsIgnoreCase ("Foo" )).findAny ().get ();
383+ TableDto fooTable = schema .tables .stream ().filter (t -> t .id . name .equalsIgnoreCase ("Foo" )).findAny ().get ();
384384
385385 assertEquals (1 , fooTable .columns .size ());
386386
@@ -404,7 +404,7 @@ public void testEnumDoubleConstraint() throws Exception {
404404
405405 assertEquals (1 , schema .tables .size ());
406406
407- TableDto fooTable = schema .tables .stream ().filter (t -> t .name .equalsIgnoreCase ("Foo" )).findAny ().get ();
407+ TableDto fooTable = schema .tables .stream ().filter (t -> t .id . name .equalsIgnoreCase ("Foo" )).findAny ().get ();
408408
409409 assertEquals (1 , fooTable .columns .size ());
410410
@@ -429,7 +429,7 @@ public void testEnumRealConstraint() throws Exception {
429429
430430 assertEquals (1 , schema .tables .size ());
431431
432- TableDto fooTable = schema .tables .stream ().filter (t -> t .name .equalsIgnoreCase ("Foo" )).findAny ().get ();
432+ TableDto fooTable = schema .tables .stream ().filter (t -> t .id . name .equalsIgnoreCase ("Foo" )).findAny ().get ();
433433
434434 assertEquals (1 , fooTable .columns .size ());
435435
@@ -453,7 +453,7 @@ public void testEnumDecimalConstraint() throws Exception {
453453
454454 assertEquals (1 , schema .tables .size ());
455455
456- TableDto fooTable = schema .tables .stream ().filter (t -> t .name .equalsIgnoreCase ("Foo" )).findAny ().get ();
456+ TableDto fooTable = schema .tables .stream ().filter (t -> t .id . name .equalsIgnoreCase ("Foo" )).findAny ().get ();
457457
458458 assertEquals (1 , fooTable .columns .size ());
459459
@@ -475,7 +475,7 @@ public void testEnumCharConstraint() throws Exception {
475475
476476 assertEquals (1 , schema .tables .size ());
477477
478- TableDto fooTable = schema .tables .stream ().filter (t -> t .name .equalsIgnoreCase ("Foo" )).findAny ().get ();
478+ TableDto fooTable = schema .tables .stream ().filter (t -> t .id . name .equalsIgnoreCase ("Foo" )).findAny ().get ();
479479
480480 assertEquals (1 , fooTable .columns .size ());
481481
@@ -498,7 +498,7 @@ public void testEnumLikeConstraint() throws Exception {
498498
499499 assertEquals (1 , schema .tables .size ());
500500
501- TableDto fooTable = schema .tables .stream ().filter (t -> t .name .equalsIgnoreCase ("Foo" )).findAny ().get ();
501+ TableDto fooTable = schema .tables .stream ().filter (t -> t .id . name .equalsIgnoreCase ("Foo" )).findAny ().get ();
502502
503503 assertEquals (1 , fooTable .columns .size ());
504504
@@ -520,7 +520,7 @@ public void testCreateEnumIntColumn() throws Exception {
520520 DbInfoDto schema = DbInfoExtractor .extract (getConnection ());
521521 assertEquals (1 , schema .tables .size ());
522522
523- TableDto fooTable = schema .tables .stream ().filter (t -> t .name .equalsIgnoreCase ("Foo" )).findAny ().get ();
523+ TableDto fooTable = schema .tables .stream ().filter (t -> t .id . name .equalsIgnoreCase ("Foo" )).findAny ().get ();
524524
525525 assertEquals (1 , fooTable .columns .size ());
526526
@@ -546,7 +546,7 @@ public void testCreateEnumColumn() throws Exception {
546546 DbInfoDto schema = DbInfoExtractor .extract (getConnection ());
547547 assertEquals (1 , schema .tables .size ());
548548
549- TableDto fooTable = schema .tables .stream ().filter (t -> t .name .equalsIgnoreCase ("Foo" )).findAny ().get ();
549+ TableDto fooTable = schema .tables .stream ().filter (t -> t .id . name .equalsIgnoreCase ("Foo" )).findAny ().get ();
550550
551551 assertEquals (1 , fooTable .columns .size ());
552552
@@ -571,7 +571,7 @@ public void testEnumColumn() throws Exception {
571571 DbInfoDto schema = DbInfoExtractor .extract (getConnection ());
572572 assertEquals (1 , schema .tables .size ());
573573
574- TableDto fooTable = schema .tables .stream ().filter (t -> t .name .equalsIgnoreCase ("Foo" )).findAny ().get ();
574+ TableDto fooTable = schema .tables .stream ().filter (t -> t .id . name .equalsIgnoreCase ("Foo" )).findAny ().get ();
575575
576576 assertEquals (1 , fooTable .columns .size ());
577577
@@ -598,7 +598,7 @@ public void testArray() throws Exception {
598598 DbInfoDto schema = DbInfoExtractor .extract (getConnection ());
599599 assertEquals (1 , schema .tables .size ());
600600
601- Optional <TableDto > fooTableOptional = schema .tables .stream ().filter (t -> t .name .equalsIgnoreCase ("foo" )).findAny ();
601+ Optional <TableDto > fooTableOptional = schema .tables .stream ().filter (t -> t .id . name .equalsIgnoreCase ("foo" )).findAny ();
602602 assertTrue (fooTableOptional .isPresent ());
603603 TableDto fooTable = fooTableOptional .get ();
604604
@@ -621,7 +621,7 @@ public void testMultidimensionalArrayOfTwoDimensions() throws Exception {
621621 DbInfoDto schema = DbInfoExtractor .extract (getConnection ());
622622 assertEquals (1 , schema .tables .size ());
623623
624- Optional <TableDto > fooTableOptional = schema .tables .stream ().filter (t -> t .name .equalsIgnoreCase ("foo" )).findAny ();
624+ Optional <TableDto > fooTableOptional = schema .tables .stream ().filter (t -> t .id . name .equalsIgnoreCase ("foo" )).findAny ();
625625 assertTrue (fooTableOptional .isPresent ());
626626 TableDto fooTable = fooTableOptional .get ();
627627
@@ -644,7 +644,7 @@ public void testMultidimensionalArrayOfThreeDimensions() throws Exception {
644644 DbInfoDto schema = DbInfoExtractor .extract (getConnection ());
645645 assertEquals (1 , schema .tables .size ());
646646
647- Optional <TableDto > fooTableOptional = schema .tables .stream ().filter (t -> t .name .equalsIgnoreCase ("foo" )).findAny ();
647+ Optional <TableDto > fooTableOptional = schema .tables .stream ().filter (t -> t .id . name .equalsIgnoreCase ("foo" )).findAny ();
648648 assertTrue (fooTableOptional .isPresent ());
649649 TableDto fooTable = fooTableOptional .get ();
650650
@@ -667,7 +667,7 @@ public void testBooleanNonlArray() throws Exception {
667667 DbInfoDto schema = DbInfoExtractor .extract (getConnection ());
668668 assertEquals (1 , schema .tables .size ());
669669
670- Optional <TableDto > fooTableOptional = schema .tables .stream ().filter (t -> t .name .equalsIgnoreCase ("foo" )).findAny ();
670+ Optional <TableDto > fooTableOptional = schema .tables .stream ().filter (t -> t .id . name .equalsIgnoreCase ("foo" )).findAny ();
671671 assertTrue (fooTableOptional .isPresent ());
672672 TableDto fooTable = fooTableOptional .get ();
673673
@@ -690,7 +690,7 @@ public void testVarCharArray() throws Exception {
690690 DbInfoDto schema = DbInfoExtractor .extract (getConnection ());
691691 assertEquals (1 , schema .tables .size ());
692692
693- Optional <TableDto > fooTableOptional = schema .tables .stream ().filter (t -> t .name .equalsIgnoreCase ("foo" )).findAny ();
693+ Optional <TableDto > fooTableOptional = schema .tables .stream ().filter (t -> t .id . name .equalsIgnoreCase ("foo" )).findAny ();
694694 assertTrue (fooTableOptional .isPresent ());
695695 TableDto fooTable = fooTableOptional .get ();
696696
@@ -714,7 +714,7 @@ public void testIntegerArrayWithMaxLengthColumn() throws Exception {
714714 DbInfoDto schema = DbInfoExtractor .extract (getConnection ());
715715 assertEquals (1 , schema .tables .size ());
716716
717- Optional <TableDto > fooTableOptional = schema .tables .stream ().filter (t -> t .name .equalsIgnoreCase ("foo" )).findAny ();
717+ Optional <TableDto > fooTableOptional = schema .tables .stream ().filter (t -> t .id . name .equalsIgnoreCase ("foo" )).findAny ();
718718 assertTrue (fooTableOptional .isPresent ());
719719 TableDto fooTable = fooTableOptional .get ();
720720
0 commit comments