Skip to content

Commit bbc325c

Browse files
committed
spaces to tabs!
1 parent 27db266 commit bbc325c

File tree

1,040 files changed

+33741
-33745
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,040 files changed

+33741
-33745
lines changed

hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/PostgreSQLLegacyDialect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,7 @@ public void augmentRecognizedTableTypes(List<String> tableTypesList) {
13491349
tableTypesList.add( "MATERIALIZED VIEW" );
13501350

13511351
/*
1352-
PostgreSQL 10 and later adds support for Partition table.
1352+
PostgreSQL 10 and later adds support for Partition table.
13531353
*/
13541354
if ( getVersion().isSameOrAfter( 10 ) ) {
13551355
tableTypesList.add( "PARTITIONED TABLE" );

hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/TeradataDialect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public int getDefaultDecimalPrecision() {
201201

202202
@Override
203203
public long getFractionalSecondPrecisionInNanos() {
204-
// Do duration arithmetic in a seconds, but
204+
// Do duration arithmetic in a seconds, but
205205
// with the fractional part
206206
return 1_000_000_000; //seconds!!
207207
}

hibernate-community-dialects/src/test/java/org/hibernate/community/dialect/AltibaseDialectTestCase.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,22 @@ public void testSupportLimits() {
4646
@Test
4747
public void testSelectWithLimitOnly() {
4848
assertEquals( "select c1, c2 from t1 order by c1, c2 desc limit ?",
49-
dialect.getLimitHandler().processSql("select c1, c2 from t1 order by c1, c2 desc",
50-
toRowSelection( 0, 15 ) ).toLowerCase( Locale.ROOT));
49+
dialect.getLimitHandler().processSql("select c1, c2 from t1 order by c1, c2 desc",
50+
toRowSelection( 0, 15 ) ).toLowerCase( Locale.ROOT));
5151
}
5252

5353
@Test
5454
public void testSelectWithOffsetLimit() {
5555
assertEquals( "select c1, c2 from t1 order by c1, c2 desc limit 1+?,?",
56-
dialect.getLimitHandler().processSql("select c1, c2 from t1 order by c1, c2 desc",
57-
toRowSelection( 5, 15 ) ).toLowerCase(Locale.ROOT));
56+
dialect.getLimitHandler().processSql("select c1, c2 from t1 order by c1, c2 desc",
57+
toRowSelection( 5, 15 ) ).toLowerCase(Locale.ROOT));
5858
}
5959

6060
@Test
6161
public void testSelectWithNoLimit() {
6262
assertEquals( "select c1, c2 from t1 order by c1, c2 desc",
63-
dialect.getLimitHandler().processSql("select c1, c2 from t1 order by c1, c2 desc",
64-
null ).toLowerCase(Locale.ROOT));
63+
dialect.getLimitHandler().processSql("select c1, c2 from t1 order by c1, c2 desc",
64+
null ).toLowerCase(Locale.ROOT));
6565
}
6666

6767
private Limit toRowSelection(int firstRow, int maxRows) {

hibernate-community-dialects/src/test/java/org/hibernate/community/dialect/SQLServer2008DialectTestCase.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ public void testGetLimitStringAliasGenerationWithAliasesNoAs() {
135135
public void testPagingWithColumnNameStartingWithFrom() {
136136
final String sql = "select column1 c1, from_column c2 from table1";
137137
assertEquals( "with query_ as (select row_.*,row_number() over (order by current_timestamp) as rownumber_ from (" +
138-
"select column1 c1, from_column c2 from table1) row_) " +
139-
"select c1,c2 from query_ where rownumber_>=? and rownumber_<?",
140-
dialect.getLimitHandler().processSql(sql, toRowSelection(3, 5)));
138+
"select column1 c1, from_column c2 from table1) row_) " +
139+
"select c1,c2 from query_ where rownumber_>=? and rownumber_<?",
140+
dialect.getLimitHandler().processSql(sql, toRowSelection(3, 5)));
141141
}
142142

143143
@Test
@@ -345,9 +345,9 @@ public void testGetLimitStringWithFromInColumnName() {
345345
final String query = "select [Created From Nonstock Item], field2 from table1";
346346

347347
assertEquals( "with query_ as (select row_.*,row_number() over (order by current_timestamp) as rownumber_ from (" +
348-
"select [Created From Nonstock Item] as col0_, field2 as col1_ from table1) row_) " +
349-
"select col0_,col1_ from query_ where rownumber_>=? and rownumber_<?",
350-
dialect.getLimitHandler().processSql( query, toRowSelection( 1, 5 ) )
348+
"select [Created From Nonstock Item] as col0_, field2 as col1_ from table1) row_) " +
349+
"select col0_,col1_ from query_ where rownumber_>=? and rownumber_<?",
350+
dialect.getLimitHandler().processSql( query, toRowSelection( 1, 5 ) )
351351
);
352352
}
353353

@@ -357,9 +357,9 @@ public void testGetLimitStringWithQuotedColumnNamesAndAlias() {
357357
final String query = "select [Created From Item] c1, field2 from table1";
358358

359359
assertEquals( "with query_ as (select row_.*,row_number() over (order by current_timestamp) as rownumber_ from (" +
360-
"select [Created From Item] c1, field2 as col0_ from table1) row_) " +
361-
"select c1,col0_ from query_ where rownumber_>=? and rownumber_<?",
362-
dialect.getLimitHandler().processSql( query, toRowSelection( 1, 5 ) )
360+
"select [Created From Item] c1, field2 as col0_ from table1) row_) " +
361+
"select c1,col0_ from query_ where rownumber_>=? and rownumber_<?",
362+
dialect.getLimitHandler().processSql( query, toRowSelection( 1, 5 ) )
363363
);
364364
}
365365

@@ -369,9 +369,9 @@ public void testGetLimitStringWithQuotedColumnNamesAndAliasWithAs() {
369369
final String query = "select [Created From Item] as c1, field2 from table1";
370370

371371
assertEquals( "with query_ as (select row_.*,row_number() over (order by current_timestamp) as rownumber_ from (" +
372-
"select [Created From Item] as c1, field2 as col0_ from table1) row_) " +
373-
"select c1,col0_ from query_ where rownumber_>=? and rownumber_<?",
374-
dialect.getLimitHandler().processSql( query, toRowSelection( 1, 5 ) )
372+
"select [Created From Item] as c1, field2 as col0_ from table1) row_) " +
373+
"select c1,col0_ from query_ where rownumber_>=? and rownumber_<?",
374+
dialect.getLimitHandler().processSql( query, toRowSelection( 1, 5 ) )
375375
);
376376
}
377377

hibernate-community-dialects/src/test/java/org/hibernate/community/dialect/functional/cache/SQLFunctionsInterSystemsTest.java

Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public void testDialectSQLFunctions() {
111111
.get(0);
112112
assertTrue( 0 == value.intValue() );
113113

114-
s.remove(simple);
114+
s.remove(simple);
115115
t.commit();
116116
s.close();
117117
}
@@ -480,8 +480,8 @@ public void testBlobClob() throws Exception {
480480
s.flush();
481481
s.refresh(b);
482482
//b.getBlob().setBytes( 2, "abc".getBytes() );
483-
log.debug("levinson: just bfore b.getClob()");
484-
b.getClob().getSubString(2, 3);
483+
log.debug("levinson: just bfore b.getClob()");
484+
b.getClob().getSubString(2, 3);
485485
//b.getClob().setString(2, "abc");
486486
s.flush();
487487
s.getTransaction().commit();
@@ -522,11 +522,11 @@ public void testBlobClob() throws Exception {
522522
public void testSqlFunctionAsAlias() {
523523
String functionName = locateAppropriateDialectFunctionNameForAliasTest();
524524
if (functionName == null) {
525-
log.info("Dialect does not list any no-arg functions");
525+
log.info("Dialect does not list any no-arg functions");
526526
return;
527527
}
528528

529-
log.info("Using function named [" + functionName + "] for 'function as alias' test");
529+
log.info("Using function named [" + functionName + "] for 'function as alias' test");
530530
String query = "select " + functionName + " from Simple as " + functionName + " where " + functionName + ".id = 10";
531531

532532
Session s = openSession();
@@ -614,18 +614,18 @@ public void testCachedQueryOnInsert() throws Exception {
614614
}
615615

616616
public void testInterSystemsFunctions() throws Exception {
617-
Calendar cal = new GregorianCalendar();
618-
cal.set(1977,6,3,0,0,0);
619-
java.sql.Timestamp testvalue = new java.sql.Timestamp(cal.getTimeInMillis());
620-
testvalue.setNanos(0);
621-
Calendar cal3 = new GregorianCalendar();
622-
cal3.set(1976,2,3,0,0,0);
623-
java.sql.Timestamp testvalue3 = new java.sql.Timestamp(cal3.getTimeInMillis());
624-
testvalue3.setNanos(0);
625-
626-
final Session s = openSession();
627-
s.beginTransaction();
628-
try {
617+
Calendar cal = new GregorianCalendar();
618+
cal.set(1977,6,3,0,0,0);
619+
java.sql.Timestamp testvalue = new java.sql.Timestamp(cal.getTimeInMillis());
620+
testvalue.setNanos(0);
621+
Calendar cal3 = new GregorianCalendar();
622+
cal3.set(1976,2,3,0,0,0);
623+
java.sql.Timestamp testvalue3 = new java.sql.Timestamp(cal3.getTimeInMillis());
624+
testvalue3.setNanos(0);
625+
626+
final Session s = openSession();
627+
s.beginTransaction();
628+
try {
629629
s.doWork(
630630
new Work() {
631631
@Override
@@ -635,14 +635,14 @@ public void execute(Connection connection) throws SQLException {
635635
}
636636
}
637637
);
638-
}
639-
catch (Exception ex) {
640-
System.out.println("as we expected stored procedure sp does not exist when we drop it");
638+
}
639+
catch (Exception ex) {
640+
System.out.println("as we expected stored procedure sp does not exist when we drop it");
641641

642-
}
642+
}
643643
s.getTransaction().commit();
644644

645-
s.beginTransaction();
645+
s.beginTransaction();
646646
s.doWork(
647647
new Work() {
648648
@Override
@@ -668,82 +668,82 @@ public void execute(Connection connection) throws SQLException {
668668
}
669669
}
670670
);
671-
s.getTransaction().commit();
672-
673-
s.beginTransaction();
674-
675-
TestInterSystemsFunctionsClass object = new TestInterSystemsFunctionsClass( Long.valueOf( 10 ) );
676-
object.setDateText( "1977-07-03" );
677-
object.setDate1( testvalue );
678-
object.setDate3( testvalue3 );
679-
s.persist( object );
680-
s.getTransaction().commit();
681-
s.close();
682-
683-
Session s2 = openSession();
684-
s2.beginTransaction();
685-
TestInterSystemsFunctionsClass test = s2.get(TestInterSystemsFunctionsClass.class, 10L );
686-
assertTrue( test.getDate1().equals(testvalue));
687-
test = (TestInterSystemsFunctionsClass) s2.byId( TestInterSystemsFunctionsClass.class ).with( LockOptions.NONE ).load( 10L );
688-
assertTrue( test.getDate1().equals(testvalue));
689-
Date value = (Date) s2.createQuery( "select nvl(o.date,o.dateText) from TestInterSystemsFunctionsClass as o" )
671+
s.getTransaction().commit();
672+
673+
s.beginTransaction();
674+
675+
TestInterSystemsFunctionsClass object = new TestInterSystemsFunctionsClass( Long.valueOf( 10 ) );
676+
object.setDateText( "1977-07-03" );
677+
object.setDate1( testvalue );
678+
object.setDate3( testvalue3 );
679+
s.persist( object );
680+
s.getTransaction().commit();
681+
s.close();
682+
683+
Session s2 = openSession();
684+
s2.beginTransaction();
685+
TestInterSystemsFunctionsClass test = s2.get(TestInterSystemsFunctionsClass.class, 10L );
686+
assertTrue( test.getDate1().equals(testvalue));
687+
test = (TestInterSystemsFunctionsClass) s2.byId( TestInterSystemsFunctionsClass.class ).with( LockOptions.NONE ).load( 10L );
688+
assertTrue( test.getDate1().equals(testvalue));
689+
Date value = (Date) s2.createQuery( "select nvl(o.date,o.dateText) from TestInterSystemsFunctionsClass as o" )
690690
.list()
691691
.get(0);
692-
assertTrue( value.equals(testvalue));
693-
Object nv = s2.createQuery( "select nullif(o.dateText,o.dateText) from TestInterSystemsFunctionsClass as o" )
692+
assertTrue( value.equals(testvalue));
693+
Object nv = s2.createQuery( "select nullif(o.dateText,o.dateText) from TestInterSystemsFunctionsClass as o" )
694694
.list()
695695
.get(0);
696-
assertTrue( nv == null);
697-
String dateText = (String) s2.createQuery(
696+
assertTrue( nv == null);
697+
String dateText = (String) s2.createQuery(
698698
"select nvl(o.dateText,o.date) from TestInterSystemsFunctionsClass as o"
699699
).list()
700700
.get(0);
701-
assertTrue( dateText.equals("1977-07-03"));
702-
value = (Date) s2.createQuery( "select ifnull(o.date,o.date1) from TestInterSystemsFunctionsClass as o" )
701+
assertTrue( dateText.equals("1977-07-03"));
702+
value = (Date) s2.createQuery( "select ifnull(o.date,o.date1) from TestInterSystemsFunctionsClass as o" )
703703
.list()
704704
.get(0);
705-
assertTrue( value.equals(testvalue));
706-
value = (Date) s2.createQuery( "select ifnull(o.date3,o.date,o.date1) from TestInterSystemsFunctionsClass as o" )
705+
assertTrue( value.equals(testvalue));
706+
value = (Date) s2.createQuery( "select ifnull(o.date3,o.date,o.date1) from TestInterSystemsFunctionsClass as o" )
707707
.list()
708708
.get(0);
709-
assertTrue( value.equals(testvalue));
710-
Integer pos = (Integer) s2.createQuery(
709+
assertTrue( value.equals(testvalue));
710+
Integer pos = (Integer) s2.createQuery(
711711
"select position('07', o.dateText) from TestInterSystemsFunctionsClass as o"
712712
).list()
713713
.get(0);
714-
assertTrue(pos.intValue() == 6);
715-
String st = (String) s2.createQuery( "select convert(o.date1, SQL_TIME) from TestInterSystemsFunctionsClass as o" )
714+
assertTrue(pos.intValue() == 6);
715+
String st = (String) s2.createQuery( "select convert(o.date1, SQL_TIME) from TestInterSystemsFunctionsClass as o" )
716716
.list()
717717
.get(0);
718-
assertTrue( st.equals("00:00:00"));
719-
java.sql.Time tm = (java.sql.Time) s2.createQuery(
718+
assertTrue( st.equals("00:00:00"));
719+
java.sql.Time tm = (java.sql.Time) s2.createQuery(
720720
"select cast(o.date1, time) from TestInterSystemsFunctionsClass as o"
721721
).list()
722722
.get(0);
723-
assertTrue( tm.toString().equals("00:00:00"));
724-
Double diff = (Double) s2.createQuery(
723+
assertTrue( tm.toString().equals("00:00:00"));
724+
Double diff = (Double) s2.createQuery(
725725
"select timestampdiff(SQL_TSI_FRAC_SECOND, o.date3, o.date1) from TestInterSystemsFunctionsClass as o"
726726
).list()
727727
.get(0);
728-
assertTrue(diff.doubleValue() != 0.0);
729-
diff = (Double) s2.createQuery(
728+
assertTrue(diff.doubleValue() != 0.0);
729+
diff = (Double) s2.createQuery(
730730
"select timestampdiff(SQL_TSI_MONTH, o.date3, o.date1) from TestInterSystemsFunctionsClass as o"
731731
).list()
732732
.get(0);
733-
assertTrue(diff.doubleValue() == 16.0);
734-
diff = (Double) s2.createQuery(
733+
assertTrue(diff.doubleValue() == 16.0);
734+
diff = (Double) s2.createQuery(
735735
"select timestampdiff(SQL_TSI_WEEK, o.date3, o.date1) from TestInterSystemsFunctionsClass as o"
736736
).list()
737737
.get(0);
738-
assertTrue(diff.doubleValue() >= 16*4);
739-
diff = (Double) s2.createQuery(
738+
assertTrue(diff.doubleValue() >= 16*4);
739+
diff = (Double) s2.createQuery(
740740
"select timestampdiff(SQL_TSI_YEAR, o.date3, o.date1) from TestInterSystemsFunctionsClass as o"
741741
).list()
742742
.get(0);
743-
assertTrue(diff.doubleValue() == 1.0);
743+
assertTrue(diff.doubleValue() == 1.0);
744744

745-
s2.getTransaction().commit();
746-
s2.close();
747-
}
745+
s2.getTransaction().commit();
746+
s2.close();
747+
}
748748

749749
}

hibernate-community-dialects/src/test/java/org/hibernate/community/dialect/functional/cache/TestInterSystemsFunctionsClass.java

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
*/
1515
public class TestInterSystemsFunctionsClass {
1616
private Long id;
17-
private Date date3;
18-
private Date date1;
19-
private Date date;
20-
private String dateText;
17+
private Date date3;
18+
private Date date1;
19+
private Date date;
20+
private String dateText;
2121

2222
public TestInterSystemsFunctionsClass() {
2323
}
@@ -35,38 +35,38 @@ public void setId(Long id) {
3535
}
3636

3737
public Date getDate() {
38-
return date;
39-
}
38+
return date;
39+
}
4040

41-
public void setDate(Date date) {
42-
this.date = date;
43-
}
41+
public void setDate(Date date) {
42+
this.date = date;
43+
}
4444

4545

46-
public String getDateText() {
47-
return dateText;
48-
}
46+
public String getDateText() {
47+
return dateText;
48+
}
4949

50-
public void setDateText(String dateText) {
51-
this.dateText = dateText;
52-
}
50+
public void setDateText(String dateText) {
51+
this.dateText = dateText;
52+
}
5353

5454

55-
public Date getDate1() {
56-
return date1;
57-
}
55+
public Date getDate1() {
56+
return date1;
57+
}
5858

59-
public void setDate1(Date date1) {
60-
this.date1 = date1;
61-
}
59+
public void setDate1(Date date1) {
60+
this.date1 = date1;
61+
}
6262

6363

64-
public Date getDate3() {
65-
return date3;
66-
}
64+
public Date getDate3() {
65+
return date3;
66+
}
6767

68-
public void setDate3(Date date3) {
69-
this.date3 = date3;
70-
}
68+
public void setDate3(Date date3) {
69+
this.date3 = date3;
70+
}
7171

7272
}

0 commit comments

Comments
 (0)