Vorbereitung Release 0.2.0 #83

Merged
tpeetz merged 178 commits from develop/0.2.0 into main 2026-01-29 22:50:42 +00:00
9 changed files with 302 additions and 347 deletions
Showing only changes of commit 4c70046a32 - Show all commits
+5 -7
View File
@@ -19,17 +19,15 @@ class MetaDataTable(Base, BaseMixin):
class MetaDataColumn(Base, BaseMixin):
__tablename__ = 'meta_data_column'
column_name = Column(String, nullable=False)
column_sync_name = Column(String)
column_type = Column(String)
column_modifier = Column(String, nullable=True)
column_order = Column(Integer)
is_shown = Column(Boolean)
column_label = Column(String)
show_filter = Column(Boolean)
filter_label = Column(String)
ref_column = Column(String, nullable=True)
table_id = Column(String, ForeignKey('meta_data_table.id'))
table = relationship("MetaDataTable", back_populates="table_columns")
column_label = Column(String)
filter_label = Column(String)
is_shown = Column(Boolean)
show_filter = Column(Boolean)
ref_column = Column(String, nullable=True)
def __repr__(self):
if self.column_name is None:
-2
View File
@@ -18,9 +18,7 @@ def get_columns(columns: List[MetaDataColumn]) -> List[MetaDataColumnResponse]:
id=column.id,
table_name=column.table.table_name,
column_name=column.column_name,
column_sync_name=column.column_sync_name,
column_type=column.column_type,
column_modifier=column.column_modifier,
column_order=column.column_order,
is_shown=column.is_shown,
column_label=column.column_label,
@@ -4,9 +4,7 @@
<table class="table table-hover">
<thead><tr>
<th scope="col">Column Name</th>
<th scope="col">Column Sync Name</th>
<th scope="col">Column Type</th>
<th scope="col">Column Modifier</th>
<th scope="col">Column Order</th>
<th scope="col">Is Shown</th>
<th scope="col">Column Label</th>
@@ -18,9 +16,7 @@
{% for column in obj.table_columns %}
<tr>
<th scope="row"><a href="/admin/metadata/{{column.id}}">{{column.column_name}}</a></th>
<td>{{column.column_sync_name}}</td>
<td>{{column.column_type}}</td>
<td>{{column.column_modifier}}</td>
<td>{{column.column_order}}</td>
<td>{% with check=column.is_shown %}{% include "components/check.html" %}{% endwith %}</td>
<td>{{column.column_label}}</td>
+7 -11
View File
@@ -27,17 +27,15 @@ class MetaDataTable(Base, BaseMixin):
class MetaDataColumn(Base, BaseMixin):
__tablename__ = 'meta_data_column'
column_name = Column(String, nullable=False)
column_sync_name = Column(String)
column_type = Column(String)
column_modifier = Column(String, nullable=True)
column_order = Column(Integer)
is_shown = Column(Boolean)
column_label = Column(String)
show_filter = Column(Boolean)
filter_label = Column(String)
ref_column = Column(String, nullable=True)
table_id = Column(String, ForeignKey('meta_data_table.id'))
table = relationship("MetaDataTable", back_populates="table_columns")
column_label = Column(String)
filter_label = Column(String)
is_shown = Column(Boolean)
show_filter = Column(Boolean)
ref_column = Column(String, nullable=True)
def __repr__(self):
if self.column_name is None:
@@ -54,13 +52,11 @@ class MetaDataColumn(Base, BaseMixin):
self.last_modified_date = import_data['last_modified_date']
self.version = import_data['version']
self.column_name = import_data['column_name']
self.column_sync_name = import_data['column_sync_name']
self.column_type = import_data['column_type']
self.column_modifier = import_data['column_modifier']
self.column_order = import_data['column_order']
self.table_id = import_data['table_id']
self.column_label = import_data['column_label']
self.filter_label = import_data['filter_label']
self.is_shown = import_data['is_shown']
self.column_label = import_data['column_label']
self.show_filter = import_data['show_filter']
self.filter_label = import_data['filter_label']
self.ref_column = import_data['ref_column']
@@ -1,7 +1,13 @@
package de.thpeetz.kontor.admin;
import de.thpeetz.kontor.admin.data.*;
import de.thpeetz.kontor.admin.repository.*;
import de.thpeetz.kontor.admin.data.Permission;
import de.thpeetz.kontor.admin.data.Profile;
import de.thpeetz.kontor.admin.data.Assignment;
import de.thpeetz.kontor.admin.data.MetaDataTable;
import de.thpeetz.kontor.admin.repository.AssignmentRepository;
import de.thpeetz.kontor.admin.repository.ProfileRepository;
import de.thpeetz.kontor.admin.repository.MailAccountRepository;
import de.thpeetz.kontor.admin.services.AdminService;
import de.thpeetz.kontor.admin.services.MetaDataService;
import de.thpeetz.kontor.mailclient.data.MailAccount;
@@ -129,312 +135,311 @@ public class SetupModuleAdmin implements ApplicationListener<ContextRefreshedEve
private void initMetaData() {
log.info("initMetaData");
MetaDataTable mediaArticleTable = metaDataService.getTable("media_article");
metaDataService.getColumn(mediaArticleTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.TRUE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(mediaArticleTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(mediaArticleTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(mediaArticleTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(mediaArticleTable, "url", "link_url", "TEXT", "UNIQUE", 5, Boolean.TRUE, "URL", Boolean.FALSE, null);
metaDataService.getColumn(mediaArticleTable, "review", "review", "BOOLEAN", null, 6, Boolean.TRUE, "Review", Boolean.TRUE, "Review");
metaDataService.getColumn(mediaArticleTable, "title", "title", "TEXT", null, 7, Boolean.TRUE, "Title", Boolean.FALSE, null);
metaDataService.getColumn(mediaArticleTable, "id", "TEXT", 1, Boolean.TRUE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(mediaArticleTable, "created_date", "TIMESTAMP", 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(mediaArticleTable, "last_modified_date", "TIMESTAMP", 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(mediaArticleTable, "version", "LONG", 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(mediaArticleTable, "url", "TEXT", 5, Boolean.TRUE, "URL", Boolean.FALSE, null);
metaDataService.getColumn(mediaArticleTable, "review", "BOOLEAN", 6, Boolean.TRUE, "Review", Boolean.TRUE, "Review");
metaDataService.getColumn(mediaArticleTable, "title", "TEXT", 7, Boolean.TRUE, "Title", Boolean.FALSE, null);
MetaDataTable mediaVideoTable = metaDataService.getTable("media_video");
metaDataService.getColumn(mediaVideoTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.TRUE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(mediaVideoTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(mediaVideoTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(mediaVideoTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(mediaVideoTable, "url", "link_url", "TEXT", "UNIQUE", 5, Boolean.TRUE, "URL", Boolean.FALSE, null);
metaDataService.getColumn(mediaVideoTable, "review", "review", "BOOLEAN", null, 6, Boolean.TRUE, "Review", Boolean.TRUE, "Review");
metaDataService.getColumn(mediaVideoTable, "should_download", "should_download", "BOOLEAN", null, 7, Boolean.TRUE, "Download", Boolean.TRUE, "Download");
metaDataService.getColumn(mediaVideoTable, "title", "title", "TEXT", null, 8, Boolean.TRUE, "Title", Boolean.FALSE, null);
metaDataService.getColumn(mediaVideoTable, "file_name", "file_name", "TEXT", null, 9, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(mediaVideoTable, "path", "path", "TEXT", null, 10, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(mediaVideoTable, "cloud_link", "cloud_link", "TEXT", null, 11, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(mediaVideoTable, "id", "TEXT", 1, Boolean.TRUE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(mediaVideoTable, "created_date", "TIMESTAMP", 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(mediaVideoTable, "last_modified_date", "TIMESTAMP", 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(mediaVideoTable, "version", "LONG", 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(mediaVideoTable, "url", "TEXT", 5, Boolean.TRUE, "URL", Boolean.FALSE, null);
metaDataService.getColumn(mediaVideoTable, "review", "BOOLEAN", 6, Boolean.TRUE, "Review", Boolean.TRUE, "Review");
metaDataService.getColumn(mediaVideoTable, "should_download", "BOOLEAN", 7, Boolean.TRUE, "Download", Boolean.TRUE, "Download");
metaDataService.getColumn(mediaVideoTable, "title", "TEXT", 8, Boolean.TRUE, "Title", Boolean.FALSE, null);
metaDataService.getColumn(mediaVideoTable, "file_name", "TEXT", 9, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(mediaVideoTable, "path", "TEXT", 10, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(mediaVideoTable, "cloud_link", "TEXT", 11, Boolean.FALSE, "", Boolean.FALSE, null);
MetaDataTable mediaFileTable = metaDataService.getTable("media_file");
metaDataService.getColumn(mediaFileTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.TRUE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(mediaFileTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(mediaFileTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(mediaFileTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(mediaFileTable, "url", "link_url", "TEXT", "UNIQUE", 5, Boolean.TRUE, "URL", Boolean.FALSE, null);
metaDataService.getColumn(mediaFileTable, "review", "review", "BOOLEAN", null, 6, Boolean.TRUE, "Review", Boolean.TRUE, "Review");
metaDataService.getColumn(mediaFileTable, "should_download", "should_download", "BOOLEAN", null, 7, Boolean.TRUE, "Download", Boolean.TRUE, "Download");
metaDataService.getColumn(mediaFileTable, "title", "title", "TEXT", null, 8, Boolean.TRUE, "Title", Boolean.FALSE, null);
metaDataService.getColumn(mediaFileTable, "file_name", "file_name", "TEXT", null, 9, Boolean.TRUE, "Dateiname", Boolean.FALSE, null);
metaDataService.getColumn(mediaFileTable, "path", "path", "TEXT", null, 10, Boolean.TRUE, "Verzeichnis", Boolean.FALSE, null);
metaDataService.getColumn(mediaFileTable, "cloud_link", "cloud_link", "TEXT", null, 11, Boolean.TRUE, "Cloud Link", Boolean.FALSE, null);
metaDataService.getColumn(mediaFileTable, "id", "TEXT", 1, Boolean.TRUE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(mediaFileTable, "created_date", "TIMESTAMP", 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(mediaFileTable, "last_modified_date", "TIMESTAMP", 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(mediaFileTable, "version", "LONG", 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(mediaFileTable, "url", "TEXT" , 5, Boolean.TRUE, "URL", Boolean.FALSE, null);
metaDataService.getColumn(mediaFileTable, "review", "BOOLEAN" , 6, Boolean.TRUE, "Review", Boolean.TRUE, "Review");
metaDataService.getColumn(mediaFileTable, "should_download", "BOOLEAN" , 7, Boolean.TRUE, "Download", Boolean.TRUE, "Download");
metaDataService.getColumn(mediaFileTable, "title", "TEXT" , 8, Boolean.TRUE, "Title", Boolean.FALSE, null);
metaDataService.getColumn(mediaFileTable, "file_name", "TEXT" , 9, Boolean.TRUE, "Dateiname", Boolean.FALSE, null);
metaDataService.getColumn(mediaFileTable, "path", "TEXT" , 10, Boolean.TRUE, "Verzeichnis", Boolean.FALSE, null);
metaDataService.getColumn(mediaFileTable, "cloud_link", "TEXT" , 11, Boolean.TRUE, "Cloud Link", Boolean.FALSE, null);
MetaDataTable mediaActorTable = metaDataService.getTable("media_actor");
metaDataService.getColumn(mediaActorTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.TRUE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(mediaActorTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(mediaActorTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(mediaActorTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(mediaActorTable, "name", "name", "TEXT", "UNIQUE", 5, Boolean.TRUE, "", Boolean.FALSE, null);
metaDataService.getColumn(mediaActorTable, "id", "TEXT" , 1, Boolean.TRUE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(mediaActorTable, "created_date", "TIMESTAMP" , 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(mediaActorTable, "last_modified_date", "TIMESTAMP" , 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(mediaActorTable, "version", "LONG" , 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(mediaActorTable, "name", "TEXT" , 5, Boolean.TRUE, "", Boolean.FALSE, null);
MetaDataTable mediaActorFileTable = metaDataService.getTable("media_actor_file");
metaDataService.getColumn(mediaActorFileTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.TRUE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(mediaActorFileTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(mediaActorFileTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(mediaActorFileTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(mediaActorFileTable, "media_actor_id", "media_actor_id", "TEXT", null, 5, Boolean.TRUE, "Actor", Boolean.FALSE, null, "name");
metaDataService.getColumn(mediaActorFileTable, "media_file_id", "media_file_id", "TEXT", null, 6, Boolean.TRUE, "File", Boolean.FALSE, null, "title");
metaDataService.getColumn(mediaActorFileTable, "id", "TEXT" , 1, Boolean.TRUE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(mediaActorFileTable, "created_date", "TIMESTAMP" , 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(mediaActorFileTable, "last_modified_date", "TIMESTAMP" , 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(mediaActorFileTable, "version", "LONG" , 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(mediaActorFileTable, "media_actor_id", "TEXT" , 5, Boolean.TRUE, "Actor", Boolean.FALSE, null, "name");
metaDataService.getColumn(mediaActorFileTable, "media_file_id", "TEXT" , 6, Boolean.TRUE, "File", Boolean.FALSE, null, "title");
MetaDataTable artistTable = metaDataService.getTable("artist");
metaDataService.getColumn(artistTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(artistTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(artistTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(artistTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(artistTable, "name", "name", "TEXT", "UNIQUE", 5, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(artistTable, "weblink", "weblink", "TEXT", null, 6, Boolean.TRUE, "Link", Boolean.FALSE, null);
metaDataService.getColumn(artistTable, "id", "TEXT" , 1, Boolean.FALSE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(artistTable, "created_date", "TIMESTAMP" , 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(artistTable, "last_modified_date", "TIMESTAMP" , 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(artistTable, "version", "LONG" , 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(artistTable, "name", "TEXT" , 5, Boolean.FALSE, "Name", Boolean.FALSE, null);
metaDataService.getColumn(artistTable, "weblink", "TEXT" , 6, Boolean.TRUE, "Link", Boolean.FALSE, null);
MetaDataTable publisherTable = metaDataService.getTable("publisher");
metaDataService.getColumn(publisherTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.TRUE, "", Boolean.FALSE, null);
metaDataService.getColumn(publisherTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(publisherTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(publisherTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(publisherTable, "name", "name", "TEXT", "UNIQUE", 5, Boolean.TRUE, "", Boolean.FALSE, null);
metaDataService.getColumn(publisherTable, "weblink", "weblink", "TEXT", null, 6, Boolean.TRUE, "Link", Boolean.FALSE, null);
metaDataService.getColumn(publisherTable, "parent_publisher_id", "parent_publisher_id", "TEXT", null, 7, Boolean.TRUE, "Parent Company", Boolean.FALSE, null, "name");
metaDataService.getColumn(publisherTable, "id", "TEXT" , 1, Boolean.TRUE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(publisherTable, "created_date", "TIMESTAMP" , 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(publisherTable, "last_modified_date", "TIMESTAMP" , 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(publisherTable, "version", "LONG" , 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(publisherTable, "name", "TEXT" , 5, Boolean.TRUE, "Name", Boolean.FALSE, null);
metaDataService.getColumn(publisherTable, "weblink", "TEXT" , 6, Boolean.TRUE, "Link", Boolean.FALSE, null);
metaDataService.getColumn(publisherTable, "parent_publisher_id", "TEXT" , 7, Boolean.TRUE, "Parent Company", Boolean.FALSE, null, "name");
MetaDataTable comicTable = metaDataService.getTable("comic");
metaDataService.getColumn(comicTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.TRUE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(comicTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(comicTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(comicTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(comicTable, "completed", "completed", "BOOLEAN", null, 5, Boolean.TRUE, "Complete", Boolean.TRUE, "Complete");
metaDataService.getColumn(comicTable, "current_order", "current_order", "BOOLEAN", null, 6, Boolean.TRUE, "Bestellung", Boolean.TRUE, "Bestellung");
metaDataService.getColumn(comicTable, "title", "title", "TEXT", "UNIQUE", 7, Boolean.TRUE, "Title", Boolean.FALSE, null);
metaDataService.getColumn(comicTable, "publisher_id", "publisher_id", "TEXT", null, 8, Boolean.TRUE, "Verlag", Boolean.FALSE, null, "name");
metaDataService.getColumn(comicTable, "weblink", "weblink", "TEXT", null, 9, Boolean.TRUE, "Link", Boolean.FALSE, null);
metaDataService.getColumn(comicTable, "id", "TEXT" , 1, Boolean.TRUE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(comicTable, "created_date", "TIMESTAMP" , 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(comicTable, "last_modified_date", "TIMESTAMP" , 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(comicTable, "version", "LONG" , 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(comicTable, "completed", "BOOLEAN" , 5, Boolean.TRUE, "Complete", Boolean.TRUE, "Complete");
metaDataService.getColumn(comicTable, "current_order", "BOOLEAN" , 6, Boolean.TRUE, "Bestellung", Boolean.TRUE, "Bestellung");
metaDataService.getColumn(comicTable, "title", "TEXT" , 7, Boolean.TRUE, "Title", Boolean.FALSE, null);
metaDataService.getColumn(comicTable, "publisher_id", "TEXT" , 8, Boolean.TRUE, "Verlag", Boolean.FALSE, null, "name");
metaDataService.getColumn(comicTable, "weblink", "TEXT" , 9, Boolean.TRUE, "Link", Boolean.FALSE, null);
MetaDataTable issueTable = metaDataService.getTable("issue");
metaDataService.getColumn(issueTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(issueTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(issueTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(issueTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(issueTable, "in_stock", "in_stock", "BOOLEAN", null, 5, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(issueTable, "is_read", "is_read", "BOOLEAN", null, 6, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(issueTable, "issue_number", "issue_number", "TEXT", null, 7, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(issueTable, "comic_id", "comic_id", "TEXT", null, 8, Boolean.FALSE, "", Boolean.FALSE, null, "title");
metaDataService.getColumn(issueTable, "volume_id", "volume_id", "TEXT", null, 9, Boolean.FALSE, "", Boolean.FALSE, null, "name");
metaDataService.getColumn(issueTable, "story_arc_id", "story_arc_id", "TEXT", null, 10, Boolean.FALSE, "", Boolean.FALSE, null, "name");
metaDataService.getColumn(issueTable, "id", "TEXT" , 1, Boolean.FALSE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(issueTable, "created_date", "TIMESTAMP" , 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(issueTable, "last_modified_date", "TIMESTAMP" , 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(issueTable, "version", "LONG" , 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(issueTable, "in_stock", "BOOLEAN" , 5, Boolean.FALSE, "Auf Lager", Boolean.FALSE, null);
metaDataService.getColumn(issueTable, "is_read", "BOOLEAN" , 6, Boolean.FALSE, "Gelesen", Boolean.FALSE, null);
metaDataService.getColumn(issueTable, "issue_number", "TEXT" , 7, Boolean.FALSE, "Heft", Boolean.FALSE, null);
metaDataService.getColumn(issueTable, "comic_id", "TEXT" , 8, Boolean.FALSE, "Comic", Boolean.FALSE, null, "title");
metaDataService.getColumn(issueTable, "volume_id", "TEXT" , 9, Boolean.FALSE, "Volume", Boolean.FALSE, null, "name");
metaDataService.getColumn(issueTable, "story_arc_id", "TEXT" , 10, Boolean.FALSE, "Story Arc", Boolean.FALSE, null, "name");
MetaDataTable volumeTable = metaDataService.getTable("volume");
metaDataService.getColumn(volumeTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(volumeTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(volumeTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(volumeTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(volumeTable, "name", "name", "TEXT", null, 5, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(volumeTable, "comic_id", "comic_id", "TEXT", null, 6, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(volumeTable, "id", "TEXT" , 1, Boolean.FALSE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(volumeTable, "created_date", "TIMESTAMP" , 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(volumeTable, "last_modified_date", "TIMESTAMP" , 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(volumeTable, "version", "LONG" , 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(volumeTable, "name", "TEXT" , 5, Boolean.FALSE, "Name", Boolean.FALSE, null);
metaDataService.getColumn(volumeTable, "comic_id", "TEXT" , 6, Boolean.FALSE, "Comic", Boolean.FALSE, null, "title");
MetaDataTable tpbTable = metaDataService.getTable("trade_paperback");
metaDataService.getColumn(tpbTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(tpbTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(tpbTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(tpbTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(tpbTable, "issue_start", "issue_start", "LONG", null, 5, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(tpbTable, "issue_end", "issue_end", "LONG", null, 6, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(tpbTable, "name", "name", "TEXT", null, 7, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(tpbTable, "comic_id", "comic_id", "TEXT", null, 8, Boolean.FALSE, "", Boolean.FALSE, null, "title");
metaDataService.getColumn(tpbTable, "id", "TEXT" , 1, Boolean.FALSE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(tpbTable, "created_date", "TIMESTAMP" , 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(tpbTable, "last_modified_date", "TIMESTAMP" , 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(tpbTable, "version", "LONG" , 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(tpbTable, "issue_start", "LONG" , 5, Boolean.FALSE, "Anfang", Boolean.FALSE, null);
metaDataService.getColumn(tpbTable, "issue_end", "LONG" , 6, Boolean.FALSE, "Ende", Boolean.FALSE, null);
metaDataService.getColumn(tpbTable, "name", "TEXT" , 7, Boolean.FALSE, "Name", Boolean.FALSE, null);
metaDataService.getColumn(tpbTable, "comic_id", "TEXT" , 8, Boolean.FALSE, "Comic", Boolean.FALSE, null, "title");
MetaDataTable storyArcTable = metaDataService.getTable("story_arc");
metaDataService.getColumn(storyArcTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(storyArcTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(storyArcTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(storyArcTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(storyArcTable, "name", "name", "TEXT", null, 5, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(storyArcTable, "comic_id", "comic_id", "TEXT", null, 6, Boolean.FALSE, "", Boolean.FALSE, null, "title");
metaDataService.getColumn(storyArcTable, "volume_id", "volume_id", "TEXT", null, 7, Boolean.FALSE, "", Boolean.FALSE, null, "name");
metaDataService.getColumn(storyArcTable, "id", "TEXT" , 1, Boolean.FALSE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(storyArcTable, "created_date", "TIMESTAMP" , 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(storyArcTable, "last_modified_date", "TIMESTAMP" , 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(storyArcTable, "version", "LONG" , 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(storyArcTable, "name", "TEXT" , 5, Boolean.FALSE, "Name", Boolean.FALSE, null);
metaDataService.getColumn(storyArcTable, "comic_id", "TEXT" , 6, Boolean.FALSE, "Comic", Boolean.FALSE, null, "title");
metaDataService.getColumn(storyArcTable, "volume_id", "TEXT" , 7, Boolean.FALSE, "Volume", Boolean.FALSE, null, "name");
MetaDataTable worktypeTable = metaDataService.getTable("worktype");
metaDataService.getColumn(worktypeTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(worktypeTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(worktypeTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(worktypeTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(worktypeTable, "name", "name", "TEXT", "UNIQUE", 5, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(worktypeTable, "id", "TEXT" , 1, Boolean.FALSE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(worktypeTable, "created_date", "TIMESTAMP" , 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(worktypeTable, "last_modified_date", "TIMESTAMP" , 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(worktypeTable, "version", "LONG" , 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(worktypeTable, "name", "TEXT" , 5, Boolean.FALSE, "Name", Boolean.FALSE, null);
MetaDataTable comicworkTable = metaDataService.getTable("comic_work");
metaDataService.getColumn(comicworkTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(comicworkTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(comicworkTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(comicworkTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(comicworkTable, "artist_id", "artist_id", "TEXT", null, 5, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(comicworkTable, "comic_id", "comic_id", "TEXT", null, 6, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(comicworkTable, "work_type_id", "work_type_id", "TEXT", null, 7, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(comicworkTable, "id", "TEXT" , 1, Boolean.FALSE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(comicworkTable, "created_date", "TIMESTAMP" , 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(comicworkTable, "last_modified_date", "TIMESTAMP" , 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(comicworkTable, "version", "LONG" , 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(comicworkTable, "artist_id", "TEXT" , 5, Boolean.FALSE, "Artist", Boolean.FALSE, null, "name");
metaDataService.getColumn(comicworkTable, "comic_id", "TEXT" , 6, Boolean.FALSE, "Comic", Boolean.FALSE, null, "title");
metaDataService.getColumn(comicworkTable, "work_type_id", "TEXT" , 7, Boolean.FALSE, "Arbeit", Boolean.FALSE, null, "name");
MetaDataTable authorTable = metaDataService.getTable("author");
metaDataService.getColumn(authorTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(authorTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(authorTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(authorTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(authorTable, "first_name", "first_name", "TEXT", null, 5, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(authorTable, "last_name", "last_name", "TEXT", null, 6, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(authorTable, "id", "TEXT" , 1, Boolean.FALSE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(authorTable, "created_date", "TIMESTAMP" , 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(authorTable, "last_modified_date", "TIMESTAMP" , 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(authorTable, "version", "LONG" , 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(authorTable, "first_name", "TEXT" , 5, Boolean.FALSE, "Vorname", Boolean.FALSE, null);
metaDataService.getColumn(authorTable, "last_name", "TEXT" , 6, Boolean.FALSE, "Nachname", Boolean.FALSE, null);
MetaDataTable articleTable = metaDataService.getTable("article");
metaDataService.getColumn(articleTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(articleTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(articleTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(articleTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(articleTable, "title", "title", "TEXT", "UNIQUE", 5, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(articleTable, "id", "TEXT" , 1, Boolean.FALSE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(articleTable, "created_date", "TIMESTAMP" , 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(articleTable, "last_modified_date", "TIMESTAMP" , 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(articleTable, "version", "LONG" , 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(articleTable, "title", "TEXT" , 5, Boolean.FALSE, "Titel", Boolean.FALSE, null);
MetaDataTable articleAuthorTable = metaDataService.getTable("article_author");
metaDataService.getColumn(articleAuthorTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(articleAuthorTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(articleAuthorTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(articleAuthorTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(articleAuthorTable, "article_id", "article_id", "TEXT", null, 5, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(articleAuthorTable, "author_id", "author_id", "TEXT", null, 6, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(articleAuthorTable, "id", "TEXT" , 1, Boolean.FALSE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(articleAuthorTable, "created_date", "TIMESTAMP" , 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(articleAuthorTable, "last_modified_date", "TIMESTAMP" , 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(articleAuthorTable, "version", "LONG" , 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(articleAuthorTable, "article_id", "TEXT" , 5, Boolean.FALSE, "Artikel", Boolean.FALSE, null, "title");
metaDataService.getColumn(articleAuthorTable, "author_id", "TEXT" , 6, Boolean.FALSE, "Autor", Boolean.FALSE, null, "name");
MetaDataTable bookTable = metaDataService.getTable("book");
metaDataService.getColumn(bookTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(bookTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(bookTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(bookTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(bookTable, "isbn", "isbn", "TEXT", "UNIQUE", 5, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(bookTable, "title", "title", "TEXT", null, 6, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(bookTable, "year", "year", "LONG", null, 7, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(bookTable, "publisher_id", "publisher_id", "TEXT", null, 8, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(bookTable, "id", "TEXT" , 1, Boolean.FALSE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(bookTable, "created_date", "TIMESTAMP" , 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(bookTable, "last_modified_date", "TIMESTAMP" , 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(bookTable, "version", "LONG" , 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(bookTable, "isbn", "TEXT" , 5, Boolean.FALSE, "ISBN", Boolean.FALSE, null);
metaDataService.getColumn(bookTable, "title", "TEXT" , 6, Boolean.FALSE, "Titel", Boolean.FALSE, null);
metaDataService.getColumn(bookTable, "year", "LONG" , 7, Boolean.FALSE, "Jahr", Boolean.FALSE, null);
metaDataService.getColumn(bookTable, "publisher_id", "TEXT" , 8, Boolean.FALSE, "Verlag", Boolean.FALSE, null, "name");
MetaDataTable bookAuthorTable = metaDataService.getTable("book_author");
metaDataService.getColumn(bookAuthorTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(bookAuthorTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(bookAuthorTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(bookAuthorTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(bookAuthorTable, "author_id", "author_id", "TEXT", null, 5, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(bookAuthorTable, "book_id", "book_id", "TEXT", null, 6, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(bookAuthorTable, "id", "TEXT" , 1, Boolean.FALSE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(bookAuthorTable, "created_date", "TIMESTAMP" , 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(bookAuthorTable, "last_modified_date", "TIMESTAMP" , 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(bookAuthorTable, "version", "LONG" , 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(bookAuthorTable, "author_id", "TEXT" , 5, Boolean.FALSE, "Autor", Boolean.FALSE, null, "name");
metaDataService.getColumn(bookAuthorTable, "book_id", "TEXT" , 6, Boolean.FALSE, "Buch", Boolean.FALSE, null, "title");
MetaDataTable bookshelfPublisherTable = metaDataService.getTable("bookshelf_publisher");
metaDataService.getColumn(bookshelfPublisherTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(bookshelfPublisherTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(bookshelfPublisherTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(bookshelfPublisherTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(bookshelfPublisherTable, "name", "name", "TEXT", "UNIQUE", 5, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(bookshelfPublisherTable, "id", "TEXT" , 1, Boolean.FALSE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(bookshelfPublisherTable, "created_date", "TIMESTAMP" , 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(bookshelfPublisherTable, "last_modified_date", "TIMESTAMP" , 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(bookshelfPublisherTable, "version", "LONG" , 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(bookshelfPublisherTable, "name", "TEXT" , 5, Boolean.FALSE, "Name", Boolean.FALSE, null);
MetaDataTable sportTable = metaDataService.getTable("sport");
metaDataService.getColumn(sportTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(sportTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(sportTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(sportTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(sportTable, "name", "name", "TEXT", "UNIQUE", 5, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(sportTable, "id", "TEXT" , 1, Boolean.FALSE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(sportTable, "created_date", "TIMESTAMP" , 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(sportTable, "last_modified_date", "TIMESTAMP" , 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(sportTable, "version", "LONG" , 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(sportTable, "name", "TEXT" , 5, Boolean.FALSE, "Name", Boolean.FALSE, null);
MetaDataTable playerTable = metaDataService.getTable("player");
metaDataService.getColumn(playerTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(playerTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(playerTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(playerTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(playerTable, "first_name", "first_name", "TEXT", null, 5, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(playerTable, "last_name", "last_name", "TEXT", null, 6, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(playerTable, "id", "TEXT" , 1, Boolean.FALSE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(playerTable, "created_date", "TIMESTAMP" , 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(playerTable, "last_modified_date", "TIMESTAMP" , 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(playerTable, "version", "LONG" , 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(playerTable, "first_name", "TEXT" , 5, Boolean.FALSE, "Vorname", Boolean.FALSE, null);
metaDataService.getColumn(playerTable, "last_name", "TEXT" , 6, Boolean.FALSE, "Nachname", Boolean.FALSE, null);
MetaDataTable teamTable = metaDataService.getTable("team");
metaDataService.getColumn(teamTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(teamTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(teamTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(teamTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(teamTable, "name", "name", "TEXT", "UNIQUE", 5, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(teamTable, "short_name", "short_name", "TEXT", null, 6, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(teamTable, "sport_id", "sport_id", "TEXT", null, 7, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(teamTable, "id", "TEXT" , 1, Boolean.FALSE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(teamTable, "created_date", "TIMESTAMP" , 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(teamTable, "last_modified_date", "TIMESTAMP" , 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(teamTable, "version", "LONG" , 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(teamTable, "name", "TEXT" , 5, Boolean.FALSE, "Name", Boolean.FALSE, null);
metaDataService.getColumn(teamTable, "short_name", "TEXT" , 6, Boolean.FALSE, "Kurzname", Boolean.FALSE, null);
metaDataService.getColumn(teamTable, "sport_id", "TEXT" , 7, Boolean.FALSE, "Sport", Boolean.FALSE, null, "name");
MetaDataTable vendorTable = metaDataService.getTable("vendor");
metaDataService.getColumn(vendorTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(vendorTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(vendorTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(vendorTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(vendorTable, "name", "name", "TEXT", "UNIQUE", 5, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(vendorTable, "id", "TEXT" , 1, Boolean.FALSE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(vendorTable, "created_date", "TIMESTAMP" , 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(vendorTable, "last_modified_date", "TIMESTAMP" , 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(vendorTable, "version", "LONG" , 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(vendorTable, "name", "TEXT" , 5, Boolean.FALSE, "Name", Boolean.FALSE, null);
MetaDataTable fieldPositionTable = metaDataService.getTable("field_position");
metaDataService.getColumn(fieldPositionTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(fieldPositionTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(fieldPositionTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(fieldPositionTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(fieldPositionTable, "name", "name", "TEXT", null, 5, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(fieldPositionTable, "short_name", "short_name", "TEXT", null, 6, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(fieldPositionTable, "sport_id", "sport_id", "TEXT", null, 7, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(fieldPositionTable, "id", "TEXT" , 1, Boolean.FALSE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(fieldPositionTable, "created_date", "TIMESTAMP" , 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(fieldPositionTable, "last_modified_date", "TIMESTAMP" , 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(fieldPositionTable, "version", "LONG" , 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(fieldPositionTable, "name", "TEXT" , 5, Boolean.FALSE, "Name", Boolean.FALSE, null);
metaDataService.getColumn(fieldPositionTable, "short_name", "TEXT" , 6, Boolean.FALSE, "Kurzname", Boolean.FALSE, null);
metaDataService.getColumn(fieldPositionTable, "sport_id", "TEXT" , 7, Boolean.FALSE, "Sport", Boolean.FALSE, null, "name");
MetaDataTable roosterTable = metaDataService.getTable("rooster");
metaDataService.getColumn(roosterTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(roosterTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(roosterTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(roosterTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(roosterTable, "year", "year", "LONG", null, 5, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(roosterTable, "player_id", "player_id", "TEXT", null, 6, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(roosterTable, "position_id", "position_id", "TEXT", null, 7, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(roosterTable, "team_id", "team_id", "TEXT", null, 8, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(roosterTable, "id", "TEXT", 1, Boolean.FALSE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(roosterTable, "created_date", "TIMESTAMP", 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(roosterTable, "last_modified_date", "TIMESTAMP", 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(roosterTable, "version", "LONG", 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(roosterTable, "year", "LONG", 5, Boolean.FALSE, "Jahr", Boolean.FALSE, null);
metaDataService.getColumn(roosterTable, "player_id", "TEXT", 6, Boolean.FALSE, "Spieler", Boolean.FALSE, null, "last_name");
metaDataService.getColumn(roosterTable, "position_id", "TEXT", 7, Boolean.FALSE, "Position", Boolean.FALSE, null, "short_name");
metaDataService.getColumn(roosterTable, "team_id", "TEXT", 8, Boolean.FALSE, "Team", Boolean.FALSE, null, "name");
MetaDataTable cardSetTable = metaDataService.getTable("card_set");
metaDataService.getColumn(cardSetTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(cardSetTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(cardSetTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(cardSetTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(cardSetTable, "insert_set", "insert_set", "BOOLEAN", null, 5, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(cardSetTable, "parallel_set", "parallel_set", "BOOLEAN", null, 6, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(cardSetTable, "name", "name", "TEXT", null, 7, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(cardSetTable, "vendor_id", "vendor_id", "TEXT", null, 8, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(cardSetTable, "id", "TEXT", 1, Boolean.FALSE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(cardSetTable, "created_date", "TIMESTAMP", 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(cardSetTable, "last_modified_date", "TIMESTAMP", 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(cardSetTable, "version", "LONG", 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(cardSetTable, "insert_set", "BOOLEAN", 5, Boolean.FALSE, "Insertset?", Boolean.FALSE, null);
metaDataService.getColumn(cardSetTable, "parallel_set", "BOOLEAN", 6, Boolean.FALSE, "Parallelset?", Boolean.FALSE, null);
metaDataService.getColumn(cardSetTable, "name", "TEXT", 7, Boolean.FALSE, "Name", Boolean.FALSE, null);
metaDataService.getColumn(cardSetTable, "vendor_id", "TEXT", 8, Boolean.FALSE, "Hersteller", Boolean.FALSE, null, "name");
MetaDataTable cardTable = metaDataService.getTable("card");
metaDataService.getColumn(cardTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(cardTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(cardTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(cardTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(cardTable, "card_number", "card_number", "LONG", null, 5, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(cardTable, "year", "year", "LONG", null, 6, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(cardTable, "card_set_id", "card_set_id", "TEXT", null, 7, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(cardTable, "rooster_id", "rooster_id", "TEXT", null, 8, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(cardTable, "vendor_id", "vendor_id", "TEXT", null, 9, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(cardTable, "id", "TEXT", 1, Boolean.FALSE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(cardTable, "created_date", "TIMESTAMP", 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(cardTable, "last_modified_date", "TIMESTAMP", 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(cardTable, "version", "LONG", 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(cardTable, "card_number", "LONG", 5, Boolean.FALSE, "Nummmer", Boolean.FALSE, null);
metaDataService.getColumn(cardTable, "year", "LONG", 6, Boolean.FALSE, "Jahr", Boolean.FALSE, null);
metaDataService.getColumn(cardTable, "card_set_id", "TEXT", 7, Boolean.FALSE, "Set", Boolean.FALSE, null, "name");
metaDataService.getColumn(cardTable, "rooster_id", "TEXT", 8, Boolean.FALSE, "Spieler", Boolean.FALSE, null, "name");
metaDataService.getColumn(cardTable, "vendor_id", "TEXT", 9, Boolean.FALSE, "Hersteller", Boolean.FALSE, null, "name");
MetaDataTable profileTable = metaDataService.getTable("profile");
metaDataService.getColumn(profileTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.TRUE, "", Boolean.FALSE, null);
metaDataService.getColumn(profileTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(profileTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(profileTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(profileTable, "first_name", "first_name", "TEXT", null, 5, Boolean.TRUE, "", Boolean.FALSE, null);
metaDataService.getColumn(profileTable, "last_name", "last_name", "TEXT", null, 6, Boolean.TRUE, "", Boolean.FALSE, null);
metaDataService.getColumn(profileTable, "user_name", "user_name", "TEXT", "UNIQUE", 7, Boolean.TRUE, "", Boolean.FALSE, null);
metaDataService.getColumn(profileTable, "email", "email", "TEXT", null, 8, Boolean.TRUE, "", Boolean.FALSE, null);
metaDataService.getColumn(profileTable, "password", "password", "TEXT", null, 9, Boolean.FALSE, "Password", Boolean.FALSE, null);
metaDataService.getColumn(profileTable, "enabled", "enabled", "BOOLEAN", null, 10, Boolean.TRUE, "", Boolean.TRUE, null);
metaDataService.getColumn(profileTable, "id", "TEXT", 1, Boolean.TRUE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(profileTable, "created_date", "TIMESTAMP", 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(profileTable, "last_modified_date", "TIMESTAMP", 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(profileTable, "version", "LONG", 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(profileTable, "first_name", "TEXT", 5, Boolean.TRUE, "Vorname", Boolean.FALSE, null);
metaDataService.getColumn(profileTable, "last_name", "TEXT", 6, Boolean.TRUE, "Nachname", Boolean.FALSE, null);
metaDataService.getColumn(profileTable, "user_name", "TEXT", 7, Boolean.TRUE, "Login", Boolean.FALSE, null);
metaDataService.getColumn(profileTable, "email", "TEXT", 8, Boolean.TRUE, "Email", Boolean.FALSE, null);
metaDataService.getColumn(profileTable, "password", "TEXT", 9, Boolean.FALSE, "Password", Boolean.FALSE, null);
metaDataService.getColumn(profileTable, "enabled", "BOOLEAN", 10, Boolean.TRUE, "Aktiv?", Boolean.TRUE, null);
MetaDataTable tokenTable = metaDataService.getTable("token");
metaDataService.getColumn(tokenTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.TRUE, "", Boolean.FALSE, null);
metaDataService.getColumn(tokenTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(tokenTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(tokenTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(tokenTable, "token", "token", "TEXT", null, 5, Boolean.TRUE, "", Boolean.FALSE, null);
metaDataService.getColumn(tokenTable, "name", "name", "TEXT", null, 6, Boolean.TRUE, "Name", Boolean.FALSE, null);
metaDataService.getColumn(tokenTable, "last_used_date", "used", "TIMESTAMP", null, 7, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(tokenTable, "enabled", "enabled", "BOOLEAN", null, 8, Boolean.TRUE, "", Boolean.TRUE, "Enabled");
metaDataService.getColumn(tokenTable, "profile_id", "profile_id", "TEXT", null, 9, Boolean.TRUE, "Profile", Boolean.FALSE, null, "user_name");
metaDataService.getColumn(tokenTable, "id", "TEXT"
, 1, Boolean.TRUE, "", Boolean.FALSE, null);
metaDataService.getColumn(tokenTable, "created_date", "TIMESTAMP", 2, Boolean.FALSE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(tokenTable, "last_modified_date", "TIMESTAMP", 3, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(tokenTable, "version", "LONG", 4, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(tokenTable, "token", "TEXT", 5, Boolean.TRUE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(tokenTable, "name", "TEXT", 6, Boolean.TRUE, "Name", Boolean.FALSE, null);
metaDataService.getColumn(tokenTable, "last_used_date", "TIMESTAMP", 7, Boolean.FALSE, "Verwendet", Boolean.FALSE, null);
metaDataService.getColumn(tokenTable, "enabled", "BOOLEAN", 8, Boolean.TRUE, "Aktiv", Boolean.TRUE, "Enabled");
metaDataService.getColumn(tokenTable, "profile_id", "TEXT", 9, Boolean.TRUE, "Profile", Boolean.FALSE, null, "user_name");
MetaDataTable permissionTable = metaDataService.getTable("permission");
metaDataService.getColumn(permissionTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.TRUE, "", Boolean.FALSE, null);
metaDataService.getColumn(permissionTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(permissionTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(permissionTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(permissionTable, "name", "name", "TEXT", null, 5, Boolean.TRUE, "", Boolean.FALSE, null);
metaDataService.getColumn(permissionTable, "id", "TEXT", 1, Boolean.TRUE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(permissionTable, "created_date", "TIMESTAMP", 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(permissionTable, "last_modified_date", "TIMESTAMP", 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(permissionTable, "version", "LONG", 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(permissionTable, "name", "TEXT", 5, Boolean.TRUE, "Name", Boolean.FALSE, null);
MetaDataTable AssignmentTable = metaDataService.getTable("assignment");
metaDataService.getColumn(AssignmentTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.TRUE, "", Boolean.FALSE, null);
metaDataService.getColumn(AssignmentTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(AssignmentTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(AssignmentTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(AssignmentTable, "profile_id", "profile_id", "TEXT", null, 5, Boolean.TRUE, "Profile", Boolean.FALSE, null, "user_name");
metaDataService.getColumn(AssignmentTable, "permission_id", "permission_id", "TEXT", null, 6, Boolean.TRUE, "Permission", Boolean.FALSE, null, "name");
metaDataService.getColumn(AssignmentTable, "id", "TEXT", 1, Boolean.TRUE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(AssignmentTable, "created_date", "TIMESTAMP", 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(AssignmentTable, "last_modified_date", "TIMESTAMP", 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(AssignmentTable, "version", "LONG", 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(AssignmentTable, "profile_id", "TEXT", 5, Boolean.TRUE, "Profile", Boolean.FALSE, null, "user_name");
metaDataService.getColumn(AssignmentTable, "permission_id", "TEXT", 6, Boolean.TRUE, "Permission", Boolean.FALSE, null, "name");
MetaDataTable moduleDataTable = metaDataService.getTable("module_data");
metaDataService.getColumn(moduleDataTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.TRUE, "", Boolean.FALSE, null);
metaDataService.getColumn(moduleDataTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(moduleDataTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(moduleDataTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(moduleDataTable, "module_name", "module_name", "TEXT", "UNIQUE", 5, Boolean.TRUE, "Module", Boolean.FALSE, null);
metaDataService.getColumn(moduleDataTable, "import_data", "import_data", "BOOLEAN", null, 6, Boolean.TRUE, "Import Data?", Boolean.TRUE, "Import Data");
metaDataService.getColumn(moduleDataTable, "id", "TEXT", 1, Boolean.TRUE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(moduleDataTable, "created_date", "TIMESTAMP", 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(moduleDataTable, "last_modified_date", "TIMESTAMP", 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(moduleDataTable, "version", "LONG", 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(moduleDataTable, "module_name", "TEXT", 5, Boolean.TRUE, "Module", Boolean.FALSE, null);
metaDataService.getColumn(moduleDataTable, "import_data", "BOOLEAN", 6, Boolean.TRUE, "Import Data?", Boolean.TRUE, "Import Data");
MetaDataTable mailAccountTable = metaDataService.getTable("mail_account");
metaDataService.getColumn(mailAccountTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(mailAccountTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(mailAccountTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(mailAccountTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(mailAccountTable, "host", "host", "TEXT", null, 5, Boolean.TRUE, "Host", Boolean.FALSE, null);
metaDataService.getColumn(mailAccountTable, "port", "port", "LONG", null, 6, Boolean.TRUE, "Port", Boolean.FALSE, null);
metaDataService.getColumn(mailAccountTable, "protocol", "protocol", "TEXT", null, 7, Boolean.TRUE, "Protocol", Boolean.FALSE, null);
metaDataService.getColumn(mailAccountTable, "user_name", "user_name", "TEXT", null, 8, Boolean.TRUE, "Username", Boolean.FALSE, null);
metaDataService.getColumn(mailAccountTable, "password", "password", "TEXT", null, 9, Boolean.FALSE, "Password", Boolean.FALSE, null);
metaDataService.getColumn(mailAccountTable, "start_tls", "start_tls", "BOOLEAN", null, 10, Boolean.TRUE, "StartTLS", Boolean.TRUE, "StartTLS");
metaDataService.getColumn(mailAccountTable, "id", "TEXT", 1, Boolean.FALSE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(mailAccountTable, "created_date", "TIMESTAMP", 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(mailAccountTable, "last_modified_date", "TIMESTAMP", 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(mailAccountTable, "version", "LONG", 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(mailAccountTable, "host", "TEXT", 5, Boolean.TRUE, "Host", Boolean.FALSE, null);
metaDataService.getColumn(mailAccountTable, "port", "LONG", 6, Boolean.TRUE, "Port", Boolean.FALSE, null);
metaDataService.getColumn(mailAccountTable, "protocol", "TEXT", 7, Boolean.TRUE, "Protocol", Boolean.FALSE, null);
metaDataService.getColumn(mailAccountTable, "user_name", "TEXT", 8, Boolean.TRUE, "Username", Boolean.FALSE, null);
metaDataService.getColumn(mailAccountTable, "password", "TEXT", 9, Boolean.FALSE, "Password", Boolean.FALSE, null);
metaDataService.getColumn(mailAccountTable, "start_tls", "BOOLEAN", 10, Boolean.TRUE, "StartTLS", Boolean.TRUE, "StartTLS");
MetaDataTable mailTable = metaDataService.getTable("mail");
metaDataService.getColumn(mailTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(mailTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(mailTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(mailTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(mailTable, "folder", "folder", "TEXT", null, 5, Boolean.TRUE, "Folder", Boolean.FALSE, null);
metaDataService.getColumn(mailTable, "subject", "subject", "TEXT", null, 6, Boolean.TRUE, "Subject", Boolean.FALSE, null);
metaDataService.getColumn(mailTable, "body", "body", "TEXT", null, 7, Boolean.FALSE, "Body", Boolean.FALSE, null);
metaDataService.getColumn(mailTable, "sent_date", "created", "TIMESTAMP", null, 8, Boolean.FALSE, "Gesendet", Boolean.FALSE, null);
metaDataService.getColumn(mailTable, "received_date", "created", "TIMESTAMP", null, 9, Boolean.FALSE, "Empfangen", Boolean.FALSE, null);
metaDataService.getColumn(mailTable, "id", "TEXT", 1, Boolean.FALSE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(mailTable, "created_date", "TIMESTAMP", 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(mailTable, "last_modified_date", "TIMESTAMP", 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(mailTable, "version", "LONG", 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(mailTable, "folder", "TEXT", 5, Boolean.TRUE, "Folder", Boolean.FALSE, null);
metaDataService.getColumn(mailTable, "subject", "TEXT", 6, Boolean.TRUE, "Subject", Boolean.FALSE, null);
metaDataService.getColumn(mailTable, "body", "TEXT", 7, Boolean.FALSE, "Body", Boolean.FALSE, null);
metaDataService.getColumn(mailTable, "sent_date", "TIMESTAMP", 8, Boolean.FALSE, "Gesendet", Boolean.FALSE, null);
metaDataService.getColumn(mailTable, "received_date", "TIMESTAMP", 9, Boolean.FALSE, "Empfangen", Boolean.FALSE, null);
MetaDataTable metaDataTableTable = metaDataService.getTable("meta_data_table");
metaDataService.getColumn(metaDataTableTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.TRUE, "", Boolean.FALSE, null);
metaDataService.getColumn(metaDataTableTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(metaDataTableTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(metaDataTableTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(metaDataTableTable, "table_name", "table_name", "TEXT", "UNIQUE", 5, Boolean.TRUE, "Table", Boolean.FALSE, null);
metaDataService.getColumn(metaDataTableTable, "id", "TEXT", 1, Boolean.TRUE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(metaDataTableTable, "created_date", "TIMESTAMP", 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(metaDataTableTable, "last_modified_date", "TIMESTAMP", 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(metaDataTableTable, "version", "LONG", 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(metaDataTableTable, "table_name", "TEXT", 5, Boolean.TRUE, "Table", Boolean.FALSE, null);
MetaDataTable metaDataColumnTable = metaDataService.getTable("meta_data_column");
metaDataService.getColumn(metaDataColumnTable, "id", "identifier", "TEXT", "PRIMARY KEY", 1, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(metaDataColumnTable, "created_date", "created", "TIMESTAMP", null, 2, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(metaDataColumnTable, "last_modified_date", "modified", "TIMESTAMP", null, 3, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(metaDataColumnTable, "version", "version", "LONG", null, 4, Boolean.FALSE, "", Boolean.FALSE, null);
metaDataService.getColumn(metaDataColumnTable, "column_name", "column_name", "TEXT", null, 5, Boolean.TRUE, "Column", Boolean.FALSE, null);
metaDataService.getColumn(metaDataColumnTable, "column_sync_name", "column_sync_name", "TEXT", null, 6, Boolean.TRUE, "SQLite Column", Boolean.FALSE, null);
metaDataService.getColumn(metaDataColumnTable, "column_type", "column_type", "TEXT", null, 7, Boolean.TRUE, "Type", Boolean.FALSE, null);
metaDataService.getColumn(metaDataColumnTable, "column_modifier", "column_modifier", "TEXT", null, 8, Boolean.TRUE, "Modifier", Boolean.FALSE, null);
metaDataService.getColumn(metaDataColumnTable, "column_order", "column_order", "LONG", null, 9, Boolean.TRUE, "Order", Boolean.FALSE, null);
metaDataService.getColumn(metaDataColumnTable, "is_shown", "is_shown", "BOOLEAN", null, 10, Boolean.TRUE, "Is Shown", Boolean.TRUE, "Is Shown");
metaDataService.getColumn(metaDataColumnTable, "column_label", "column_label", "TEXT", null, 11, Boolean.TRUE, "Label", Boolean.FALSE, null);
metaDataService.getColumn(metaDataColumnTable, "show_filter", "show_filter", "BOOLEAN", null, 12, Boolean.TRUE, "Show Filter", Boolean.TRUE, "Show Filter");
metaDataService.getColumn(metaDataColumnTable, "filter_label", "filter_label", "TEXT", null, 13, Boolean.TRUE, "Filter Label", Boolean.FALSE, null);
metaDataService.getColumn(metaDataColumnTable, "ref_column", "ref_column", "TEXT", null, 14, Boolean.TRUE, "Ref Column", Boolean.FALSE, null);
metaDataService.getColumn(metaDataColumnTable, "table_id", "table_id", "TEXT", null, 15, Boolean.TRUE, "Table", Boolean.FALSE, null, "table_name");
metaDataService.getColumn(metaDataColumnTable, "id", "TEXT", 1, Boolean.FALSE, "ID", Boolean.FALSE, null);
metaDataService.getColumn(metaDataColumnTable, "created_date", "TIMESTAMP", 2, Boolean.FALSE, "Created", Boolean.FALSE, null);
metaDataService.getColumn(metaDataColumnTable, "last_modified_date", "TIMESTAMP", 3, Boolean.FALSE, "Modified", Boolean.FALSE, null);
metaDataService.getColumn(metaDataColumnTable, "version", "LONG", 4, Boolean.FALSE, "Version", Boolean.FALSE, null);
metaDataService.getColumn(metaDataColumnTable, "column_name", "TEXT", 5, Boolean.TRUE, "Column", Boolean.FALSE, null);
metaDataService.getColumn(metaDataColumnTable, "column_type", "TEXT", 7, Boolean.TRUE, "Type", Boolean.FALSE, null);
metaDataService.getColumn(metaDataColumnTable, "column_order", "LONG", 9, Boolean.TRUE, "Order", Boolean.FALSE, null);
metaDataService.getColumn(metaDataColumnTable, "is_shown", "BOOLEAN", 10, Boolean.TRUE, "Is Shown", Boolean.TRUE, "Is Shown");
metaDataService.getColumn(metaDataColumnTable, "column_label", "TEXT", 11, Boolean.TRUE, "Label", Boolean.FALSE, null);
metaDataService.getColumn(metaDataColumnTable, "show_filter", "BOOLEAN", 12, Boolean.TRUE, "Show Filter", Boolean.TRUE, "Show Filter");
metaDataService.getColumn(metaDataColumnTable, "filter_label", "TEXT", 13, Boolean.TRUE, "Filter Label", Boolean.FALSE, null);
metaDataService.getColumn(metaDataColumnTable, "ref_column", "TEXT", 14, Boolean.TRUE, "Ref Column", Boolean.FALSE, null);
metaDataService.getColumn(metaDataColumnTable, "table_id", "TEXT", 15, Boolean.TRUE, "Table", Boolean.FALSE, null, "table_name");
}
}
@@ -21,13 +21,8 @@ public class MetaDataColumn extends AbstractEntity {
@NotNull
private String columnName;
private String columnSyncName;
private String columnType;
@Nullable
private String columnModifier;
private Integer columnOrder;
private Boolean isShown;
@@ -38,6 +33,7 @@ public class MetaDataColumn extends AbstractEntity {
private String filterLabel;
@Nullable
private String refColumn;
@ManyToOne
@@ -58,15 +54,6 @@ public class MetaDataColumn extends AbstractEntity {
return "no changes for " + this.getId() + "\n";
}
public String updateColumnSyncName(String value) {
if (!this.getColumnSyncName().equals(value)) {
this.setColumnSyncName(value);
log.info("update columnSyncName");
return "updated " + this.getId() + " with " + value + "\n";
}
return "no changes for " + this.getId() + "\n";
}
@Override
public String toString() {
return "MetaDataColumn{id=" + getId() + ", columnName=" + columnName + ", table=" + table.getTableName() +'}';
@@ -63,28 +63,20 @@ public class MetaDataService {
}
}
public void getColumn(MetaDataTable table, String columnName, String columnSyncName, String columnType, String columnModifier, Integer columnOrder, Boolean isShown, String columnLabel, Boolean showFilter, String filterLabel) {
this.getColumn(table, columnName, columnSyncName, columnType, columnModifier, columnOrder, isShown, columnLabel, showFilter, filterLabel, null);
public void getColumn(MetaDataTable table, String columnName, String columnType, Integer columnOrder, Boolean isShown, String columnLabel, Boolean showFilter, String filterLabel) {
this.getColumn(table, columnName, columnType, columnOrder, isShown, columnLabel, showFilter, filterLabel, null);
}
public void checkColumnValues(MetaDataTable table, MetaDataColumn column, String columnName, String columnSyncName, String columnType, String columnModifier, Integer columnOrder, Boolean isShown, String columnLabel, Boolean showFilter, String filterLabel, String refColumn) {
public void checkColumnValues(MetaDataTable table, MetaDataColumn column, String columnName, String columnType, Integer columnOrder, Boolean isShown, String columnLabel, Boolean showFilter, String filterLabel, String refColumn) {
log.debug("Column {} with name {} of table {} found, check Values", columnOrder, columnName, table.getTableName());
if (!column.getColumnName().equals(columnName)) {
log.debug("columnName has to be changed to {}", columnName);
column.setColumnName(columnName);
}
if (!column.getColumnSyncName().equals(columnSyncName)) {
log.debug("columnSyncName has to be changed to {}", columnSyncName);
column.setColumnSyncName(columnSyncName);
}
if (!column.getColumnType().equals(columnType)) {
log.debug("columnType has to be changed to {}", columnType);
column.setColumnType(columnType);
}
if (columnModifier != null && !columnModifier.equals(column.getColumnModifier())) {
log.debug("columnModifier has to be changed to {}", columnModifier);
column.setColumnModifier(columnModifier);
}
if (isShown != null && !isShown.equals(column.getIsShown())) {
log.debug("isShown has to be change to {}}", isShown);
column.setIsShown(isShown);
@@ -108,7 +100,7 @@ public class MetaDataService {
saveMetaDataColumn(column);
}
public void getColumn(MetaDataTable table, String columnName, String columnSyncName, String columnType, String columnModifier, Integer columnOrder, Boolean isShown, String columnLabel, Boolean showFilter, String filterLabel, String refColumn) {
public void getColumn(MetaDataTable table, String columnName, String columnType, Integer columnOrder, Boolean isShown, String columnLabel, Boolean showFilter, String filterLabel, String refColumn) {
log.info("check if column {} of table {} exists", columnName, table.getTableName());
boolean columnNameExists = table.getTableColumns().stream().anyMatch(column -> column.getColumnName().equals(columnName));
boolean columnOrderExists = false;
@@ -119,20 +111,18 @@ public class MetaDataService {
log.debug("column found: name: {}, order: {}: table.columns: {}", columnNameExists, columnOrderExists, metaDataColumns);
if (columnOrderExists) {
MetaDataColumn column = table.getTableColumns().get(columnOrder-1);
checkColumnValues(table, column, columnName, columnSyncName, columnType, columnModifier, columnOrder, isShown, columnLabel, showFilter, filterLabel, refColumn);
checkColumnValues(table, column, columnName, columnType, columnOrder, isShown, columnLabel, showFilter, filterLabel, refColumn);
} else {
log.info("Column {} of table {} not found, will create it", columnName, table.getTableName());
addColumn(table,columnName,columnSyncName,columnType,columnModifier,columnOrder,isShown, refColumn);
addColumn(table, columnName, columnType, columnOrder, isShown, refColumn);
}
}
private void addColumn(MetaDataTable table, String columnName, String columnSyncName, String columnType, String columnModifier, Integer columnOrder, Boolean isShown, String refColumn) {
private void addColumn(MetaDataTable table, String columnName, String columnType, Integer columnOrder, Boolean isShown, String refColumn) {
MetaDataColumn column = new MetaDataColumn();
column.setTable(table);
column.setColumnName(columnName);
column.setColumnSyncName(columnSyncName);
column.setColumnType(columnType);
column.setColumnModifier(columnModifier);
column.setColumnOrder(columnOrder);
column.setIsShown(isShown);
column.setRefColumn(refColumn);
@@ -205,7 +195,6 @@ public class MetaDataService {
MetaDataColumn metaDataColumn = new MetaDataColumn();
metaDataColumn.setId(id);
metaDataColumn.setColumnName(fields.get("column_name"));
metaDataColumn.setColumnSyncName(fields.get("column_sync_name"));
metaDataColumn.setColumnType(fields.get("column_type"));
metaDataColumnRepository.save(metaDataColumn);
} else {
@@ -230,9 +219,6 @@ public class MetaDataService {
case "column_name":
status.append(metaDataColumn.updateColumnName(value));
break;
case "column_sync_name":
status.append(metaDataColumn.updateColumnSyncName(value));
break;
default:
log.info("field {} is unknown for table {}", key, tableName);
}
@@ -15,6 +15,7 @@ import com.vaadin.flow.data.binder.BeanValidationBinder;
import com.vaadin.flow.data.binder.Binder;
import de.thpeetz.kontor.admin.data.MetaDataColumn;
import de.thpeetz.kontor.admin.data.MetaDataTable;
import lombok.*;
import java.util.List;
@@ -22,8 +23,6 @@ public class MetaDataForm extends FormLayout {
ComboBox<MetaDataTable> table = new ComboBox<>("Table");
TextField columnName = new TextField("Column Name");
TextField columnSyncName = new TextField("Column Sync Name");
TextField columnModifier = new TextField("Column Modifier");
IntegerField columnOrder = new IntegerField("Column Order");
Checkbox isShown = new Checkbox("Is Shown");
TextField columnLabel = new TextField("Column Label");
@@ -43,7 +42,7 @@ public class MetaDataForm extends FormLayout {
table.setItems(tables);
table.setItemLabelGenerator(MetaDataTable::getTableName);
add(table, columnName, columnSyncName, columnModifier, columnOrder);
add(table, columnName, columnOrder);
add(isShown, columnLabel);
isShown.addClickListener(click -> columnLabel.setEnabled(isShown.getValue()));
add(showFilter, filterLabel);
@@ -78,17 +77,15 @@ public class MetaDataForm extends FormLayout {
binder.setBean(metaDataColumn);
}
@Getter
public abstract static class MetaDataFormEvent extends ComponentEvent<MetaDataForm> {
private MetaDataColumn metaDataColumn;
private final MetaDataColumn metaDataColumn;
protected MetaDataFormEvent(MetaDataForm source, MetaDataColumn metaDataColumn) {
super(source, false);
this.metaDataColumn = metaDataColumn;
}
public MetaDataColumn getMetaDataColumn() {
return metaDataColumn;
}
}
public static class SaveEvent extends MetaDataForm.MetaDataFormEvent {
@@ -3,8 +3,6 @@ package de.thpeetz.kontor.admin.views;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.button.ButtonVariant;
import com.vaadin.flow.component.contextmenu.ContextMenu;
import com.vaadin.flow.component.contextmenu.MenuItem;
import com.vaadin.flow.component.grid.Grid;
import com.vaadin.flow.component.grid.GridSortOrder;
import com.vaadin.flow.component.icon.Icon;
@@ -52,12 +50,8 @@ public class MetaDataView extends VerticalLayout {
.setHeader("Table").setResizable(true).setSortable(true);
Grid.Column<MetaDataColumn> columnNameColumn = grid.addColumn(MetaDataColumn::getColumnName)
.setHeader("Column Name").setResizable(true).setSortable(true);
Grid.Column<MetaDataColumn> columnSyncNameColumn = grid.addColumn(MetaDataColumn::getColumnSyncName)
.setHeader("Column Sync Name").setResizable(true).setSortable(true);
Grid.Column<MetaDataColumn> columnTypeColumn = grid.addColumn(MetaDataColumn::getColumnType)
.setHeader("Column Type").setResizable(true).setSortable(true);
Grid.Column<MetaDataColumn> columnModifierColumn = grid.addColumn(MetaDataColumn::getColumnModifier)
.setHeader("Column Modifier").setResizable(true).setSortable(true);
Grid.Column<MetaDataColumn> columnOrderColumn = grid.addColumn(MetaDataColumn::getColumnOrder)
.setHeader("Column Order").setResizable(true).setSortable(true);
Grid.Column<MetaDataColumn> isShownColumn = grid.addComponentColumn(metaDataColumn -> StatusIcon.create(metaDataColumn.getIsShown())).
@@ -139,9 +133,7 @@ public class MetaDataView extends VerticalLayout {
columnToggleContextMenu.addColumnToggleItem(versionColumn);
columnToggleContextMenu.addColumnToggleItem(tableColumn);
columnToggleContextMenu.addColumnToggleItem(columnNameColumn);
columnToggleContextMenu.addColumnToggleItem(columnSyncNameColumn);
columnToggleContextMenu.addColumnToggleItem(columnTypeColumn);
columnToggleContextMenu.addColumnToggleItem(columnModifierColumn);
columnToggleContextMenu.addColumnToggleItem(columnOrderColumn);
columnToggleContextMenu.addColumnToggleItem(isShownColumn);
columnToggleContextMenu.addColumnToggleItem(columnLabelColumn);