-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
104 additions
and
105 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.bjoernkw.schematic; | ||
|
||
class Column { | ||
|
||
String columnName; | ||
|
||
String dataType; | ||
|
||
public String getColumnName() { | ||
return columnName; | ||
} | ||
|
||
public void setColumnName(String columnName) { | ||
this.columnName = columnName; | ||
} | ||
|
||
public String getDataType() { | ||
return dataType; | ||
} | ||
|
||
public void setDataType(String dataType) { | ||
this.dataType = dataType; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.bjoernkw.schematic; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
class Table { | ||
|
||
String tableName; | ||
|
||
List<Column> columns; | ||
|
||
List<Map<String, Object>> entries; | ||
|
||
public String getTableName() { | ||
return tableName; | ||
} | ||
|
||
public void setTableName(String tableName) { | ||
this.tableName = tableName; | ||
} | ||
|
||
public List<Column> getColumns() { | ||
return columns; | ||
} | ||
|
||
public void setColumns(List<Column> columns) { | ||
this.columns = columns; | ||
} | ||
|
||
public List<Map<String, Object>> getEntries() { | ||
return entries; | ||
} | ||
|
||
public void setEntries(List<Map<String, Object>> entries) { | ||
this.entries = entries; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/main/java/com/bjoernkw/schematic/autoconfiguration/SchematicAutoConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.bjoernkw.schematic.autoconfiguration; | ||
|
||
import com.bjoernkw.schematic.TablesController; | ||
import org.springframework.boot.autoconfigure.AutoConfiguration; | ||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; | ||
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.jdbc.core.JdbcTemplate; | ||
|
||
@AutoConfiguration | ||
@ConditionalOnWebApplication | ||
public class SchematicAutoConfiguration { | ||
|
||
private final JdbcTemplate jdbcTemplate; | ||
|
||
public SchematicAutoConfiguration(JdbcTemplate jdbcTemplate) { | ||
this.jdbcTemplate = jdbcTemplate; | ||
} | ||
|
||
@Bean | ||
@ConditionalOnMissingBean | ||
public TablesController tablesController() { | ||
return new TablesController(jdbcTemplate); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
src/main/java/com/bjoernkw/schematic/database/IndexController.java
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
src/main/resources/META-INF/spring-autoconfigure-metadata.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
com.bjoernkw.schematic.autoconfiguration.SchematicAutoConfiguration= |
1 change: 1 addition & 0 deletions
1
...esources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
com.bjoernkw.schematic.autoconfiguration.SchematicAutoConfiguration |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.