Refactored field type system and Enum support

In order to support the `Enum` field type the `DbFieldType` enum has been converted
to an abstract class with an implementation class for each database field type.
This commit is contained in:
Francesco committed 2023-10-24 13:29:58 +02:00
1 parent d67729ea9d
commit 2cfcf2a8d7
39 files changed
+1634 -695

No files matched your search

@@ -77,6 +77,18 @@
></input>
</div>
</th:block>
<th:block th:fragment="select(field, create, name, value)">
<select th:name="${name}" class="form-select">
<option value=""
th:selected="${value == null}">NULL</option>
<option th:each="v : ${field.getType().getValues()}"
th:text="${v}"
th:value="${v}"
th:selected="${value == v}">
</option>
</select>
</th:block>
<!--
<th:block th:fragment="offset_datetime(field, create, name, value)">
<div class="form-group">