rlopantaleo.jmodel-sample-project.0.1.3.source-code.jmodel.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <jmodel xmlns="http://jmodel.carlopantaleo.com/JModel/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jmodel.carlopantaleo.com/JModel/2.0.0 /jmodel.xsd"> <enum name="TEST_ENUM"> <item>ITEM1</item> <item>ITEM2</item> </enum> <entity name="TEST_TABLE" class-name="MyTestTable"> <fields> <field type="string" length="10" pk="true"> PRIMARY_KEY </field> <field type="string" length="10" nullable="true"> SECOND_FIELD </field> <field type="string" length="10" nullable="false" default="DEF"> THIRD_FIELD </field> <field type="number"> NUMBER_FIELD </field> <field type="double"> DOUBLE_FIELD </field> <field type="float"> FLOAT_FIELD </field> <field type="enum" referred-enum="TEST_ENUM"> ENUM_FIELD </field> <field type="boolean"> BOOLEAN_FIELD </field> <field type="datetime"> DATETIME_FIELD </field> </fields> </entity> <entity name="ANOTHER_TABLE"> <fields> <field type="string" pk="true"> ANOTHER_PK_FIELD_1 </field> <field type="string" pk="true"> ANOTHER_PK_FIELD_2 </field> <field type="string"> ANOTHER_NON_PK_FIELD </field> </fields> </entity> </jmodel>