Skip to content
Snippets Groups Projects
Commit 0ac3f9ef authored by npedot's avatar npedot
Browse files

adds parent to table

parent 37a85990
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,6 @@ import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement
import com.sun.xml.internal.bind.v2.runtime.reflect.opt.Const
fun key(alfa:Constraint.()->Unit):Constraint {
val constraint = Constraint()
......
......@@ -18,6 +18,9 @@ class Table () {
@JacksonXmlProperty(isAttribute = true)
var condition: String =""
@JacksonXmlProperty(isAttribute = true)
var parent: String? = null
var columns= ArrayList<Column>()
fun hasColumn(nameToFind:String): Boolean {
......
......@@ -40,11 +40,13 @@ class YAMLSerializerDatabaseTest {
id: ""
view: ""
condition: ""
parent: null
columns: []
- name: ""
id: ""
view: ""
condition: ""
parent: null
columns: []
constraints: []
mappings: []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment