You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@isis.apache.org by "Chohan, Dharmesh" <dh...@atos.net> on 2014/01/13 17:08:49 UTC

Domain Mappings 1:m Exception

Hi

I am implementing a domain object mapping of 1 to many.  I have followed the documentation on http://isis.apache.org/components/objectstores/jdo/managed-1-to-m-relationships.html

This is what I have implemented,

@javax.jdo.annotations.Persistent(mappedBy="shoppingBasket")
        private SortedSet<ShoppingBasketItem> shoppingBasketItem = new TreeSet<ShoppingBasketItem>();

        @javax.jdo.annotations.Column(allowsNull="false")
    @MemberOrder(sequence = "3")
        public SortedSet <ShoppingBasketItem> getShoppingBasketItem() {
                return shoppingBasketItem;
        }

        public void setShoppingBasketItem(SortedSet <ShoppingBasketItem> shoppingBasketItem) {
                this.shoppingBasketItem = shoppingBasketItem;
        }

public class ShoppingBasketItem implements Comparable<ShoppingBasketItem> {

        private ShoppingBasket shoppingBasket;

        @javax.jdo.annotations.Column(allowsNull="false")
        public ShoppingBasket getShoppingBasket() {
                return shoppingBasket;
        }

        public void setShoppingBasket(ShoppingBasket shoppingBasket) {
                this.shoppingBasket = shoppingBasket;
        }

...

When I run ISIS and test the screen, I am getting the following exception,

*       java.lang.IllegalArgumentException
*       No such method ' getShoppingBasketItem' or 'isShoppingBasketItem'
*       org.apache.isis.applib.util.Clause#getValueOf(ObjectContracts.java:204)
*       org.apache.isis.applib.util.ObjectContracts#compare(ObjectContracts.java:45)
*       org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:117)
*       org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:15)
*       java.util.TreeMap#put(TreeMap.java:545)
*       java.util.TreeSet#add(TreeSet.java:238)
*       org.atos.tfgm.basket.ShoppingBaskets#getBasket(ShoppingBaskets.java:150)
*       sun.reflect.NativeMethodAccessorImpl#invoke0(NativeMethodAccessorImpl.java:-2)
*       sun.reflect.NativeMethodAccessorImpl#invoke(NativeMethodAccessorImpl.java:39)
*       sun.reflect.DelegatingMethodAccessorImpl#invoke(DelegatingMethodAccessorImpl.java:25)
*       java.lang.reflect.Method#invoke(Method.java:597)


Have I implemented the relationship incorrectly or missing something.


Regards
Dharmesh



RE: Domain Mappings 1:m Exception

Posted by "Chohan, Dharmesh" <dh...@atos.net>.
These are the tables generated by ISIS.  I don't see any relationship generated between the tables.

CREATE TABLE "ShoppingBasketItem"
     [exec] (
     [exec]     "ShoppingBasketItem_ID" BIGINT GENERATED BY DEFAULT AS IDENTITY,
     [exec]     "amount" NVARCHAR(255) NOT NULL,
     [exec]     "cardNumber" NVARCHAR(255) NOT NULL,
     [exec]     "description" NVARCHAR(255) NULL,
     [exec]     "location" NVARCHAR(255) NOT NULL,
     [exec]     "shoppingBasket_id_OID" BIGINT NOT NULL,
     [exec]     "version" BIGINT NOT NULL,
     [exec]     "shoppingBasketItem_id_OID" BIGINT NULL,
     [exec]     CONSTRAINT "ShoppingBasketItem_PK" PRIMARY KEY ("ShoppingBasketItem_ID")
     [exec] )

	 
	 CREATE TABLE "ShoppingBasket"
     [exec] (
     [exec]     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
     [exec]     "cardNumber" NVARCHAR(255) NOT NULL,
     [exec]     "orderTotal" INTEGER NOT NULL,
     [exec]     "version" BIGINT NOT NULL,
     [exec]     CONSTRAINT "ShoppingBasket_PK" PRIMARY KEY ("id")
     [exec] )

Any help would be appreciated.

Dharmesh

-----Original Message-----
From: Chohan, Dharmesh [mailto:dharmesh.chohan@atos.net] 
Sent: Monday, January 13, 2014 4:09 PM
To: users@isis.apache.org
Subject: Domain Mappings 1:m Exception

Hi

I am implementing a domain object mapping of 1 to many.  I have followed the documentation on http://isis.apache.org/components/objectstores/jdo/managed-1-to-m-relationships.html

This is what I have implemented,

@javax.jdo.annotations.Persistent(mappedBy="shoppingBasket")
        private SortedSet<ShoppingBasketItem> shoppingBasketItem = new TreeSet<ShoppingBasketItem>();

        @javax.jdo.annotations.Column(allowsNull="false")
    @MemberOrder(sequence = "3")
        public SortedSet <ShoppingBasketItem> getShoppingBasketItem() {
                return shoppingBasketItem;
        }

        public void setShoppingBasketItem(SortedSet <ShoppingBasketItem> shoppingBasketItem) {
                this.shoppingBasketItem = shoppingBasketItem;
        }

public class ShoppingBasketItem implements Comparable<ShoppingBasketItem> {

        private ShoppingBasket shoppingBasket;

        @javax.jdo.annotations.Column(allowsNull="false")
        public ShoppingBasket getShoppingBasket() {
                return shoppingBasket;
        }

        public void setShoppingBasket(ShoppingBasket shoppingBasket) {
                this.shoppingBasket = shoppingBasket;
        }

...

When I run ISIS and test the screen, I am getting the following exception,

*       java.lang.IllegalArgumentException
*       No such method ' getShoppingBasketItem' or 'isShoppingBasketItem'
*       org.apache.isis.applib.util.Clause#getValueOf(ObjectContracts.java:204)
*       org.apache.isis.applib.util.ObjectContracts#compare(ObjectContracts.java:45)
*       org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:117)
*       org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:15)
*       java.util.TreeMap#put(TreeMap.java:545)
*       java.util.TreeSet#add(TreeSet.java:238)
*       org.atos.tfgm.basket.ShoppingBaskets#getBasket(ShoppingBaskets.java:150)
*       sun.reflect.NativeMethodAccessorImpl#invoke0(NativeMethodAccessorImpl.java:-2)
*       sun.reflect.NativeMethodAccessorImpl#invoke(NativeMethodAccessorImpl.java:39)
*       sun.reflect.DelegatingMethodAccessorImpl#invoke(DelegatingMethodAccessorImpl.java:25)
*       java.lang.reflect.Method#invoke(Method.java:597)


Have I implemented the relationship incorrectly or missing something.


Regards
Dharmesh


Re: Domain Mappings 1:m Exception

Posted by GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>.
Nice! Don't hesitate to ask.

In our workflow we never annotate JDO properties by-hand, as it's really error-prone. 

Instead, we always create the fields on entities through the Isis Templates for JDO included on the previous email's link.

All them start with "isjd" (for Isis JDO).

So if you install them, write in a class "isid", and press CTRL+SPACE they will appear.

Includes support for the following kind of properties:

JDO Property (simple - 1:1 unidir & bidir - parent)
JDO Collection (1:n bidir, through a foreign key)
JDO Collection (1:n bidir, through join table)
JDO Collection (1:n unidir, foreign key)
JDO Collection (1:n unidir, join table)
JDO Collection (m:n bidir - child)
JDO Collection (m:n unidir & bidir - parent)


The kink again for downloading at [1].


HTH,

Oscar


[1] http://isis.apache.org/getting-started/editor-templates.html



El 14/01/2014, a las 14:58, Chohan, Dharmesh <dh...@atos.net> escribió:

> Hi Oscar
> 
> I am not getting the error and the changes work! I had the same changes but was missing the following,
> 
> dependentElement="true" in @javax.jdo.annotations.Persistent(mappedBy="shoppingBasket", dependentElement="true")	
> 
> and had a column  annotation which I remove
> 	
> //@javax.jdo.annotations.Column(allowsNull="true")
>    @MemberOrder(sequence = "3")
> 	public SortedSet <ShoppingBasketItem> getShoppingBasketItem() {
> 		return shoppingBasketItem;
> 	}
> 
> Thanks for your help
> Dharmesh
> 
> -----Original Message-----
> From: GESCONSULTOR - Óscar Bou [mailto:o.bou@gesconsultor.com] 
> Sent: Tuesday, January 14, 2014 1:06 PM
> To: users@isis.apache.org
> Subject: Re: Domain Mappings 1:m Exception
> 
> 
> Uppps!!! Sorry. There was a mistake on the "mappedBy" annotation's attribute.
> 
> 
> 
> @javax.jdo.annotations.PersistenceCapable(identityType = IdentityType.DATASTORE)
> @javax.jdo.annotations.DatastoreIdentity(strategy = javax.jdo.annotations.IdGeneratorStrategy.IDENTITY, column = "id")
> @javax.jdo.annotations.Version(strategy = VersionStrategy.VERSION_NUMBER, column = "version")
> public class ShoppingBasket {
> 
>   // Isis Template: isjdc-1n-b-fk
>   // {{ Items (Collection)
>   @Persistent(mappedBy = "shoppingBasket", dependentElement = "true")
>   private SortedSet<ShoppingBasketItem> items = new TreeSet<ShoppingBasketItem>();
> 
>   @MemberOrder(sequence = "1")
>   public SortedSet<ShoppingBasketItem> getItems() {
>       return this.items;
>   }
> 
>   public void setItems(final SortedSet<ShoppingBasketItem> items) {
>       this.items = items;
>   }
>   // }}
> }
> 
> 
> El 14/01/2014, a las 14:02, GESCONSULTOR - Óscar Bou <o....@gesconsultor.com> escribió:
> 
>> Please, verify also that the proper JDO annotations are on each class.
>> 
>> Try the following ones.  Both fields annotations have been automatically generated by using the Eclipse Isis templates available on [1]:
>> 
>> @javax.jdo.annotations.PersistenceCapable(identityType = IdentityType.DATASTORE)
>> @javax.jdo.annotations.DatastoreIdentity(strategy = javax.jdo.annotations.IdGeneratorStrategy.IDENTITY, column = "id")
>> @javax.jdo.annotations.Version(strategy = VersionStrategy.VERSION_NUMBER, column = "version")
>> public class ShoppingBasket {
>> 
>>   // Isis Template: isjdc-1n-b-fk
>>   // {{ Items (Collection)
>>   @Persistent(mappedBy = "Items", dependentElement = "true")
>>   private SortedSet<ShoppingBasketItem> items = new TreeSet<ShoppingBasketItem>();
>> 
>>   @MemberOrder(sequence = "1")
>>   public SortedSet<ShoppingBasketItem> getItems() {
>>       return this.items;
>>   }
>> 
>>   public void setItems(final SortedSet<ShoppingBasketItem> items) {
>>       this.items = items;
>>   }
>>   // }}
>> }
>> 
>> 
>> @javax.jdo.annotations.PersistenceCapable(identityType = IdentityType.DATASTORE)
>> @javax.jdo.annotations.DatastoreIdentity(strategy = javax.jdo.annotations.IdGeneratorStrategy.IDENTITY, column = "id")
>> @javax.jdo.annotations.Version(strategy = VersionStrategy.VERSION_NUMBER, column = "version")
>> public class ShoppingBasketItem {
>> 
>>   // Isis Template: isjdp
>>   // {{ ShoppingBasket (property)
>>   private ShoppingBasket shoppingBasket;
>> 
>>   @MemberOrder(sequence = "1")
>>   @Column(allowsNull = "false")
>>   public ShoppingBasket getShoppingBasket() {
>>       return this.shoppingBasket;
>>   }
>> 
>>   public void setShoppingBasket(final ShoppingBasket shoppingBasket) {
>>       this.shoppingBasket = shoppingBasket;
>>   }
>>   // }}
>> 
>> }
>> 
>> 
>> 
>> [1] http://isis.apache.org/getting-started/editor-templates.html
>> 
>> 
>> El 14/01/2014, a las 11:32, Chohan, Dharmesh <dh...@atos.net> escribió:
>> 
>>> Thanks for your responses but my issue still exists and I am close to the problem but do not understand what the framework is doing.
>>> 
>>> @Dan, the framework does generate the relationship.
>>> 
>>> @Oscar, see class definition
>>> 
>>> @javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
>>> @javax.jdo.annotations.DatastoreIdentity(
>>>      strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY, column="id")
>>> @javax.jdo.annotations.Version(
>>>      strategy=VersionStrategy.VERSION_NUMBER, column="version")
>>> 
>>> public class ShoppingBasketItem implements Comparable<ShoppingBasketItem> {
>>> 
>>> 
>>> 
>>> CREATE TABLE "ShoppingBasketItem"
>>>   [exec] (
>>>   [exec]     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   [exec]     "amount" NVARCHAR(255) NOT NULL,
>>>   [exec]     "cardNumber" NVARCHAR(255) NOT NULL,
>>>   [exec]     "description" NVARCHAR(255) NULL,
>>>   [exec]     "location" NVARCHAR(255) NOT NULL,
>>>   [exec]     "shoppingBasket_id_OID" BIGINT NOT NULL,
>>>   [exec]     "version" BIGINT NOT NULL,
>>>   [exec]     "shoppingBasketItem_id_OID" BIGINT NULL,
>>>   [exec]     CONSTRAINT "ShoppingBasketItem_PK" PRIMARY KEY ("id")
>>>   [exec] )
>>> 
>>> CREATE TABLE "ShoppingBasket"
>>>   [exec] (
>>>   [exec]     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   [exec]     "cardNumber" NVARCHAR(255) NOT NULL,
>>>   [exec]     "orderTotal" INTEGER NOT NULL,
>>>   [exec]     "version" BIGINT NOT NULL,
>>>   [exec]     CONSTRAINT "ShoppingBasket_PK" PRIMARY KEY ("id")
>>>   [exec] )
>>> 
>>> ALTER TABLE "ShoppingBasketItem" ADD CONSTRAINT "ShoppingBasketItem_FK2" FOREIGN KEY ("shoppingBasketItem_id_OID") REFERENCES "ShoppingBasket" ("id")
>>> 
>>> ALTER TABLE "ShoppingBasketItem" ADD CONSTRAINT "ShoppingBasketItem_FK1" FOREIGN KEY ("shoppingBasket_id_OID") REFERENCES "ShoppingBasket" ("id")
>>> 
>>> INSERT INTO "ShoppingBasket" ("cardNumber","orderTotal","version") VALUES (<'123456789001'>,<15>,<1>)
>>> 
>>> INSERT INTO "ShoppingBasketItem" ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID") 
>>> 	VALUES (<'123456789001'>,<'Please_Select'>,<'Item 1'>,<'▒5'>,<null>,<1>,<0>)
>>> 
>>> The error is Data already exists
>>> integrity constraint violation: NOT NULL check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column: "shoppingBasket_id_OID"
>>> 
>>> The column shoppingBasket_id_OID is setting NULL in ShoppingBasketItem table which I am not sure where it is coming from?
>>> 
>>> 
>>> Thanks
>>> Dharmesh
>>> 
>>> -----Original Message-----
>>> From: GESCONSULTOR - Óscar Bou [mailto:o.bou@gesconsultor.com] 
>>> Sent: Tuesday, January 14, 2014 8:21 AM
>>> To: users@isis.apache.org
>>> Subject: Re: Domain Mappings 1:m Exception
>>> 
>>> 
>>> 
>>> Seems that the validation behavior is configurable, also for constraints, as per [1].
>>> 
>>> HTH,
>>> 
>>> Oscar
>>> 
>>> [1] http://www.datanucleus.org/products/accessplatform_2_2/rdbms/schema.html
>>> 
>>> 
>>> 
>>> 
>>> El 14/01/2014, a las 08:23, Jeroen van der Wal <je...@stromboli.it> escribió:
>>> 
>>>> Just a sidenote: datanucleus only adds non-existing constraints. If
>>>> you've changed your model it might be possible that you have to delete
>>>> constraints manually in order to make things work.
>>>> 
>>>> On Mon, Jan 13, 2014 at 11:54 PM, Dan Haywood
>>>> <da...@haywood-associates.co.uk> wrote:
>>>>> Looking at how Estatio [1] boots up (see log below), it seems that JDO does
>>>>> the CREATE TABLE first, then adds foreign key constraints afterwards using
>>>>> ALTER TABLE.
>>>>> 
>>>>> HTH
>>>>> Dan
>>>>> 
>>>>> [1] https://github.com/estatio/estatio
>>>>> 
>>>>> extract of Estatio's startup log:
>>>>> 
>>>>> 20:48:14,974 [Schema                        ] CREATE TABLE
>>>>> "CommunicationChannel"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "description" NVARCHAR(254) NULL,
>>>>> "legal" BOOLEAN NOT NULL,
>>>>> "ownerOrganisationId" BIGINT NULL,
>>>>> "ownerPersonId" BIGINT NULL,
>>>>> "ownerPropertyId" BIGINT NULL,
>>>>> "ownerUnitId" BIGINT NULL,
>>>>> "reference" NVARCHAR(24) NULL,
>>>>> "type" NVARCHAR(30) NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> "discriminator" NVARCHAR(255) NOT NULL,
>>>>> "emailAddress" NVARCHAR(50) NULL,
>>>>> "address1" NVARCHAR(100) NULL,
>>>>> "address2" NVARCHAR(100) NULL,
>>>>> "city" NVARCHAR(50) NULL,
>>>>> "countryId" BIGINT NULL,
>>>>> "postalCode" NVARCHAR(12) NULL,
>>>>> "stateId" BIGINT NULL,
>>>>> "phoneNumber" NVARCHAR(20) NULL,
>>>>> CONSTRAINT "CommunicationChannel_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:14,977 [Schema                        ] Execution Time = 3 ms
>>>>> 20:48:14,982 [Schema                        ] Check of existence of
>>>>> "LeaseTerm" returned no table
>>>>> 20:48:14,982 [Schema                        ] Creating table "LeaseTerm"
>>>>> 20:48:14,982 [Schema                        ] CREATE TABLE "LeaseTerm"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "endDate" DATE NULL,
>>>>> "frequency" NVARCHAR(30) NOT NULL,
>>>>> "leaseItemId" BIGINT NOT NULL,
>>>>> "nextLeaseTermId" BIGINT NULL,
>>>>> "sequence" NUMERIC NULL,
>>>>> "startDate" DATE NULL,
>>>>> "status" NVARCHAR(20) NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> "discriminator" NVARCHAR(255) NOT NULL,
>>>>> "auditedTurnover" DECIMAL(19,2) NULL,
>>>>> "budgetedTurnover" DECIMAL(19,2) NULL,
>>>>> "contractualRent" DECIMAL(19,2) NULL,
>>>>> "turnoverRentRule" NVARCHAR(254) NULL,
>>>>> "turnoverRentValue" DECIMAL(19,2) NULL,
>>>>> "baseIndexStartDate" DATE NULL,
>>>>> "baseIndexValue" DECIMAL(19,1) NULL,
>>>>> "baseValue" DECIMAL(19,2) NULL,
>>>>> "effectiveDate" DATE NULL,
>>>>> "indexId" BIGINT NULL,
>>>>> "indexationPercentage" DECIMAL(19,1) NULL,
>>>>> "indexedValue" DECIMAL(19,2) NULL,
>>>>> "levellingPercentage" DECIMAL(19,1) NULL,
>>>>> "nextIndexStartDate" DATE NULL,
>>>>> "nextIndexValue" DECIMAL(19,1) NULL,
>>>>> "rebaseFactor" DECIMAL(19,3) NULL,
>>>>> "settledValue" DECIMAL(19,2) NULL,
>>>>> "auditedValue" DECIMAL(19,2) NULL,
>>>>> "budgetedValue" DECIMAL(19,2) NULL,
>>>>> CONSTRAINT "LeaseTerm_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:14,984 [Schema                        ] Execution Time = 2 ms
>>>>> 20:48:14,987 [Schema                        ] Check of existence of "Unit"
>>>>> returned no table
>>>>> 20:48:14,987 [Schema                        ] Creating table "Unit"
>>>>> 20:48:14,987 [Schema                        ] CREATE TABLE "Unit"
>>>>> (
>>>>> "id" BIGINT NOT NULL,
>>>>> "area" DECIMAL(19,2) NULL,
>>>>> "dehorsArea" DECIMAL(19,2) NULL,
>>>>> "endDate" DATE NULL,
>>>>> "mezzanineArea" DECIMAL(19,2) NULL,
>>>>> "propertyId" BIGINT NOT NULL,
>>>>> "salesArea" DECIMAL(19,2) NULL,
>>>>> "startDate" DATE NULL,
>>>>> "storageArea" DECIMAL(19,2) NULL,
>>>>> "type" NVARCHAR(30) NOT NULL,
>>>>> CONSTRAINT "Unit_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:14,988 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:14,991 [Schema                        ] Check of existence of
>>>>> "BreakOption" returned no table
>>>>> 20:48:14,991 [Schema                        ] Creating table "BreakOption"
>>>>> 20:48:14,992 [Schema                        ] CREATE TABLE "BreakOption"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "breakDate" DATE NOT NULL,
>>>>> "description" NVARCHAR(254) NULL,
>>>>> "exerciseDate" DATE NOT NULL,
>>>>> "exerciseType" NVARCHAR(20) NOT NULL,
>>>>> "leaseId" BIGINT NOT NULL,
>>>>> "notificationPeriod" NVARCHAR(20) NULL,
>>>>> "type" NVARCHAR(30) NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> "discriminator" NVARCHAR(255) NOT NULL,
>>>>> "reminderDate" DATE NULL,
>>>>> CONSTRAINT "BreakOption_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:14,994 [Schema                        ] Execution Time = 2 ms
>>>>> 20:48:15,000 [Schema                        ] Check of existence of
>>>>> "InvoiceItem" returned no table
>>>>> 20:48:15,000 [Schema                        ] Creating table "InvoiceItem"
>>>>> 20:48:15,000 [Schema                        ] CREATE TABLE "InvoiceItem"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "chargeId" BIGINT NULL,
>>>>> "description" NVARCHAR(254) NULL,
>>>>> "dueDate" DATE NOT NULL,
>>>>> "endDate" DATE NULL,
>>>>> "grossAmount" DECIMAL(19,2) NULL,
>>>>> "invoiceId" BIGINT NULL,
>>>>> "netAmount" DECIMAL(19,2) NULL,
>>>>> "quantity" DECIMAL(19,2) NULL,
>>>>> "sequence" NUMERIC NOT NULL,
>>>>> "startDate" DATE NULL,
>>>>> "taxId" BIGINT NULL,
>>>>> "vatAmount" DECIMAL(19,2) NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> "discriminator" NVARCHAR(255) NOT NULL,
>>>>> "leaseTermId" BIGINT NULL,
>>>>> CONSTRAINT "InvoiceItem_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,002 [Schema                        ] Execution Time = 2 ms
>>>>> 20:48:15,007 [Schema                        ] Check of existence of "Brand"
>>>>> returned no table
>>>>> 20:48:15,008 [Schema                        ] Creating table "Brand"
>>>>> 20:48:15,008 [Schema                        ] CREATE TABLE "Brand"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "name" NVARCHAR(50) NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> CONSTRAINT "Brand_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,009 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,013 [Schema                        ] Check of existence of
>>>>> "FixedAssetRole" returned no table
>>>>> 20:48:15,013 [Schema                        ] Creating table
>>>>> "FixedAssetRole"
>>>>> 20:48:15,013 [Schema                        ] CREATE TABLE "FixedAssetRole"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "assetId" BIGINT NOT NULL,
>>>>> "endDate" DATE NULL,
>>>>> "partyId" BIGINT NOT NULL,
>>>>> "startDate" DATE NULL,
>>>>> "type" NVARCHAR(30) NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> CONSTRAINT "FixedAssetRole_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,015 [Schema                        ] Execution Time = 2 ms
>>>>> 20:48:15,019 [Schema                        ] Check of existence of
>>>>> "Numerator" returned no table
>>>>> 20:48:15,019 [Schema                        ] Creating table "Numerator"
>>>>> 20:48:15,019 [Schema                        ] CREATE TABLE "Numerator"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "format" NVARCHAR(30) NOT NULL,
>>>>> "lastIncrement" NUMERIC NOT NULL,
>>>>> "name" NVARCHAR(50) NOT NULL,
>>>>> "objectIdentifier" NVARCHAR(20) NULL,
>>>>> "objectType" NVARCHAR(254) NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> CONSTRAINT "Numerator_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,020 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,022 [Schema                        ] Check of existence of
>>>>> "Agreement" returned no table
>>>>> 20:48:15,022 [Schema                        ] Creating table "Agreement"
>>>>> 20:48:15,022 [Schema                        ] CREATE TABLE "Agreement"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "endDate" DATE NULL,
>>>>> "name" NVARCHAR(50) NULL,
>>>>> "nextAgreementId" BIGINT NULL,
>>>>> "reference" NVARCHAR(24) NOT NULL,
>>>>> "startDate" DATE NULL,
>>>>> "typeId" BIGINT NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> "discriminator" NVARCHAR(255) NOT NULL,
>>>>> CONSTRAINT "Agreement_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,023 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,025 [Schema                        ] Check of existence of
>>>>> "BankMandate" returned no table
>>>>> 20:48:15,025 [Schema                        ] Creating table "BankMandate"
>>>>> 20:48:15,025 [Schema                        ] CREATE TABLE "BankMandate"
>>>>> (
>>>>> "id" BIGINT NOT NULL,
>>>>> "bankAccountId" BIGINT NOT NULL,
>>>>> CONSTRAINT "BankMandate_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,026 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,028 [Schema                        ] Check of existence of "Event"
>>>>> returned no table
>>>>> 20:48:15,028 [Schema                        ] Creating table "Event"
>>>>> 20:48:15,028 [Schema                        ] CREATE TABLE "Event"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "calendarName" NVARCHAR(254) NOT NULL,
>>>>> "date" DATE NOT NULL,
>>>>> "notes" NVARCHAR(4000) NULL,
>>>>> "subjectBreakOptionId" BIGINT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> CONSTRAINT "Event_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,029 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,031 [Schema                        ] Check of existence of
>>>>> "ChargeGroup" returned no table
>>>>> 20:48:15,031 [Schema                        ] Creating table "ChargeGroup"
>>>>> 20:48:15,031 [Schema                        ] CREATE TABLE "ChargeGroup"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "name" NVARCHAR(50) NOT NULL,
>>>>> "reference" NVARCHAR(24) NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> CONSTRAINT "ChargeGroup_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,032 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,034 [Schema                        ] Check of existence of
>>>>> "UserSetting" returned no table
>>>>> 20:48:15,034 [Schema                        ] Creating table "UserSetting"
>>>>> 20:48:15,034 [Schema                        ] CREATE TABLE "UserSetting"
>>>>> (
>>>>> "key" NVARCHAR(128) NOT NULL,
>>>>> "user" NVARCHAR(50) NOT NULL,
>>>>> "description" NVARCHAR(254) NULL,
>>>>> "type" NVARCHAR(20) NOT NULL,
>>>>> "valueRaw" NVARCHAR(255) NOT NULL,
>>>>> CONSTRAINT "UserSetting_PK" PRIMARY KEY ("key","user")
>>>>> )
>>>>> 20:48:15,035 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,038 [Schema                        ] Check of existence of
>>>>> "Currency" returned no table
>>>>> 20:48:15,038 [Schema                        ] Creating table "Currency"
>>>>> 20:48:15,038 [Schema                        ] CREATE TABLE "Currency"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "name" NVARCHAR(50) NOT NULL,
>>>>> "reference" NVARCHAR(24) NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> CONSTRAINT "Currency_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,039 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,043 [Schema                        ] Check of existence of
>>>>> "TaxRate" returned no table
>>>>> 20:48:15,043 [Schema                        ] Creating table "TaxRate"
>>>>> 20:48:15,043 [Schema                        ] CREATE TABLE "TaxRate"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "endDate" DATE NULL,
>>>>> "externalReference" NVARCHAR(50) NULL,
>>>>> "nextTaxRateId" BIGINT NULL,
>>>>> "percentage" DECIMAL(19,2) NULL,
>>>>> "startDate" DATE NULL,
>>>>> "taxId" BIGINT NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> CONSTRAINT "TaxRate_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,043 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,046 [Schema                        ] Check of existence of
>>>>> "PartyRegistration" returned no table
>>>>> 20:48:15,046 [Schema                        ] Creating table
>>>>> "PartyRegistration"
>>>>> 20:48:15,046 [Schema                        ] CREATE TABLE
>>>>> "PartyRegistration"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "endDate" DATE NULL,
>>>>> "partyId" BIGINT NOT NULL,
>>>>> "startDate" DATE NULL,
>>>>> "type" NVARCHAR(30) NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> CONSTRAINT "PartyRegistration_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,047 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,050 [Schema                        ] Check of existence of
>>>>> "AgreementRoleType" returned no table
>>>>> 20:48:15,050 [Schema                        ] Creating table
>>>>> "AgreementRoleType"
>>>>> 20:48:15,050 [Schema                        ] CREATE TABLE
>>>>> "AgreementRoleType"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "appliesToAgreementTypeId" BIGINT NOT NULL,
>>>>> "title" NVARCHAR(50) NOT NULL,
>>>>> CONSTRAINT "AgreementRoleType_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,051 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,055 [Schema                        ] Check of existence of
>>>>> "AuditEntry" returned no table
>>>>> 20:48:15,055 [Schema                        ] Creating table "AuditEntry"
>>>>> 20:48:15,056 [Schema                        ] CREATE TABLE "AuditEntry"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "identifier" NVARCHAR(20) NOT NULL,
>>>>> "objectType" NVARCHAR(254) NOT NULL,
>>>>> "postValue" NVARCHAR(255) NULL,
>>>>> "preValue" NVARCHAR(255) NULL,
>>>>> "timestampEpoch" BIGINT NOT NULL,
>>>>> "user" NVARCHAR(50) NULL,
>>>>> CONSTRAINT "AuditEntry_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,057 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,060 [Schema                        ] Check of existence of
>>>>> "FinancialAccount" returned no table
>>>>> 20:48:15,060 [Schema                        ] Creating table
>>>>> "FinancialAccount"
>>>>> 20:48:15,060 [Schema                        ] CREATE TABLE
>>>>> "FinancialAccount"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "name" NVARCHAR(50) NOT NULL,
>>>>> "ownerPartyId" BIGINT NOT NULL,
>>>>> "reference" NVARCHAR(24) NOT NULL,
>>>>> "type" NVARCHAR(30) NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> "discriminator" NVARCHAR(255) NOT NULL,
>>>>> CONSTRAINT "FinancialAccount_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,062 [Schema                        ] Execution Time = 2 ms
>>>>> 20:48:15,068 [Schema                        ] Check of existence of
>>>>> "BankAccount" returned no table
>>>>> 20:48:15,068 [Schema                        ] Creating table "BankAccount"
>>>>> 20:48:15,068 [Schema                        ] CREATE TABLE "BankAccount"
>>>>> (
>>>>> "id" BIGINT NOT NULL,
>>>>> "accountNumber" NVARCHAR(20) NULL,
>>>>> "bankPartyId" BIGINT NULL,
>>>>> "bankAccountType" NVARCHAR(30) NOT NULL,
>>>>> "branchCode" NVARCHAR(20) NULL,
>>>>> "countryId" BIGINT NULL,
>>>>> "iban" NVARCHAR(32) NULL,
>>>>> "nationalBankCode" NVARCHAR(20) NULL,
>>>>> "nationalCheckCode" NVARCHAR(20) NULL,
>>>>> "fixedAssetId" BIGINT NULL,
>>>>> CONSTRAINT "BankAccount_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,070 [Schema                        ] Execution Time = 2 ms
>>>>> 20:48:15,072 [Schema                        ] Check of existence of
>>>>> "UnitSize" returned no table
>>>>> 20:48:15,072 [Schema                        ] Creating table "UnitSize"
>>>>> 20:48:15,072 [Schema                        ] CREATE TABLE "UnitSize"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "name" NVARCHAR(50) NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> CONSTRAINT "UnitSize_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,073 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,075 [Schema                        ] Check of existence of
>>>>> "ApplicationSetting" returned no table
>>>>> 20:48:15,075 [Schema                        ] Creating table
>>>>> "ApplicationSetting"
>>>>> 20:48:15,075 [Schema                        ] CREATE TABLE
>>>>> "ApplicationSetting"
>>>>> (
>>>>> "key" NVARCHAR(128) NOT NULL,
>>>>> "description" NVARCHAR(254) NULL,
>>>>> "type" NVARCHAR(20) NOT NULL,
>>>>> "valueRaw" NVARCHAR(255) NOT NULL,
>>>>> CONSTRAINT "ApplicationSetting_PK" PRIMARY KEY ("key")
>>>>> )
>>>>> 20:48:15,076 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,079 [Schema                        ] Check of existence of
>>>>> "FixedAsset" returned no table
>>>>> 20:48:15,079 [Schema                        ] Creating table "FixedAsset"
>>>>> 20:48:15,079 [Schema                        ] CREATE TABLE "FixedAsset"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "name" NVARCHAR(50) NOT NULL,
>>>>> "reference" NVARCHAR(24) NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> "discriminator" NVARCHAR(255) NOT NULL,
>>>>> CONSTRAINT "FixedAsset_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,080 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,082 [Schema                        ] Check of existence of
>>>>> "Property" returned no table
>>>>> 20:48:15,082 [Schema                        ] Creating table "Property"
>>>>> 20:48:15,082 [Schema                        ] CREATE TABLE "Property"
>>>>> (
>>>>> "id" BIGINT NOT NULL,
>>>>> "acquireDate" DATE NULL,
>>>>> "area" DECIMAL(19,2) NULL,
>>>>> "city" NVARCHAR(50) NULL,
>>>>> "countryId" BIGINT NULL,
>>>>> "disposalDate" DATE NULL,
>>>>> "location" BLOB NULL,
>>>>> "openingDate" DATE NULL,
>>>>> "type" NVARCHAR(30) NOT NULL,
>>>>> CONSTRAINT "Property_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,083 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,085 [Schema                        ] Check of existence of
>>>>> "LeaseAssignment" returned no table
>>>>> 20:48:15,085 [Schema                        ] Creating table
>>>>> "LeaseAssignment"
>>>>> 20:48:15,085 [Schema                        ] CREATE TABLE "LeaseAssignment"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "assignmentDate" DATE NOT NULL,
>>>>> "nextLeaseId" BIGINT NULL,
>>>>> "previousLeaseId" BIGINT NULL,
>>>>> "type" NVARCHAR(30) NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> CONSTRAINT "LeaseAssignment_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,086 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,087 [Schema                        ] Check of existence of "State"
>>>>> returned no table
>>>>> 20:48:15,087 [Schema                        ] Creating table "State"
>>>>> 20:48:15,087 [Schema                        ] CREATE TABLE "State"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "countryId" BIGINT NOT NULL,
>>>>> "name" NVARCHAR(50) NOT NULL,
>>>>> "reference" NVARCHAR(6) NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> CONSTRAINT "State_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,088 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,090 [Schema                        ] Check of existence of
>>>>> "LeaseStatusReason" returned no table
>>>>> 20:48:15,090 [Schema                        ] Creating table
>>>>> "LeaseStatusReason"
>>>>> 20:48:15,090 [Schema                        ] CREATE TABLE
>>>>> "LeaseStatusReason"
>>>>> (
>>>>> "LeaseStatusReason_ID" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "leaseId" BIGINT NOT NULL,
>>>>> "reason" NVARCHAR(4000) NOT NULL,
>>>>> "status" NVARCHAR(20) NOT NULL,
>>>>> "timestamp" BIGINT NOT NULL,
>>>>> "user" NVARCHAR(50) NOT NULL,
>>>>> CONSTRAINT "LeaseStatusReason_PK" PRIMARY KEY ("LeaseStatusReason_ID")
>>>>> )
>>>>> 20:48:15,091 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,092 [Schema                        ] Check of existence of
>>>>> "Activity" returned no table
>>>>> 20:48:15,092 [Schema                        ] Creating table "Activity"
>>>>> 20:48:15,093 [Schema                        ] CREATE TABLE "Activity"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "name" NVARCHAR(50) NOT NULL,
>>>>> "sectorId" BIGINT NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> CONSTRAINT "Activity_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,093 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,095 [Schema                        ] Check of existence of "Party"
>>>>> returned no table
>>>>> 20:48:15,095 [Schema                        ] Creating table "Party"
>>>>> 20:48:15,095 [Schema                        ] CREATE TABLE "Party"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "name" NVARCHAR(80) NOT NULL,
>>>>> "reference" NVARCHAR(24) NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> "discriminator" NVARCHAR(255) NOT NULL,
>>>>> CONSTRAINT "Party_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,096 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,098 [Schema                        ] Check of existence of
>>>>> "Organisation" returned no table
>>>>> 20:48:15,098 [Schema                        ] Creating table "Organisation"
>>>>> 20:48:15,098 [Schema                        ] CREATE TABLE "Organisation"
>>>>> (
>>>>> "id" BIGINT NOT NULL,
>>>>> "fiscalCode" NVARCHAR(30) NULL,
>>>>> "vatCode" NVARCHAR(30) NULL,
>>>>> CONSTRAINT "Organisation_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,099 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,101 [Schema                        ] Check of existence of
>>>>> "FixedAssetRegistrationType" returned no table
>>>>> 20:48:15,101 [Schema                        ] Creating table
>>>>> "FixedAssetRegistrationType"
>>>>> 20:48:15,101 [Schema                        ] CREATE TABLE
>>>>> "FixedAssetRegistrationType"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "fullyQualifiedClassName" NVARCHAR(254) NOT NULL,
>>>>> "title" NVARCHAR(50) NOT NULL,
>>>>> CONSTRAINT "FixedAssetRegistrationType_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,103 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,105 [Schema                        ] Check of existence of
>>>>> "FixedAssetRegistration" returned no table
>>>>> 20:48:15,105 [Schema                        ] Creating table
>>>>> "FixedAssetRegistration"
>>>>> 20:48:15,106 [Schema                        ] CREATE TABLE
>>>>> "FixedAssetRegistration"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "subjectId" BIGINT NOT NULL,
>>>>> "typeId" BIGINT NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> "discriminator" NVARCHAR(255) NOT NULL,
>>>>> CONSTRAINT "FixedAssetRegistration_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,107 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,109 [Schema                        ] Check of existence of
>>>>> "LandRegister" returned no table
>>>>> 20:48:15,109 [Schema                        ] Creating table "LandRegister"
>>>>> 20:48:15,110 [Schema                        ] CREATE TABLE "LandRegister"
>>>>> (
>>>>> "id" BIGINT NOT NULL,
>>>>> "categoria" NVARCHAR(255) NULL,
>>>>> "classe" NVARCHAR(255) NULL,
>>>>> "codiceComuneCatastale" NVARCHAR(255) NULL,
>>>>> "comuneAmministrativo" NVARCHAR(255) NULL,
>>>>> "comuneCatastale" NVARCHAR(255) NULL,
>>>>> "consistenza" NVARCHAR(255) NULL,
>>>>> "foglio" NVARCHAR(255) NULL,
>>>>> "particella" NVARCHAR(255) NULL,
>>>>> "rendita" NVARCHAR(255) NULL,
>>>>> "subalterno" NVARCHAR(255) NULL,
>>>>> CONSTRAINT "LandRegister_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,110 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,112 [Schema                        ] Check of existence of "Tag"
>>>>> returned no table
>>>>> 20:48:15,112 [Schema                        ] Creating table "Tag"
>>>>> 20:48:15,112 [Schema                        ] CREATE TABLE "Tag"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "name" NVARCHAR(50) NOT NULL,
>>>>> "objectType" NVARCHAR(254) NOT NULL,
>>>>> "taggable_Occupancy_id_EID" BIGINT NULL,
>>>>> "value" NVARCHAR(255) NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> CONSTRAINT "Tag_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,114 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,116 [Schema                        ] Check of existence of
>>>>> "Charge" returned no table
>>>>> 20:48:15,116 [Schema                        ] Creating table "Charge"
>>>>> 20:48:15,116 [Schema                        ] CREATE TABLE "Charge"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "description" NVARCHAR(254) NOT NULL,
>>>>> "externalReference" NVARCHAR(50) NULL,
>>>>> "groupId" BIGINT NOT NULL,
>>>>> "name" NVARCHAR(50) NOT NULL,
>>>>> "reference" NVARCHAR(24) NOT NULL,
>>>>> "sortOrder" NVARCHAR(24) NULL,
>>>>> "taxId" BIGINT NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> CONSTRAINT "Charge_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,117 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,120 [Schema                        ] Check of existence of
>>>>> "IndexValue" returned no table
>>>>> 20:48:15,120 [Schema                        ] Creating table "IndexValue"
>>>>> 20:48:15,120 [Schema                        ] CREATE TABLE "IndexValue"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "indexBaseId" BIGINT NOT NULL,
>>>>> "startDate" DATE NOT NULL,
>>>>> "value" DECIMAL(19,4) NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> CONSTRAINT "IndexValue_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,121 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,124 [Schema                        ] Check of existence of "Tax"
>>>>> returned no table
>>>>> 20:48:15,124 [Schema                        ] Creating table "Tax"
>>>>> 20:48:15,124 [Schema                        ] CREATE TABLE "Tax"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "externalReference" NVARCHAR(50) NULL,
>>>>> "name" NVARCHAR(50) NULL,
>>>>> "reference" NVARCHAR(24) NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> CONSTRAINT "Tax_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,125 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,127 [Schema                        ] Check of existence of
>>>>> "Invoice" returned no table
>>>>> 20:48:15,127 [Schema                        ] Creating table "Invoice"
>>>>> 20:48:15,127 [Schema                        ] CREATE TABLE "Invoice"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "buyerPartyId" BIGINT NOT NULL,
>>>>> "collectionNumber" NVARCHAR(16) NULL,
>>>>> "currencyId" BIGINT NULL,
>>>>> "dueDate" DATE NOT NULL,
>>>>> "invoiceDate" DATE NULL,
>>>>> "invoiceNumber" NVARCHAR(16) NULL,
>>>>> "lastItemSequence" NUMERIC NULL,
>>>>> "sourceLeaseId" BIGINT NULL,
>>>>> "paymentMethod" NVARCHAR(30) NOT NULL,
>>>>> "sellerPartyId" BIGINT NOT NULL,
>>>>> "status" NVARCHAR(20) NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> CONSTRAINT "Invoice_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,129 [Schema                        ] Execution Time = 2 ms
>>>>> 20:48:15,130 [Schema                        ] Check of existence of
>>>>> "Person" returned no table
>>>>> 20:48:15,130 [Schema                        ] Creating table "Person"
>>>>> 20:48:15,131 [Schema                        ] CREATE TABLE "Person"
>>>>> (
>>>>> "id" BIGINT NOT NULL,
>>>>> "firstName" NVARCHAR(50) NULL,
>>>>> "gender" NVARCHAR(30) NOT NULL,
>>>>> "initials" NVARCHAR(3) NULL,
>>>>> "lastName" NVARCHAR(50) NOT NULL,
>>>>> CONSTRAINT "Person_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,131 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,133 [Schema                        ] Check of existence of
>>>>> "Country" returned no table
>>>>> 20:48:15,133 [Schema                        ] Creating table "Country"
>>>>> 20:48:15,134 [Schema                        ] CREATE TABLE "Country"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "alpha2Code" NVARCHAR(2) NOT NULL,
>>>>> "name" NVARCHAR(50) NOT NULL,
>>>>> "reference" NVARCHAR(24) NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> CONSTRAINT "Country_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,135 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,137 [Schema                        ] Check of existence of "Lease"
>>>>> returned no table
>>>>> 20:48:15,137 [Schema                        ] Creating table "Lease"
>>>>> 20:48:15,137 [Schema                        ] CREATE TABLE "Lease"
>>>>> (
>>>>> "id" BIGINT NOT NULL,
>>>>> "leaseTypeId" BIGINT NULL,
>>>>> "paidByBankMandateId" BIGINT NULL,
>>>>> "status" NVARCHAR(20) NOT NULL,
>>>>> "tenancyEndDate" DATE NULL,
>>>>> "tenancyStartDate" DATE NULL,
>>>>> CONSTRAINT "Lease_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,138 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,140 [Schema                        ] Check of existence of
>>>>> "LeaseItem" returned no table
>>>>> 20:48:15,140 [Schema                        ] Creating table "LeaseItem"
>>>>> 20:48:15,140 [Schema                        ] CREATE TABLE "LeaseItem"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "chargeId" BIGINT NOT NULL,
>>>>> "endDate" DATE NULL,
>>>>> "epochDate" DATE NULL,
>>>>> "invoicingFrequency" NVARCHAR(30) NOT NULL,
>>>>> "leaseId" BIGINT NOT NULL,
>>>>> "nextDueDate" DATE NULL,
>>>>> "paymentMethod" NVARCHAR(30) NOT NULL,
>>>>> "sequence" NUMERIC NOT NULL,
>>>>> "startDate" DATE NULL,
>>>>> "status" NVARCHAR(20) NOT NULL,
>>>>> "type" NVARCHAR(30) NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> CONSTRAINT "LeaseItem_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,142 [Schema                        ] Execution Time = 2 ms
>>>>> 20:48:15,144 [Schema                        ] Check of existence of
>>>>> "AgreementRoleCommunicationChannelType" returned no table
>>>>> 20:48:15,144 [Schema                        ] Creating table
>>>>> "AgreementRoleCommunicationChannelType"
>>>>> 20:48:15,144 [Schema                        ] CREATE TABLE
>>>>> "AgreementRoleCommunicationChannelType"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "appliesToAgreementTypeId" BIGINT NOT NULL,
>>>>> "title" NVARCHAR(50) NOT NULL,
>>>>> CONSTRAINT "AgreementRoleCommunicationChannelType_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,145 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,148 [Schema                        ] Check of existence of
>>>>> "LeaseType" returned no table
>>>>> 20:48:15,148 [Schema                        ] Creating table "LeaseType"
>>>>> 20:48:15,148 [Schema                        ] CREATE TABLE "LeaseType"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "name" NVARCHAR(50) NOT NULL,
>>>>> "reference" NVARCHAR(24) NOT NULL,
>>>>> CONSTRAINT "LeaseType_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,149 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,151 [Schema                        ] Check of existence of
>>>>> "AgreementRoleCommunicationChannel" returned no table
>>>>> 20:48:15,151 [Schema                        ] Creating table
>>>>> "AgreementRoleCommunicationChannel"
>>>>> 20:48:15,151 [Schema                        ] CREATE TABLE
>>>>> "AgreementRoleCommunicationChannel"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "communicationChannelId" BIGINT NOT NULL,
>>>>> "endDate" DATE NULL,
>>>>> "agreementRoleId" BIGINT NOT NULL,
>>>>> "startDate" DATE NULL,
>>>>> "typeId" BIGINT NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> CONSTRAINT "AgreementRoleCommunicationChannel_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,153 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,155 [Schema                        ] Check of existence of
>>>>> "AgreementType" returned no table
>>>>> 20:48:15,155 [Schema                        ] Creating table "AgreementType"
>>>>> 20:48:15,155 [Schema                        ] CREATE TABLE "AgreementType"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "title" NVARCHAR(50) NOT NULL,
>>>>> CONSTRAINT "AgreementType_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,156 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,158 [Schema                        ] Check of existence of
>>>>> "Occupancy" returned no table
>>>>> 20:48:15,158 [Schema                        ] Creating table "Occupancy"
>>>>> 20:48:15,158 [Schema                        ] CREATE TABLE "Occupancy"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "activityId" BIGINT NULL,
>>>>> "brandId" BIGINT NULL,
>>>>> "endDate" DATE NULL,
>>>>> "leaseId" BIGINT NOT NULL,
>>>>> "reportOCR" NVARCHAR(30) NOT NULL,
>>>>> "reportRent" NVARCHAR(30) NOT NULL,
>>>>> "reportTurnover" NVARCHAR(30) NOT NULL,
>>>>> "sectorId" BIGINT NULL,
>>>>> "startDate" DATE NULL,
>>>>> "unitId" BIGINT NOT NULL,
>>>>> "unitSizeId" BIGINT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> CONSTRAINT "Occupancy_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,160 [Schema                        ] Execution Time = 2 ms
>>>>> 20:48:15,161 [Schema                        ] Check of existence of
>>>>> "IndexBase" returned no table
>>>>> 20:48:15,161 [Schema                        ] Creating table "IndexBase"
>>>>> 20:48:15,161 [Schema                        ] CREATE TABLE "IndexBase"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "factor" DECIMAL(19,4) NULL,
>>>>> "indexId" BIGINT NOT NULL,
>>>>> "nextIndexBaseId" BIGINT NULL,
>>>>> "startDate" DATE NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> CONSTRAINT "IndexBase_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,162 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,164 [Schema                        ] Check of existence of "Index"
>>>>> returned no table
>>>>> 20:48:15,164 [Schema                        ] Creating table "Index"
>>>>> 20:48:15,164 [Schema                        ] CREATE TABLE "Index"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "name" NVARCHAR(50) NOT NULL,
>>>>> "reference" NVARCHAR(24) NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> CONSTRAINT "Index_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,165 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,167 [Schema                        ] Check of existence of
>>>>> "AgreementRole" returned no table
>>>>> 20:48:15,167 [Schema                        ] Creating table "AgreementRole"
>>>>> 20:48:15,167 [Schema                        ] CREATE TABLE "AgreementRole"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "agreementId" BIGINT NOT NULL,
>>>>> "endDate" DATE NULL,
>>>>> "partyId" BIGINT NOT NULL,
>>>>> "startDate" DATE NULL,
>>>>> "typeId" BIGINT NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> CONSTRAINT "AgreementRole_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,168 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,170 [Schema                        ] Check of existence of
>>>>> "Sector" returned no table
>>>>> 20:48:15,170 [Schema                        ] Creating table "Sector"
>>>>> 20:48:15,170 [Schema                        ] CREATE TABLE "Sector"
>>>>> (
>>>>> "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>> "name" NVARCHAR(50) NOT NULL,
>>>>> "version" BIGINT NOT NULL,
>>>>> CONSTRAINT "Sector_PK" PRIMARY KEY ("id")
>>>>> )
>>>>> 20:48:15,171 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,176 [Schema                        ] Creating foreign key
>>>>> constraint : "CommunicationChannel_FK2" in catalog "" schema ""
>>>>> 20:48:15,176 [Schema                        ] ALTER TABLE
>>>>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK2" FOREIGN
>>>>> KEY ("stateId") REFERENCES "State" ("id")
>>>>> 20:48:15,178 [Schema                        ] Execution Time = 2 ms
>>>>> 20:48:15,178 [Schema                        ] Creating foreign key
>>>>> constraint : "CommunicationChannel_FK1" in catalog "" schema ""
>>>>> 20:48:15,178 [Schema                        ] ALTER TABLE
>>>>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK1" FOREIGN
>>>>> KEY ("countryId") REFERENCES "Country" ("id")
>>>>> 20:48:15,180 [Schema                        ] Execution Time = 2 ms
>>>>> 20:48:15,180 [Schema                        ] Creating foreign key
>>>>> constraint : "CommunicationChannel_FK4" in catalog "" schema ""
>>>>> 20:48:15,180 [Schema                        ] ALTER TABLE
>>>>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK4" FOREIGN
>>>>> KEY ("ownerPersonId") REFERENCES "Person" ("id")
>>>>> 20:48:15,181 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,181 [Schema                        ] Creating foreign key
>>>>> constraint : "CommunicationChannel_FK3" in catalog "" schema ""
>>>>> 20:48:15,181 [Schema                        ] ALTER TABLE
>>>>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK3" FOREIGN
>>>>> KEY ("ownerOrganisationId") REFERENCES "Organisation" ("id")
>>>>> 20:48:15,182 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,182 [Schema                        ] Creating foreign key
>>>>> constraint : "CommunicationChannel_FK6" in catalog "" schema ""
>>>>> 20:48:15,182 [Schema                        ] ALTER TABLE
>>>>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK6" FOREIGN
>>>>> KEY ("ownerUnitId") REFERENCES "Unit" ("id")
>>>>> 20:48:15,183 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,183 [Schema                        ] Creating foreign key
>>>>> constraint : "CommunicationChannel_FK5" in catalog "" schema ""
>>>>> 20:48:15,183 [Schema                        ] ALTER TABLE
>>>>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK5" FOREIGN
>>>>> KEY ("ownerPropertyId") REFERENCES "Property" ("id")
>>>>> 20:48:15,184 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,186 [Schema                        ] Creating index
>>>>> "CommunicationChannel_N53" in catalog "" schema ""
>>>>> 20:48:15,186 [Schema                        ] CREATE INDEX
>>>>> "CommunicationChannel_N53" ON "CommunicationChannel" ("countryId")
>>>>> 20:48:15,187 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,187 [Schema                        ] Creating index
>>>>> "CommunicationChannel_N54" in catalog "" schema ""
>>>>> 20:48:15,187 [Schema                        ] CREATE INDEX
>>>>> "CommunicationChannel_N54" ON "CommunicationChannel" ("ownerUnitId")
>>>>> 20:48:15,187 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,187 [Schema                        ] Creating index
>>>>> "CommunicationChannel_N51" in catalog "" schema ""
>>>>> 20:48:15,187 [Schema                        ] CREATE INDEX
>>>>> "CommunicationChannel_N51" ON "CommunicationChannel" ("ownerPropertyId")
>>>>> 20:48:15,187 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,187 [Schema                        ] Creating index
>>>>> "CommunicationChannel_N52" in catalog "" schema ""
>>>>> 20:48:15,187 [Schema                        ] CREATE INDEX
>>>>> "CommunicationChannel_N52" ON "CommunicationChannel" ("stateId")
>>>>> 20:48:15,188 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,188 [Schema                        ] Creating index
>>>>> "PhoneNumber_phoneNumber_IDX" in catalog "" schema ""
>>>>> 20:48:15,188 [Schema                        ] CREATE INDEX
>>>>> "PhoneNumber_phoneNumber_IDX" ON "CommunicationChannel" ("phoneNumber")
>>>>> 20:48:15,188 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,188 [Schema                        ] Creating index
>>>>> "PostalAddress_main_idx" in catalog "" schema ""
>>>>> 20:48:15,188 [Schema                        ] CREATE INDEX
>>>>> "PostalAddress_main_idx" ON "CommunicationChannel"
>>>>> ("ownerOrganisationId","ownerPersonId","ownerPropertyId","ownerUnitId","address1","postalCode","city","countryId")
>>>>> 20:48:15,188 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,188 [Schema                        ] Creating index
>>>>> "CommunicationChannel_N49" in catalog "" schema ""
>>>>> 20:48:15,188 [Schema                        ] CREATE INDEX
>>>>> "CommunicationChannel_N49" ON "CommunicationChannel" ("ownerOrganisationId")
>>>>> 20:48:15,189 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,189 [Schema                        ] Creating index
>>>>> "CommunicationChannel_N50" in catalog "" schema ""
>>>>> 20:48:15,189 [Schema                        ] CREATE INDEX
>>>>> "CommunicationChannel_N50" ON "CommunicationChannel" ("ownerPersonId")
>>>>> 20:48:15,189 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,189 [Schema                        ] Creating index
>>>>> "EmailAddress_emailAddress_IDX" in catalog "" schema ""
>>>>> 20:48:15,189 [Schema                        ] CREATE INDEX
>>>>> "EmailAddress_emailAddress_IDX" ON "CommunicationChannel" ("emailAddress")
>>>>> 20:48:15,190 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,190 [Schema                        ] Creating foreign key
>>>>> constraint : "LeaseTerm_FK2" in catalog "" schema ""
>>>>> 20:48:15,190 [Schema                        ] ALTER TABLE "LeaseTerm" ADD
>>>>> CONSTRAINT "LeaseTerm_FK2" FOREIGN KEY ("indexId") REFERENCES "Index"
>>>>> ("id")
>>>>> 20:48:15,192 [Schema                        ] Execution Time = 2 ms
>>>>> 20:48:15,192 [Schema                        ] Creating foreign key
>>>>> constraint : "LeaseTerm_FK3" in catalog "" schema ""
>>>>> 20:48:15,192 [Schema                        ] ALTER TABLE "LeaseTerm" ADD
>>>>> CONSTRAINT "LeaseTerm_FK3" FOREIGN KEY ("nextLeaseTermId") REFERENCES
>>>>> "LeaseTerm" ("id")
>>>>> 20:48:15,194 [Schema                        ] Execution Time = 2 ms
>>>>> 20:48:15,194 [Schema                        ] Creating foreign key
>>>>> constraint : "LeaseTerm_FK1" in catalog "" schema ""
>>>>> 20:48:15,194 [Schema                        ] ALTER TABLE "LeaseTerm" ADD
>>>>> CONSTRAINT "LeaseTerm_FK1" FOREIGN KEY ("leaseItemId") REFERENCES
>>>>> "LeaseItem" ("id")
>>>>> 20:48:15,195 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,196 [Schema                        ] Creating index
>>>>> "LeaseTerm_N50" in catalog "" schema ""
>>>>> 20:48:15,196 [Schema                        ] CREATE INDEX "LeaseTerm_N50"
>>>>> ON "LeaseTerm" ("indexId")
>>>>> 20:48:15,196 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,196 [Schema                        ] Creating index
>>>>> "LeaseTerm_leaseItem_startDate_IDX" in catalog "" schema ""
>>>>> 20:48:15,196 [Schema                        ] CREATE INDEX
>>>>> "LeaseTerm_leaseItem_startDate_IDX" ON "LeaseTerm"
>>>>> ("leaseItemId","startDate")
>>>>> 20:48:15,196 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,196 [Schema                        ] Creating index
>>>>> "LeaseTerm_N51" in catalog "" schema ""
>>>>> 20:48:15,196 [Schema                        ] CREATE INDEX "LeaseTerm_N51"
>>>>> ON "LeaseTerm" ("leaseItemId")
>>>>> 20:48:15,197 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,197 [Schema                        ] Creating index
>>>>> "LeaseTerm_N49" in catalog "" schema ""
>>>>> 20:48:15,197 [Schema                        ] CREATE INDEX "LeaseTerm_N49"
>>>>> ON "LeaseTerm" ("nextLeaseTermId")
>>>>> 20:48:15,197 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,197 [Schema                        ] Creating index
>>>>> "LeaseTerm_leaseItem_sequence_IDX" in catalog "" schema ""
>>>>> 20:48:15,197 [Schema                        ] CREATE INDEX
>>>>> "LeaseTerm_leaseItem_sequence_IDX" ON "LeaseTerm" ("leaseItemId","sequence")
>>>>> 20:48:15,197 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,198 [Schema                        ] Creating foreign key
>>>>> constraint : "Unit_FK1" in catalog "" schema ""
>>>>> 20:48:15,198 [Schema                        ] ALTER TABLE "Unit" ADD
>>>>> CONSTRAINT "Unit_FK1" FOREIGN KEY ("id") REFERENCES "FixedAsset" ("id")
>>>>> 20:48:15,199 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,199 [Schema                        ] Creating foreign key
>>>>> constraint : "Unit_FK2" in catalog "" schema ""
>>>>> 20:48:15,199 [Schema                        ] ALTER TABLE "Unit" ADD
>>>>> CONSTRAINT "Unit_FK2" FOREIGN KEY ("propertyId") REFERENCES "Property"
>>>>> ("id")
>>>>> 20:48:15,200 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,200 [Schema                        ] Creating index "Unit_N49" in
>>>>> catalog "" schema ""
>>>>> 20:48:15,200 [Schema                        ] CREATE INDEX "Unit_N49" ON
>>>>> "Unit" ("propertyId")
>>>>> 20:48:15,200 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,200 [Schema                        ] Unique metadata defined to
>>>>> use field notificationDate which doesn't exist in this class
>>>>> 20:48:15,200 [Schema                        ] Creating foreign key
>>>>> constraint : "BreakOption_FK1" in catalog "" schema ""
>>>>> 20:48:15,200 [Schema                        ] ALTER TABLE "BreakOption" ADD
>>>>> CONSTRAINT "BreakOption_FK1" FOREIGN KEY ("leaseId") REFERENCES "Lease"
>>>>> ("id")
>>>>> 20:48:15,202 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,202 [Schema                        ] Creating index
>>>>> "BreakOption_N49" in catalog "" schema ""
>>>>> 20:48:15,202 [Schema                        ] CREATE INDEX
>>>>> "BreakOption_N49" ON "BreakOption" ("leaseId")
>>>>> 20:48:15,203 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,203 [Schema                        ] Creating foreign key
>>>>> constraint : "InvoiceItem_FK4" in catalog "" schema ""
>>>>> 20:48:15,203 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
>>>>> CONSTRAINT "InvoiceItem_FK4" FOREIGN KEY ("invoiceId") REFERENCES "Invoice"
>>>>> ("id")
>>>>> 20:48:15,204 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,204 [Schema                        ] Creating foreign key
>>>>> constraint : "InvoiceItem_FK3" in catalog "" schema ""
>>>>> 20:48:15,204 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
>>>>> CONSTRAINT "InvoiceItem_FK3" FOREIGN KEY ("leaseTermId") REFERENCES
>>>>> "LeaseTerm" ("id")
>>>>> 20:48:15,205 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,205 [Schema                        ] Creating foreign key
>>>>> constraint : "InvoiceItem_FK2" in catalog "" schema ""
>>>>> 20:48:15,205 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
>>>>> CONSTRAINT "InvoiceItem_FK2" FOREIGN KEY ("chargeId") REFERENCES "Charge"
>>>>> ("id")
>>>>> 20:48:15,206 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,206 [Schema                        ] Creating foreign key
>>>>> constraint : "InvoiceItem_FK1" in catalog "" schema ""
>>>>> 20:48:15,206 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
>>>>> CONSTRAINT "InvoiceItem_FK1" FOREIGN KEY ("taxId") REFERENCES "Tax" ("id")
>>>>> 20:48:15,207 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,208 [Schema                        ] Creating index
>>>>> "InvoiceItem_N51" in catalog "" schema ""
>>>>> 20:48:15,208 [Schema                        ] CREATE INDEX
>>>>> "InvoiceItem_N51" ON "InvoiceItem" ("taxId")
>>>>> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,208 [Schema                        ] Creating index
>>>>> "InvoiceItem_N50" in catalog "" schema ""
>>>>> 20:48:15,208 [Schema                        ] CREATE INDEX
>>>>> "InvoiceItem_N50" ON "InvoiceItem" ("invoiceId")
>>>>> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,208 [Schema                        ] Creating index
>>>>> "InvoiceItem_N52" in catalog "" schema ""
>>>>> 20:48:15,208 [Schema                        ] CREATE INDEX
>>>>> "InvoiceItem_N52" ON "InvoiceItem" ("leaseTermId")
>>>>> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,208 [Schema                        ] Creating index
>>>>> "InvoiceItemForLease_LeaseTerm_StartDate_EndDate_DueDate_IDX" in catalog ""
>>>>> schema ""
>>>>> 20:48:15,208 [Schema                        ] CREATE INDEX
>>>>> "InvoiceItemForLease_LeaseTerm_StartDate_EndDate_DueDate_IDX" ON
>>>>> "InvoiceItem" ("leaseTermId","startDate","endDate","dueDate")
>>>>> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,208 [Schema                        ] Creating index
>>>>> "InvoiceItem_N49" in catalog "" schema ""
>>>>> 20:48:15,208 [Schema                        ] CREATE INDEX
>>>>> "InvoiceItem_N49" ON "InvoiceItem" ("chargeId")
>>>>> 20:48:15,209 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,209 [Schema                        ] Creating candidate key
>>>>> "Brand_name_UNQ" in catalog "" schema ""
>>>>> 20:48:15,209 [Schema                        ] ALTER TABLE "Brand" ADD
>>>>> CONSTRAINT "Brand_name_UNQ" UNIQUE ("name")
>>>>> 20:48:15,209 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,209 [Schema                        ] Creating foreign key
>>>>> constraint : "FixedAssetRole_FK1" in catalog "" schema ""
>>>>> 20:48:15,209 [Schema                        ] ALTER TABLE "FixedAssetRole"
>>>>> ADD CONSTRAINT "FixedAssetRole_FK1" FOREIGN KEY ("assetId") REFERENCES
>>>>> "FixedAsset" ("id")
>>>>> 20:48:15,210 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,210 [Schema                        ] Creating foreign key
>>>>> constraint : "FixedAssetRole_FK2" in catalog "" schema ""
>>>>> 20:48:15,210 [Schema                        ] ALTER TABLE "FixedAssetRole"
>>>>> ADD CONSTRAINT "FixedAssetRole_FK2" FOREIGN KEY ("partyId") REFERENCES
>>>>> "Party" ("id")
>>>>> 20:48:15,211 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,211 [Schema                        ] Creating index
>>>>> "FixedAssetRole_N50" in catalog "" schema ""
>>>>> 20:48:15,211 [Schema                        ] CREATE INDEX
>>>>> "FixedAssetRole_N50" ON "FixedAssetRole" ("assetId")
>>>>> 20:48:15,211 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,212 [Schema                        ] Creating index
>>>>> "FixedAssetRole_N49" in catalog "" schema ""
>>>>> 20:48:15,212 [Schema                        ] CREATE INDEX
>>>>> "FixedAssetRole_N49" ON "FixedAssetRole" ("partyId")
>>>>> 20:48:15,212 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,212 [Schema                        ] Creating candidate key
>>>>> "Agreement_reference_UNQ" in catalog "" schema ""
>>>>> 20:48:15,212 [Schema                        ] ALTER TABLE "Agreement" ADD
>>>>> CONSTRAINT "Agreement_reference_UNQ" UNIQUE ("reference")
>>>>> 20:48:15,213 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,213 [Schema                        ] Creating foreign key
>>>>> constraint : "Agreement_FK1" in catalog "" schema ""
>>>>> 20:48:15,213 [Schema                        ] ALTER TABLE "Agreement" ADD
>>>>> CONSTRAINT "Agreement_FK1" FOREIGN KEY ("typeId") REFERENCES
>>>>> "AgreementType" ("id")
>>>>> 20:48:15,214 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,214 [Schema                        ] Creating foreign key
>>>>> constraint : "Agreement_FK2" in catalog "" schema ""
>>>>> 20:48:15,214 [Schema                        ] ALTER TABLE "Agreement" ADD
>>>>> CONSTRAINT "Agreement_FK2" FOREIGN KEY ("nextAgreementId") REFERENCES
>>>>> "Agreement" ("id")
>>>>> 20:48:15,214 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,215 [Schema                        ] Creating index
>>>>> "Lease_reference_name_IDX" in catalog "" schema ""
>>>>> 20:48:15,215 [Schema                        ] CREATE INDEX
>>>>> "Lease_reference_name_IDX" ON "Agreement" ("reference","name")
>>>>> 20:48:15,215 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,215 [Schema                        ] Creating index
>>>>> "Agreement_N50" in catalog "" schema ""
>>>>> 20:48:15,215 [Schema                        ] CREATE INDEX "Agreement_N50"
>>>>> ON "Agreement" ("typeId")
>>>>> 20:48:15,215 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,215 [Schema                        ] Creating index
>>>>> "Agreement_N49" in catalog "" schema ""
>>>>> 20:48:15,215 [Schema                        ] CREATE INDEX "Agreement_N49"
>>>>> ON "Agreement" ("nextAgreementId")
>>>>> 20:48:15,215 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,215 [Schema                        ] Creating foreign key
>>>>> constraint : "BankMandate_FK1" in catalog "" schema ""
>>>>> 20:48:15,215 [Schema                        ] ALTER TABLE "BankMandate" ADD
>>>>> CONSTRAINT "BankMandate_FK1" FOREIGN KEY ("id") REFERENCES "Agreement"
>>>>> ("id")
>>>>> 20:48:15,216 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,216 [Schema                        ] Creating foreign key
>>>>> constraint : "BankMandate_FK2" in catalog "" schema ""
>>>>> 20:48:15,216 [Schema                        ] ALTER TABLE "BankMandate" ADD
>>>>> CONSTRAINT "BankMandate_FK2" FOREIGN KEY ("bankAccountId") REFERENCES
>>>>> "FinancialAccount" ("id")
>>>>> 20:48:15,216 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,217 [Schema                        ] Creating index
>>>>> "BankMandate_N49" in catalog "" schema ""
>>>>> 20:48:15,217 [Schema                        ] CREATE INDEX
>>>>> "BankMandate_N49" ON "BankMandate" ("bankAccountId")
>>>>> 20:48:15,217 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,217 [Schema                        ] Creating foreign key
>>>>> constraint : "Event_FK1" in catalog "" schema ""
>>>>> 20:48:15,217 [Schema                        ] ALTER TABLE "Event" ADD
>>>>> CONSTRAINT "Event_FK1" FOREIGN KEY ("subjectBreakOptionId") REFERENCES
>>>>> "BreakOption" ("id")
>>>>> 20:48:15,218 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,218 [Schema                        ] Creating index "Event_N49" in
>>>>> catalog "" schema ""
>>>>> 20:48:15,218 [Schema                        ] CREATE INDEX "Event_N49" ON
>>>>> "Event" ("subjectBreakOptionId")
>>>>> 20:48:15,218 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,218 [Schema                        ] Creating candidate key
>>>>> "ChargeGroup_reference_UNQ" in catalog "" schema ""
>>>>> 20:48:15,218 [Schema                        ] ALTER TABLE "ChargeGroup" ADD
>>>>> CONSTRAINT "ChargeGroup_reference_UNQ" UNIQUE ("reference")
>>>>> 20:48:15,219 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,219 [Schema                        ] Creating candidate key
>>>>> "Currency_reference_UNQ" in catalog "" schema ""
>>>>> 20:48:15,219 [Schema                        ] ALTER TABLE "Currency" ADD
>>>>> CONSTRAINT "Currency_reference_UNQ" UNIQUE ("reference")
>>>>> 20:48:15,219 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,220 [Schema                        ] Creating candidate key
>>>>> "Currency_name_UNQ" in catalog "" schema ""
>>>>> 20:48:15,220 [Schema                        ] ALTER TABLE "Currency" ADD
>>>>> CONSTRAINT "Currency_name_UNQ" UNIQUE ("name")
>>>>> 20:48:15,221 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,221 [Schema                        ] Creating foreign key
>>>>> constraint : "TaxRate_FK1" in catalog "" schema ""
>>>>> 20:48:15,221 [Schema                        ] ALTER TABLE "TaxRate" ADD
>>>>> CONSTRAINT "TaxRate_FK1" FOREIGN KEY ("taxId") REFERENCES "Tax" ("id")
>>>>> 20:48:15,222 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,222 [Schema                        ] Creating foreign key
>>>>> constraint : "TaxRate_FK2" in catalog "" schema ""
>>>>> 20:48:15,222 [Schema                        ] ALTER TABLE "TaxRate" ADD
>>>>> CONSTRAINT "TaxRate_FK2" FOREIGN KEY ("nextTaxRateId") REFERENCES "TaxRate"
>>>>> ("id")
>>>>> 20:48:15,223 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,223 [Schema                        ] Creating index "TaxRate_N49"
>>>>> in catalog "" schema ""
>>>>> 20:48:15,223 [Schema                        ] CREATE INDEX "TaxRate_N49" ON
>>>>> "TaxRate" ("nextTaxRateId")
>>>>> 20:48:15,223 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,223 [Schema                        ] Creating index "TaxRate_N50"
>>>>> in catalog "" schema ""
>>>>> 20:48:15,223 [Schema                        ] CREATE INDEX "TaxRate_N50" ON
>>>>> "TaxRate" ("taxId")
>>>>> 20:48:15,223 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,223 [Schema                        ] Creating foreign key
>>>>> constraint : "PartyRegistration_FK1" in catalog "" schema ""
>>>>> 20:48:15,224 [Schema                        ] ALTER TABLE
>>>>> "PartyRegistration" ADD CONSTRAINT "PartyRegistration_FK1" FOREIGN KEY
>>>>> ("partyId") REFERENCES "Party" ("id")
>>>>> 20:48:15,225 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,225 [Schema                        ] Creating index
>>>>> "PartyRegistration_N49" in catalog "" schema ""
>>>>> 20:48:15,225 [Schema                        ] CREATE INDEX
>>>>> "PartyRegistration_N49" ON "PartyRegistration" ("partyId")
>>>>> 20:48:15,225 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,225 [Schema                        ] Creating foreign key
>>>>> constraint : "AgreementRoleType_FK1" in catalog "" schema ""
>>>>> 20:48:15,225 [Schema                        ] ALTER TABLE
>>>>> "AgreementRoleType" ADD CONSTRAINT "AgreementRoleType_FK1" FOREIGN KEY
>>>>> ("appliesToAgreementTypeId") REFERENCES "AgreementType" ("id")
>>>>> 20:48:15,226 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,226 [Schema                        ] Creating index
>>>>> "AgreementRoleType_N49" in catalog "" schema ""
>>>>> 20:48:15,226 [Schema                        ] CREATE INDEX
>>>>> "AgreementRoleType_N49" ON "AgreementRoleType" ("appliesToAgreementTypeId")
>>>>> 20:48:15,227 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,227 [Schema                        ] Creating candidate key
>>>>> "FinancialAccount_reference_UNQ" in catalog "" schema ""
>>>>> 20:48:15,227 [Schema                        ] ALTER TABLE
>>>>> "FinancialAccount" ADD CONSTRAINT "FinancialAccount_reference_UNQ" UNIQUE
>>>>> ("reference")
>>>>> 20:48:15,228 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,229 [Schema                        ] Creating foreign key
>>>>> constraint : "FinancialAccount_FK1" in catalog "" schema ""
>>>>> 20:48:15,229 [Schema                        ] ALTER TABLE
>>>>> "FinancialAccount" ADD CONSTRAINT "FinancialAccount_FK1" FOREIGN KEY
>>>>> ("ownerPartyId") REFERENCES "Party" ("id")
>>>>> 20:48:15,231 [Schema                        ] Execution Time = 2 ms
>>>>> 20:48:15,231 [Schema                        ] Creating index
>>>>> "FinancialAccount_N49" in catalog "" schema ""
>>>>> 20:48:15,231 [Schema                        ] CREATE INDEX
>>>>> "FinancialAccount_N49" ON "FinancialAccount" ("ownerPartyId")
>>>>> 20:48:15,231 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,232 [Schema                        ] Creating foreign key
>>>>> constraint : "BankAccount_FK1" in catalog "" schema ""
>>>>> 20:48:15,232 [Schema                        ] ALTER TABLE "BankAccount" ADD
>>>>> CONSTRAINT "BankAccount_FK1" FOREIGN KEY ("id") REFERENCES
>>>>> "FinancialAccount" ("id")
>>>>> 20:48:15,232 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,232 [Schema                        ] Creating foreign key
>>>>> constraint : "BankAccount_FK2" in catalog "" schema ""
>>>>> 20:48:15,232 [Schema                        ] ALTER TABLE "BankAccount" ADD
>>>>> CONSTRAINT "BankAccount_FK2" FOREIGN KEY ("countryId") REFERENCES "Country"
>>>>> ("id")
>>>>> 20:48:15,233 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,233 [Schema                        ] Creating foreign key
>>>>> constraint : "BankAccount_FK3" in catalog "" schema ""
>>>>> 20:48:15,233 [Schema                        ] ALTER TABLE "BankAccount" ADD
>>>>> CONSTRAINT "BankAccount_FK3" FOREIGN KEY ("fixedAssetId") REFERENCES
>>>>> "Property" ("id")
>>>>> 20:48:15,234 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,234 [Schema                        ] Creating foreign key
>>>>> constraint : "BankAccount_FK4" in catalog "" schema ""
>>>>> 20:48:15,234 [Schema                        ] ALTER TABLE "BankAccount" ADD
>>>>> CONSTRAINT "BankAccount_FK4" FOREIGN KEY ("bankPartyId") REFERENCES "Party"
>>>>> ("id")
>>>>> 20:48:15,234 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,235 [Schema                        ] Creating index
>>>>> "BankAccount_N51" in catalog "" schema ""
>>>>> 20:48:15,235 [Schema                        ] CREATE INDEX
>>>>> "BankAccount_N51" ON "BankAccount" ("fixedAssetId")
>>>>> 20:48:15,235 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,235 [Schema                        ] Creating index
>>>>> "BankAccount_N50" in catalog "" schema ""
>>>>> 20:48:15,235 [Schema                        ] CREATE INDEX
>>>>> "BankAccount_N50" ON "BankAccount" ("bankPartyId")
>>>>> 20:48:15,235 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,235 [Schema                        ] Creating index
>>>>> "BankAccount_N49" in catalog "" schema ""
>>>>> 20:48:15,235 [Schema                        ] CREATE INDEX
>>>>> "BankAccount_N49" ON "BankAccount" ("countryId")
>>>>> 20:48:15,235 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,235 [Schema                        ] Creating candidate key
>>>>> "UnitSize_name_UNQ" in catalog "" schema ""
>>>>> 20:48:15,235 [Schema                        ] ALTER TABLE "UnitSize" ADD
>>>>> CONSTRAINT "UnitSize_name_UNQ" UNIQUE ("name")
>>>>> 20:48:15,236 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,236 [Schema                        ] Creating candidate key
>>>>> "FixedAsset_reference_UNQ" in catalog "" schema ""
>>>>> 20:48:15,236 [Schema                        ] ALTER TABLE "FixedAsset" ADD
>>>>> CONSTRAINT "FixedAsset_reference_UNQ" UNIQUE ("reference")
>>>>> 20:48:15,237 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,237 [Schema                        ] Creating index
>>>>> "FixedAsset_reference_name_IDX" in catalog "" schema ""
>>>>> 20:48:15,237 [Schema                        ] CREATE INDEX
>>>>> "FixedAsset_reference_name_IDX" ON "FixedAsset" ("reference","name")
>>>>> 20:48:15,237 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,237 [Schema                        ] Creating foreign key
>>>>> constraint : "Property_FK2" in catalog "" schema ""
>>>>> 20:48:15,237 [Schema                        ] ALTER TABLE "Property" ADD
>>>>> CONSTRAINT "Property_FK2" FOREIGN KEY ("countryId") REFERENCES "Country"
>>>>> ("id")
>>>>> 20:48:15,238 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,238 [Schema                        ] Creating foreign key
>>>>> constraint : "Property_FK1" in catalog "" schema ""
>>>>> 20:48:15,238 [Schema                        ] ALTER TABLE "Property" ADD
>>>>> CONSTRAINT "Property_FK1" FOREIGN KEY ("id") REFERENCES "FixedAsset" ("id")
>>>>> 20:48:15,238 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,238 [Schema                        ] Creating index "Property_N49"
>>>>> in catalog "" schema ""
>>>>> 20:48:15,238 [Schema                        ] CREATE INDEX "Property_N49"
>>>>> ON "Property" ("countryId")
>>>>> 20:48:15,239 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,239 [Schema                        ] Creating foreign key
>>>>> constraint : "LeaseAssignment_FK2" in catalog "" schema ""
>>>>> 20:48:15,239 [Schema                        ] ALTER TABLE "LeaseAssignment"
>>>>> ADD CONSTRAINT "LeaseAssignment_FK2" FOREIGN KEY ("previousLeaseId")
>>>>> REFERENCES "Lease" ("id")
>>>>> 20:48:15,239 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,239 [Schema                        ] Creating foreign key
>>>>> constraint : "LeaseAssignment_FK1" in catalog "" schema ""
>>>>> 20:48:15,239 [Schema                        ] ALTER TABLE "LeaseAssignment"
>>>>> ADD CONSTRAINT "LeaseAssignment_FK1" FOREIGN KEY ("nextLeaseId") REFERENCES
>>>>> "Lease" ("id")
>>>>> 20:48:15,240 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,240 [Schema                        ] Creating index
>>>>> "LeaseAssignment_N49" in catalog "" schema ""
>>>>> 20:48:15,240 [Schema                        ] CREATE INDEX
>>>>> "LeaseAssignment_N49" ON "LeaseAssignment" ("previousLeaseId")
>>>>> 20:48:15,241 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,241 [Schema                        ] Creating index
>>>>> "LeaseAssignment_N50" in catalog "" schema ""
>>>>> 20:48:15,241 [Schema                        ] CREATE INDEX
>>>>> "LeaseAssignment_N50" ON "LeaseAssignment" ("nextLeaseId")
>>>>> 20:48:15,241 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,241 [Schema                        ] Creating candidate key
>>>>> "Geography_reference_UNQ" in catalog "" schema ""
>>>>> 20:48:15,241 [Schema                        ] ALTER TABLE "State" ADD
>>>>> CONSTRAINT "Geography_reference_UNQ" UNIQUE ("reference")
>>>>> 20:48:15,242 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,242 [Schema                        ] Creating candidate key
>>>>> "Geography_name_UNQ" in catalog "" schema ""
>>>>> 20:48:15,242 [Schema                        ] ALTER TABLE "State" ADD
>>>>> CONSTRAINT "Geography_name_UNQ" UNIQUE ("name")
>>>>> 20:48:15,243 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,243 [Schema                        ] Creating foreign key
>>>>> constraint : "State_FK1" in catalog "" schema ""
>>>>> 20:48:15,243 [Schema                        ] ALTER TABLE "State" ADD
>>>>> CONSTRAINT "State_FK1" FOREIGN KEY ("countryId") REFERENCES "Country"
>>>>> ("id")
>>>>> 20:48:15,243 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,244 [Schema                        ] Creating index "State_N49" in
>>>>> catalog "" schema ""
>>>>> 20:48:15,244 [Schema                        ] CREATE INDEX "State_N49" ON
>>>>> "State" ("countryId")
>>>>> 20:48:15,244 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,244 [Schema                        ] Creating foreign key
>>>>> constraint : "LeaseStatusReason_FK1" in catalog "" schema ""
>>>>> 20:48:15,244 [Schema                        ] ALTER TABLE
>>>>> "LeaseStatusReason" ADD CONSTRAINT "LeaseStatusReason_FK1" FOREIGN KEY
>>>>> ("leaseId") REFERENCES "Lease" ("id")
>>>>> 20:48:15,245 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,245 [Schema                        ] Creating index
>>>>> "LeaseStatusReason_N49" in catalog "" schema ""
>>>>> 20:48:15,245 [Schema                        ] CREATE INDEX
>>>>> "LeaseStatusReason_N49" ON "LeaseStatusReason" ("leaseId")
>>>>> 20:48:15,245 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,246 [Schema                        ] Creating candidate key
>>>>> "Activity_sector_name_UNQ" in catalog "" schema ""
>>>>> 20:48:15,246 [Schema                        ] ALTER TABLE "Activity" ADD
>>>>> CONSTRAINT "Activity_sector_name_UNQ" UNIQUE ("sectorId","name")
>>>>> 20:48:15,246 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,246 [Schema                        ] Creating foreign key
>>>>> constraint : "Activity_FK1" in catalog "" schema ""
>>>>> 20:48:15,246 [Schema                        ] ALTER TABLE "Activity" ADD
>>>>> CONSTRAINT "Activity_FK1" FOREIGN KEY ("sectorId") REFERENCES "Sector"
>>>>> ("id")
>>>>> 20:48:15,247 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,247 [Schema                        ] Creating index "Activity_N49"
>>>>> in catalog "" schema ""
>>>>> 20:48:15,247 [Schema                        ] CREATE INDEX "Activity_N49"
>>>>> ON "Activity" ("sectorId")
>>>>> 20:48:15,248 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,248 [Schema                        ] Creating candidate key
>>>>> "Party_reference_UNQ" in catalog "" schema ""
>>>>> 20:48:15,248 [Schema                        ] ALTER TABLE "Party" ADD
>>>>> CONSTRAINT "Party_reference_UNQ" UNIQUE ("reference")
>>>>> 20:48:15,248 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,249 [Schema                        ] Creating index
>>>>> "Party_reference_name_IDX" in catalog "" schema ""
>>>>> 20:48:15,249 [Schema                        ] CREATE INDEX
>>>>> "Party_reference_name_IDX" ON "Party" ("reference","name")
>>>>> 20:48:15,249 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,249 [Schema                        ] Creating foreign key
>>>>> constraint : "Organisation_FK1" in catalog "" schema ""
>>>>> 20:48:15,249 [Schema                        ] ALTER TABLE "Organisation"
>>>>> ADD CONSTRAINT "Organisation_FK1" FOREIGN KEY ("id") REFERENCES "Party"
>>>>> ("id")
>>>>> 20:48:15,249 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,250 [Schema                        ] Creating candidate key
>>>>> "FixedAssetRegistrationType_title_UNQ" in catalog "" schema ""
>>>>> 20:48:15,250 [Schema                        ] ALTER TABLE
>>>>> "FixedAssetRegistrationType" ADD CONSTRAINT
>>>>> "FixedAssetRegistrationType_title_UNQ" UNIQUE ("title")
>>>>> 20:48:15,250 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,250 [Schema                        ] Creating foreign key
>>>>> constraint : "FixedAssetRegistration_FK2" in catalog "" schema ""
>>>>> 20:48:15,250 [Schema                        ] ALTER TABLE
>>>>> "FixedAssetRegistration" ADD CONSTRAINT "FixedAssetRegistration_FK2"
>>>>> FOREIGN KEY ("subjectId") REFERENCES "FixedAsset" ("id")
>>>>> 20:48:15,251 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,251 [Schema                        ] Creating foreign key
>>>>> constraint : "FixedAssetRegistration_FK1" in catalog "" schema ""
>>>>> 20:48:15,251 [Schema                        ] ALTER TABLE
>>>>> "FixedAssetRegistration" ADD CONSTRAINT "FixedAssetRegistration_FK1"
>>>>> FOREIGN KEY ("typeId") REFERENCES "FixedAssetRegistrationType" ("id")
>>>>> 20:48:15,252 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,252 [Schema                        ] Creating index
>>>>> "FixedAssetRegistration_N49" in catalog "" schema ""
>>>>> 20:48:15,252 [Schema                        ] CREATE INDEX
>>>>> "FixedAssetRegistration_N49" ON "FixedAssetRegistration" ("subjectId")
>>>>> 20:48:15,252 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,252 [Schema                        ] Creating index
>>>>> "FixedAssetRegistration_N50" in catalog "" schema ""
>>>>> 20:48:15,252 [Schema                        ] CREATE INDEX
>>>>> "FixedAssetRegistration_N50" ON "FixedAssetRegistration" ("typeId")
>>>>> 20:48:15,252 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,253 [Schema                        ] Creating foreign key
>>>>> constraint : "LandRegister_FK1" in catalog "" schema ""
>>>>> 20:48:15,253 [Schema                        ] ALTER TABLE "LandRegister"
>>>>> ADD CONSTRAINT "LandRegister_FK1" FOREIGN KEY ("id") REFERENCES
>>>>> "FixedAssetRegistration" ("id")
>>>>> 20:48:15,253 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,253 [Schema                        ] Creating candidate key
>>>>> "Tag_taggable_name_UNQ" in catalog "" schema ""
>>>>> 20:48:15,253 [Schema                        ] ALTER TABLE "Tag" ADD
>>>>> CONSTRAINT "Tag_taggable_name_UNQ" UNIQUE
>>>>> ("taggable_Occupancy_id_EID","name")
>>>>> 20:48:15,254 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,254 [Schema                        ] Creating foreign key
>>>>> constraint : "Tag_FK1" in catalog "" schema ""
>>>>> 20:48:15,254 [Schema                        ] ALTER TABLE "Tag" ADD
>>>>> CONSTRAINT "Tag_FK1" FOREIGN KEY ("taggable_Occupancy_id_EID") REFERENCES
>>>>> "Occupancy" ("id")
>>>>> 20:48:15,255 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,255 [Schema                        ] Creating index "Tag_N49" in
>>>>> catalog "" schema ""
>>>>> 20:48:15,255 [Schema                        ] CREATE INDEX "Tag_N49" ON
>>>>> "Tag" ("taggable_Occupancy_id_EID")
>>>>> 20:48:15,255 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,255 [Schema                        ] Creating candidate key
>>>>> "Charge_reference_UNQ" in catalog "" schema ""
>>>>> 20:48:15,255 [Schema                        ] ALTER TABLE "Charge" ADD
>>>>> CONSTRAINT "Charge_reference_UNQ" UNIQUE ("reference")
>>>>> 20:48:15,256 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,256 [Schema                        ] Creating candidate key
>>>>> "Charge_name_UNQ" in catalog "" schema ""
>>>>> 20:48:15,256 [Schema                        ] ALTER TABLE "Charge" ADD
>>>>> CONSTRAINT "Charge_name_UNQ" UNIQUE ("name")
>>>>> 20:48:15,257 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,257 [Schema                        ] Creating foreign key
>>>>> constraint : "Charge_FK2" in catalog "" schema ""
>>>>> 20:48:15,257 [Schema                        ] ALTER TABLE "Charge" ADD
>>>>> CONSTRAINT "Charge_FK2" FOREIGN KEY ("taxId") REFERENCES "Tax" ("id")
>>>>> 20:48:15,258 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,258 [Schema                        ] Creating foreign key
>>>>> constraint : "Charge_FK1" in catalog "" schema ""
>>>>> 20:48:15,258 [Schema                        ] ALTER TABLE "Charge" ADD
>>>>> CONSTRAINT "Charge_FK1" FOREIGN KEY ("groupId") REFERENCES "ChargeGroup"
>>>>> ("id")
>>>>> 20:48:15,259 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,259 [Schema                        ] Creating index "Charge_N50"
>>>>> in catalog "" schema ""
>>>>> 20:48:15,259 [Schema                        ] CREATE INDEX "Charge_N50" ON
>>>>> "Charge" ("groupId")
>>>>> 20:48:15,259 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,259 [Schema                        ] Creating index "Charge_N49"
>>>>> in catalog "" schema ""
>>>>> 20:48:15,259 [Schema                        ] CREATE INDEX "Charge_N49" ON
>>>>> "Charge" ("taxId")
>>>>> 20:48:15,260 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,260 [Schema                        ] Creating foreign key
>>>>> constraint : "IndexValue_FK1" in catalog "" schema ""
>>>>> 20:48:15,260 [Schema                        ] ALTER TABLE "IndexValue" ADD
>>>>> CONSTRAINT "IndexValue_FK1" FOREIGN KEY ("indexBaseId") REFERENCES
>>>>> "IndexBase" ("id")
>>>>> 20:48:15,260 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,261 [Schema                        ] Creating index
>>>>> "IndexValue_N49" in catalog "" schema ""
>>>>> 20:48:15,261 [Schema                        ] CREATE INDEX "IndexValue_N49"
>>>>> ON "IndexValue" ("indexBaseId")
>>>>> 20:48:15,261 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,261 [Schema                        ] Creating candidate key
>>>>> "Tax_reference_UNQ" in catalog "" schema ""
>>>>> 20:48:15,261 [Schema                        ] ALTER TABLE "Tax" ADD
>>>>> CONSTRAINT "Tax_reference_UNQ" UNIQUE ("reference")
>>>>> 20:48:15,261 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,262 [Schema                        ] Creating foreign key
>>>>> constraint : "Invoice_FK4" in catalog "" schema ""
>>>>> 20:48:15,262 [Schema                        ] ALTER TABLE "Invoice" ADD
>>>>> CONSTRAINT "Invoice_FK4" FOREIGN KEY ("currencyId") REFERENCES "Currency"
>>>>> ("id")
>>>>> 20:48:15,262 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,263 [Schema                        ] Creating foreign key
>>>>> constraint : "Invoice_FK3" in catalog "" schema ""
>>>>> 20:48:15,263 [Schema                        ] ALTER TABLE "Invoice" ADD
>>>>> CONSTRAINT "Invoice_FK3" FOREIGN KEY ("sellerPartyId") REFERENCES "Party"
>>>>> ("id")
>>>>> 20:48:15,264 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,264 [Schema                        ] Creating foreign key
>>>>> constraint : "Invoice_FK2" in catalog "" schema ""
>>>>> 20:48:15,264 [Schema                        ] ALTER TABLE "Invoice" ADD
>>>>> CONSTRAINT "Invoice_FK2" FOREIGN KEY ("buyerPartyId") REFERENCES "Party"
>>>>> ("id")
>>>>> 20:48:15,264 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,265 [Schema                        ] Creating foreign key
>>>>> constraint : "Invoice_FK1" in catalog "" schema ""
>>>>> 20:48:15,265 [Schema                        ] ALTER TABLE "Invoice" ADD
>>>>> CONSTRAINT "Invoice_FK1" FOREIGN KEY ("sourceLeaseId") REFERENCES "Lease"
>>>>> ("id")
>>>>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,266 [Schema                        ] Creating index "Invoice_N51"
>>>>> in catalog "" schema ""
>>>>> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N51" ON
>>>>> "Invoice" ("currencyId")
>>>>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,266 [Schema                        ] Creating index "Invoice_N52"
>>>>> in catalog "" schema ""
>>>>> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N52" ON
>>>>> "Invoice" ("sourceLeaseId")
>>>>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,266 [Schema                        ] Creating index "Invoice_N49"
>>>>> in catalog "" schema ""
>>>>> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N49" ON
>>>>> "Invoice" ("buyerPartyId")
>>>>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,266 [Schema                        ] Creating index "Invoice_N50"
>>>>> in catalog "" schema ""
>>>>> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N50" ON
>>>>> "Invoice" ("sellerPartyId")
>>>>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,267 [Schema                        ] Creating foreign key
>>>>> constraint : "Person_FK1" in catalog "" schema ""
>>>>> 20:48:15,267 [Schema                        ] ALTER TABLE "Person" ADD
>>>>> CONSTRAINT "Person_FK1" FOREIGN KEY ("id") REFERENCES "Party" ("id")
>>>>> 20:48:15,267 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,267 [Schema                        ] Creating candidate key
>>>>> "Country_alpha2Code_UNQ" in catalog "" schema ""
>>>>> 20:48:15,267 [Schema                        ] ALTER TABLE "Country" ADD
>>>>> CONSTRAINT "Country_alpha2Code_UNQ" UNIQUE ("alpha2Code")
>>>>> 20:48:15,268 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,269 [Schema                        ] Creating candidate key
>>>>> "Country_reference_UNQ" in catalog "" schema ""
>>>>> 20:48:15,269 [Schema                        ] ALTER TABLE "Country" ADD
>>>>> CONSTRAINT "Country_reference_UNQ" UNIQUE ("reference")
>>>>> 20:48:15,270 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,270 [Schema                        ] Creating candidate key
>>>>> "Country_name_UNQ" in catalog "" schema ""
>>>>> 20:48:15,270 [Schema                        ] ALTER TABLE "Country" ADD
>>>>> CONSTRAINT "Country_name_UNQ" UNIQUE ("name")
>>>>> 20:48:15,271 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,271 [Schema                        ] Creating foreign key
>>>>> constraint : "Lease_FK3" in catalog "" schema ""
>>>>> 20:48:15,271 [Schema                        ] ALTER TABLE "Lease" ADD
>>>>> CONSTRAINT "Lease_FK3" FOREIGN KEY ("leaseTypeId") REFERENCES "LeaseType"
>>>>> ("id")
>>>>> 20:48:15,272 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,272 [Schema                        ] Creating foreign key
>>>>> constraint : "Lease_FK2" in catalog "" schema ""
>>>>> 20:48:15,272 [Schema                        ] ALTER TABLE "Lease" ADD
>>>>> CONSTRAINT "Lease_FK2" FOREIGN KEY ("paidByBankMandateId") REFERENCES
>>>>> "BankMandate" ("id")
>>>>> 20:48:15,273 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,273 [Schema                        ] Creating foreign key
>>>>> constraint : "Lease_FK1" in catalog "" schema ""
>>>>> 20:48:15,273 [Schema                        ] ALTER TABLE "Lease" ADD
>>>>> CONSTRAINT "Lease_FK1" FOREIGN KEY ("id") REFERENCES "Agreement" ("id")
>>>>> 20:48:15,274 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,274 [Schema                        ] Creating index "Lease_N50" in
>>>>> catalog "" schema ""
>>>>> 20:48:15,274 [Schema                        ] CREATE INDEX "Lease_N50" ON
>>>>> "Lease" ("leaseTypeId")
>>>>> 20:48:15,274 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,275 [Schema                        ] Creating index "Lease_N49" in
>>>>> catalog "" schema ""
>>>>> 20:48:15,275 [Schema                        ] CREATE INDEX "Lease_N49" ON
>>>>> "Lease" ("paidByBankMandateId")
>>>>> 20:48:15,275 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,275 [Schema                        ] Creating candidate key
>>>>> "LeaseItem_lease_type_startDate_sequence_IDX" in catalog "" schema ""
>>>>> 20:48:15,275 [Schema                        ] ALTER TABLE "LeaseItem" ADD
>>>>> CONSTRAINT "LeaseItem_lease_type_startDate_sequence_IDX" UNIQUE
>>>>> ("leaseId","type","startDate","sequence")
>>>>> 20:48:15,277 [Schema                        ] Execution Time = 2 ms
>>>>> 20:48:15,277 [Schema                        ] Creating foreign key
>>>>> constraint : "LeaseItem_FK1" in catalog "" schema ""
>>>>> 20:48:15,277 [Schema                        ] ALTER TABLE "LeaseItem" ADD
>>>>> CONSTRAINT "LeaseItem_FK1" FOREIGN KEY ("leaseId") REFERENCES "Lease"
>>>>> ("id")
>>>>> 20:48:15,279 [Schema                        ] Execution Time = 2 ms
>>>>> 20:48:15,279 [Schema                        ] Creating foreign key
>>>>> constraint : "LeaseItem_FK2" in catalog "" schema ""
>>>>> 20:48:15,279 [Schema                        ] ALTER TABLE "LeaseItem" ADD
>>>>> CONSTRAINT "LeaseItem_FK2" FOREIGN KEY ("chargeId") REFERENCES "Charge"
>>>>> ("id")
>>>>> 20:48:15,281 [Schema                        ] Execution Time = 2 ms
>>>>> 20:48:15,281 [Schema                        ] Creating index
>>>>> "LeaseItem_lease_type_startDate_IDX" in catalog "" schema ""
>>>>> 20:48:15,281 [Schema                        ] CREATE INDEX
>>>>> "LeaseItem_lease_type_startDate_IDX" ON "LeaseItem"
>>>>> ("leaseId","type","startDate")
>>>>> 20:48:15,282 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,282 [Schema                        ] Creating index
>>>>> "LeaseItem_N50" in catalog "" schema ""
>>>>> 20:48:15,282 [Schema                        ] CREATE INDEX "LeaseItem_N50"
>>>>> ON "LeaseItem" ("leaseId")
>>>>> 20:48:15,282 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,282 [Schema                        ] Creating index
>>>>> "LeaseItem_lease_type_sequence_IDX" in catalog "" schema ""
>>>>> 20:48:15,282 [Schema                        ] CREATE INDEX
>>>>> "LeaseItem_lease_type_sequence_IDX" ON "LeaseItem"
>>>>> ("leaseId","type","sequence")
>>>>> 20:48:15,282 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,282 [Schema                        ] Creating index
>>>>> "LeaseItem_N49" in catalog "" schema ""
>>>>> 20:48:15,282 [Schema                        ] CREATE INDEX "LeaseItem_N49"
>>>>> ON "LeaseItem" ("chargeId")
>>>>> 20:48:15,283 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,283 [Schema                        ] Creating foreign key
>>>>> constraint : "AgreementRoleCommunicationChannelType_FK1" in catalog ""
>>>>> schema ""
>>>>> 20:48:15,283 [Schema                        ] ALTER TABLE
>>>>> "AgreementRoleCommunicationChannelType" ADD CONSTRAINT
>>>>> "AgreementRoleCommunicationChannelType_FK1" FOREIGN KEY
>>>>> ("appliesToAgreementTypeId") REFERENCES "AgreementType" ("id")
>>>>> 20:48:15,284 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,284 [Schema                        ] Creating index
>>>>> "AgreementRoleCommunicationChannelType_N49" in catalog "" schema ""
>>>>> 20:48:15,284 [Schema                        ] CREATE INDEX
>>>>> "AgreementRoleCommunicationChannelType_N49" ON
>>>>> "AgreementRoleCommunicationChannelType" ("appliesToAgreementTypeId")
>>>>> 20:48:15,284 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,284 [Schema                        ] Creating candidate key
>>>>> "LeaseType_reference_UNQ" in catalog "" schema ""
>>>>> 20:48:15,284 [Schema                        ] ALTER TABLE "LeaseType" ADD
>>>>> CONSTRAINT "LeaseType_reference_UNQ" UNIQUE ("reference")
>>>>> 20:48:15,285 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,285 [Schema                        ] Creating candidate key
>>>>> "LeaseType_name_UNQ" in catalog "" schema ""
>>>>> 20:48:15,285 [Schema                        ] ALTER TABLE "LeaseType" ADD
>>>>> CONSTRAINT "LeaseType_name_UNQ" UNIQUE ("name")
>>>>> 20:48:15,286 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,286 [Schema                        ] Creating foreign key
>>>>> constraint : "AgreementRoleCommunicationChannel_FK3" in catalog "" schema ""
>>>>> 20:48:15,286 [Schema                        ] ALTER TABLE
>>>>> "AgreementRoleCommunicationChannel" ADD CONSTRAINT
>>>>> "AgreementRoleCommunicationChannel_FK3" FOREIGN KEY
>>>>> ("communicationChannelId") REFERENCES "CommunicationChannel" ("id")
>>>>> 20:48:15,287 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,287 [Schema                        ] Creating foreign key
>>>>> constraint : "AgreementRoleCommunicationChannel_FK2" in catalog "" schema ""
>>>>> 20:48:15,287 [Schema                        ] ALTER TABLE
>>>>> "AgreementRoleCommunicationChannel" ADD CONSTRAINT
>>>>> "AgreementRoleCommunicationChannel_FK2" FOREIGN KEY ("agreementRoleId")
>>>>> REFERENCES "AgreementRole" ("id")
>>>>> 20:48:15,288 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,289 [Schema                        ] Creating foreign key
>>>>> constraint : "AgreementRoleCommunicationChannel_FK1" in catalog "" schema ""
>>>>> 20:48:15,289 [Schema                        ] ALTER TABLE
>>>>> "AgreementRoleCommunicationChannel" ADD CONSTRAINT
>>>>> "AgreementRoleCommunicationChannel_FK1" FOREIGN KEY ("typeId") REFERENCES
>>>>> "AgreementRoleCommunicationChannelType" ("id")
>>>>> 20:48:15,290 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,290 [Schema                        ] Creating index
>>>>> "AgreementRoleCommunicationChannel_N49" in catalog "" schema ""
>>>>> 20:48:15,290 [Schema                        ] CREATE INDEX
>>>>> "AgreementRoleCommunicationChannel_N49" ON
>>>>> "AgreementRoleCommunicationChannel" ("communicationChannelId")
>>>>> 20:48:15,291 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,291 [Schema                        ] Creating index
>>>>> "AgreementRoleCommunicationChannel_N50" in catalog "" schema ""
>>>>> 20:48:15,291 [Schema                        ] CREATE INDEX
>>>>> "AgreementRoleCommunicationChannel_N50" ON
>>>>> "AgreementRoleCommunicationChannel" ("agreementRoleId")
>>>>> 20:48:15,291 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,291 [Schema                        ] Creating index
>>>>> "AgreementRoleCommunicationChannel_N51" in catalog "" schema ""
>>>>> 20:48:15,291 [Schema                        ] CREATE INDEX
>>>>> "AgreementRoleCommunicationChannel_N51" ON
>>>>> "AgreementRoleCommunicationChannel" ("typeId")
>>>>> 20:48:15,291 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,291 [Schema                        ] Creating candidate key
>>>>> "AgreementType_title_UNQ" in catalog "" schema ""
>>>>> 20:48:15,291 [Schema                        ] ALTER TABLE "AgreementType"
>>>>> ADD CONSTRAINT "AgreementType_title_UNQ" UNIQUE ("title")
>>>>> 20:48:15,292 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,292 [Schema                        ] Creating candidate key
>>>>> "Occupancy_lease_unit_startDate_UNQ" in catalog "" schema ""
>>>>> 20:48:15,292 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>>>> CONSTRAINT "Occupancy_lease_unit_startDate_UNQ" UNIQUE
>>>>> ("leaseId","unitId","startDate")
>>>>> 20:48:15,294 [Schema                        ] Execution Time = 2 ms
>>>>> 20:48:15,294 [Schema                        ] Creating foreign key
>>>>> constraint : "Occupancy_FK5" in catalog "" schema ""
>>>>> 20:48:15,294 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>>>> CONSTRAINT "Occupancy_FK5" FOREIGN KEY ("sectorId") REFERENCES "Sector"
>>>>> ("id")
>>>>> 20:48:15,295 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,296 [Schema                        ] Creating foreign key
>>>>> constraint : "Occupancy_FK6" in catalog "" schema ""
>>>>> 20:48:15,296 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>>>> CONSTRAINT "Occupancy_FK6" FOREIGN KEY ("brandId") REFERENCES "Brand"
>>>>> ("id")
>>>>> 20:48:15,297 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,297 [Schema                        ] Creating foreign key
>>>>> constraint : "Occupancy_FK3" in catalog "" schema ""
>>>>> 20:48:15,297 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>>>> CONSTRAINT "Occupancy_FK3" FOREIGN KEY ("activityId") REFERENCES "Activity"
>>>>> ("id")
>>>>> 20:48:15,299 [Schema                        ] Execution Time = 2 ms
>>>>> 20:48:15,299 [Schema                        ] Creating foreign key
>>>>> constraint : "Occupancy_FK4" in catalog "" schema ""
>>>>> 20:48:15,299 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>>>> CONSTRAINT "Occupancy_FK4" FOREIGN KEY ("leaseId") REFERENCES "Lease"
>>>>> ("id")
>>>>> 20:48:15,301 [Schema                        ] Execution Time = 2 ms
>>>>> 20:48:15,301 [Schema                        ] Creating foreign key
>>>>> constraint : "Occupancy_FK1" in catalog "" schema ""
>>>>> 20:48:15,301 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>>>> CONSTRAINT "Occupancy_FK1" FOREIGN KEY ("unitId") REFERENCES "Unit" ("id")
>>>>> 20:48:15,302 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,303 [Schema                        ] Creating foreign key
>>>>> constraint : "Occupancy_FK2" in catalog "" schema ""
>>>>> 20:48:15,303 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>>>> CONSTRAINT "Occupancy_FK2" FOREIGN KEY ("unitSizeId") REFERENCES "UnitSize"
>>>>> ("id")
>>>>> 20:48:15,304 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,304 [Schema                        ] Creating index
>>>>> "Occupancy_N54" in catalog "" schema ""
>>>>> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N54"
>>>>> ON "Occupancy" ("brandId")
>>>>> 20:48:15,305 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,305 [Schema                        ] Creating index
>>>>> "Occupancy_N53" in catalog "" schema ""
>>>>> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N53"
>>>>> ON "Occupancy" ("unitId")
>>>>> 20:48:15,305 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,305 [Schema                        ] Creating index
>>>>> "Occupancy_N52" in catalog "" schema ""
>>>>> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N52"
>>>>> ON "Occupancy" ("sectorId")
>>>>> 20:48:15,305 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,305 [Schema                        ] Creating index
>>>>> "Occupancy_N51" in catalog "" schema ""
>>>>> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N51"
>>>>> ON "Occupancy" ("activityId")
>>>>> 20:48:15,306 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,306 [Schema                        ] Creating index
>>>>> "Occupancy_N49" in catalog "" schema ""
>>>>> 20:48:15,306 [Schema                        ] CREATE INDEX "Occupancy_N49"
>>>>> ON "Occupancy" ("leaseId")
>>>>> 20:48:15,306 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,306 [Schema                        ] Creating index
>>>>> "Occupancy_N50" in catalog "" schema ""
>>>>> 20:48:15,306 [Schema                        ] CREATE INDEX "Occupancy_N50"
>>>>> ON "Occupancy" ("unitSizeId")
>>>>> 20:48:15,306 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,306 [Schema                        ] Creating foreign key
>>>>> constraint : "IndexBase_FK2" in catalog "" schema ""
>>>>> 20:48:15,306 [Schema                        ] ALTER TABLE "IndexBase" ADD
>>>>> CONSTRAINT "IndexBase_FK2" FOREIGN KEY ("indexId") REFERENCES "Index"
>>>>> ("id")
>>>>> 20:48:15,307 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,307 [Schema                        ] Creating foreign key
>>>>> constraint : "IndexBase_FK1" in catalog "" schema ""
>>>>> 20:48:15,307 [Schema                        ] ALTER TABLE "IndexBase" ADD
>>>>> CONSTRAINT "IndexBase_FK1" FOREIGN KEY ("nextIndexBaseId") REFERENCES
>>>>> "IndexBase" ("id")
>>>>> 20:48:15,308 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,308 [Schema                        ] Creating index
>>>>> "IndexBase_N50" in catalog "" schema ""
>>>>> 20:48:15,308 [Schema                        ] CREATE INDEX "IndexBase_N50"
>>>>> ON "IndexBase" ("indexId")
>>>>> 20:48:15,309 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,309 [Schema                        ] Creating index
>>>>> "IndexBase_N49" in catalog "" schema ""
>>>>> 20:48:15,309 [Schema                        ] CREATE INDEX "IndexBase_N49"
>>>>> ON "IndexBase" ("nextIndexBaseId")
>>>>> 20:48:15,309 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,309 [Schema                        ] Creating candidate key
>>>>> "Index_name_UNQ" in catalog "" schema ""
>>>>> 20:48:15,309 [Schema                        ] ALTER TABLE "Index" ADD
>>>>> CONSTRAINT "Index_name_UNQ" UNIQUE ("name")
>>>>> 20:48:15,310 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,310 [Schema                        ] Creating candidate key
>>>>> "Index_reference_UNQ" in catalog "" schema ""
>>>>> 20:48:15,310 [Schema                        ] ALTER TABLE "Index" ADD
>>>>> CONSTRAINT "Index_reference_UNQ" UNIQUE ("reference")
>>>>> 20:48:15,311 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,311 [Schema                        ] Creating foreign key
>>>>> constraint : "AgreementRole_FK3" in catalog "" schema ""
>>>>> 20:48:15,311 [Schema                        ] ALTER TABLE "AgreementRole"
>>>>> ADD CONSTRAINT "AgreementRole_FK3" FOREIGN KEY ("agreementId") REFERENCES
>>>>> "Agreement" ("id")
>>>>> 20:48:15,312 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,313 [Schema                        ] Creating foreign key
>>>>> constraint : "AgreementRole_FK2" in catalog "" schema ""
>>>>> 20:48:15,313 [Schema                        ] ALTER TABLE "AgreementRole"
>>>>> ADD CONSTRAINT "AgreementRole_FK2" FOREIGN KEY ("typeId") REFERENCES
>>>>> "AgreementRoleType" ("id")
>>>>> 20:48:15,314 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,314 [Schema                        ] Creating foreign key
>>>>> constraint : "AgreementRole_FK1" in catalog "" schema ""
>>>>> 20:48:15,314 [Schema                        ] ALTER TABLE "AgreementRole"
>>>>> ADD CONSTRAINT "AgreementRole_FK1" FOREIGN KEY ("partyId") REFERENCES
>>>>> "Party" ("id")
>>>>> 20:48:15,315 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,315 [Schema                        ] Creating index
>>>>> "AgreementRole_N49" in catalog "" schema ""
>>>>> 20:48:15,315 [Schema                        ] CREATE INDEX
>>>>> "AgreementRole_N49" ON "AgreementRole" ("agreementId")
>>>>> 20:48:15,315 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,315 [Schema                        ] Creating index
>>>>> "AgreementRole_N51" in catalog "" schema ""
>>>>> 20:48:15,315 [Schema                        ] CREATE INDEX
>>>>> "AgreementRole_N51" ON "AgreementRole" ("typeId")
>>>>> 20:48:15,316 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,316 [Schema                        ] Creating index
>>>>> "AgreementRole_N50" in catalog "" schema ""
>>>>> 20:48:15,316 [Schema                        ] CREATE INDEX
>>>>> "AgreementRole_N50" ON "AgreementRole" ("partyId")
>>>>> 20:48:15,316 [Schema                        ] Execution Time = 0 ms
>>>>> 20:48:15,316 [Schema                        ] Creating candidate key
>>>>> "Sector_name_UNQ" in catalog "" schema ""
>>>>> 20:48:15,316 [Schema                        ] ALTER TABLE "Sector" ADD
>>>>> CONSTRAINT "Sector_name_UNQ" UNIQUE ("name")
>>>>> 20:48:15,317 [Schema                        ] Execution Time = 1 ms
>>>>> 20:48:15,318 [Schema                        ] Check of existence of
>>>>> "InvoiceSummaryForPropertyDueDate" returned no table
>>>>> 20:48:15,318 [Schema                        ] Creating table
>>>>> "InvoiceSummaryForPropertyDueDate"
>>>>> 20:48:15,318 [Schema                        ] CREATE VIEW
>>>>> "InvoiceSummaryForPropertyDueDate" (   "reference",   "dueDate",   "total",
>>>>> "netAmount",   "vatAmount",   "grossAmount" ) AS SELECT
>>>>> "FixedAsset"."reference" ,    "Invoice"."dueDate",
>>>>> COUNT(DISTINCT("Invoice"."id")) AS "total",
>>>>> SUM("InvoiceItem"."netAmount") AS "netAmount",
>>>>> SUM("InvoiceItem"."vatAmount") AS "vatAmount",
>>>>> SUM("InvoiceItem"."grossAmount") AS "grossAmount"   FROM "Invoice"   INNER
>>>>> JOIN "Lease"       ON "Invoice"."sourceLeaseId" = "Lease"."id"   INNER JOIN
>>>>> "Occupancy"     ON "Lease"."id"              = "Occupancy"."leaseId"
>>>>> INNER JOIN "Unit"       ON "Unit"."id"               = "Occupancy"."unitId"
>>>>> INNER JOIN "Property"     ON "Property"."id"           =
>>>>> "Unit"."propertyId"   INNER JOIN "FixedAsset"     ON "FixedAsset"."id"
>>>>> = "Property"."id"   INNER JOIN "InvoiceItem"     ON
>>>>> "InvoiceItem"."invoiceId" = "Invoice"."id" GROUP BY
>>>>> "FixedAsset"."reference",  "Invoice"."dueDate"
>>>>> 
>>>>> 
>>>>> 
>>>>> On 13 January 2014 18:47, GESCONSULTOR - Óscar Bou
>>>>> <o....@gesconsultor.com>wrote:
>>>>> 
>>>>>> 
>>>>>> Hi, Dharmesh.
>>>>>> 
>>>>>> Can you copy on an email the class definition for
>>>>>> org.atos.tfgm.basket.ShoppingBasketItem?
>>>>>> 
>>>>>> Perhaps the JDO annotations for identity are not properly defined.
>>>>>> 
>>>>>> See [1] for an example. The relevant ones are:
>>>>>> 
>>>>>> 
>>>>>> @javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
>>>>>> @javax.jdo.annotations.DatastoreIdentity(
>>>>>>     strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY,
>>>>>>      column="id")
>>>>>> @javax.jdo.annotations.Version(
>>>>>>     strategy=VersionStrategy.VERSION_NUMBER,
>>>>>>     column="version")
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> Regards,
>>>>>> 
>>>>>> Oscar
>>>>>> 
>>>>>> 
>>>>>> [1]
>>>>>> https://github.com/apache/isis/blob/master/example/archetype/quickstart_wicket_restful_jdo/src/main/resources/archetype-resources/dom/src/main/java/dom/todo/ToDoItem.java
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> El 13/01/2014, a las 18:03, Chohan, Dharmesh <dh...@atos.net>
>>>>>> escribió:
>>>>>> 
>>>>>>> Hello
>>>>>>> 
>>>>>>> I have sorted out the issue below, however I have encountered another
>>>>>> problem,
>>>>>>> 
>>>>>>> Data already exists
>>>>>>> 
>>>>>>> integrity constraint violation: NOT NULL check constraint; SYS_CT_10102
>>>>>> table: "ShoppingBasketItem" column: "shoppingBasket_id_OID"
>>>>>>> 
>>>>>>> This is the log output and am not sure why shoppingBasket_id_OID is NULL
>>>>>>> 
>>>>>>> [exec] 16:58:55,845  [Native               qtp1742392524-31 DEBUG]
>>>>>> INSERT INTO "ShoppingBasketItem"
>>>>>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>>>>>> VALUES (<'123456789001'>,<'Please_Select'>,<'Item
>>>>>> 1'>,<'▒5'>,<null>,<1>,<null>)
>>>>>>> [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]
>>>>>> Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b"
>>>>>> using statement "INSERT INTO "ShoppingBasketItem"
>>>>>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>>>>>> VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL
>>>>>> check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column:
>>>>>> "shoppingBasket_id_OID"
>>>>>>> [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]
>>>>>> Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b"
>>>>>> using statement "INSERT INTO "ShoppingBasketItem"
>>>>>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>>>>>> VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL
>>>>>> check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column:
>>>>>> "shoppingBasket_id_OID"
>>>>>>> [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]
>>>>>> Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b"
>>>>>> using statement "INSERT INTO "ShoppingBasketItem"
>>>>>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>>>>>> VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL
>>>>>> check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column:
>>>>>> "shoppingBasket_id_OID"
>>>>>>> [exec] 16:58:55,945  [IsisTransaction      qtp1742392524-31 INFO ]
>>>>>> abort transaction IsisTransaction@2fab0086[state=MUST_ABORT,commands=0]
>>>>>>> 
>>>>>>> Regards
>>>>>>> Dharmesh
>>>>>>> 
>>>>>>> -----Original Message-----
>>>>>>> From: Chohan, Dharmesh [mailto:dharmesh.chohan@atos.net]
>>>>>>> Sent: Monday, January 13, 2014 4:09 PM
>>>>>>> To: users@isis.apache.org
>>>>>>> Subject: Domain Mappings 1:m Exception
>>>>>>> 
>>>>>>> Hi
>>>>>>> 
>>>>>>> I am implementing a domain object mapping of 1 to many.  I have followed
>>>>>> the documentation on
>>>>>> http://isis.apache.org/components/objectstores/jdo/managed-1-to-m-relationships.html
>>>>>>> 
>>>>>>> This is what I have implemented,
>>>>>>> 
>>>>>>> @javax.jdo.annotations.Persistent(mappedBy="shoppingBasket")
>>>>>>>    private SortedSet<ShoppingBasketItem> shoppingBasketItem = new
>>>>>> TreeSet<ShoppingBasketItem>();
>>>>>>> 
>>>>>>>    @javax.jdo.annotations.Column(allowsNull="false")
>>>>>>> @MemberOrder(sequence = "3")
>>>>>>>    public SortedSet <ShoppingBasketItem> getShoppingBasketItem() {
>>>>>>>            return shoppingBasketItem;
>>>>>>>    }
>>>>>>> 
>>>>>>>    public void setShoppingBasketItem(SortedSet <ShoppingBasketItem>
>>>>>> shoppingBasketItem) {
>>>>>>>            this.shoppingBasketItem = shoppingBasketItem;
>>>>>>>    }
>>>>>>> 
>>>>>>> public class ShoppingBasketItem implements
>>>>>> Comparable<ShoppingBasketItem> {
>>>>>>> 
>>>>>>>    private ShoppingBasket shoppingBasket;
>>>>>>> 
>>>>>>>    @javax.jdo.annotations.Column(allowsNull="false")
>>>>>>>    public ShoppingBasket getShoppingBasket() {
>>>>>>>            return shoppingBasket;
>>>>>>>    }
>>>>>>> 
>>>>>>>    public void setShoppingBasket(ShoppingBasket shoppingBasket) {
>>>>>>>            this.shoppingBasket = shoppingBasket;
>>>>>>>    }
>>>>>>> 
>>>>>>> ...
>>>>>>> 
>>>>>>> When I run ISIS and test the screen, I am getting the following
>>>>>> exception,
>>>>>>> 
>>>>>>> *       java.lang.IllegalArgumentException
>>>>>>> *       No such method ' getShoppingBasketItem' or 'isShoppingBasketItem'
>>>>>>> *
>>>>>> org.apache.isis.applib.util.Clause#getValueOf(ObjectContracts.java:204)
>>>>>>> *
>>>>>> org.apache.isis.applib.util.ObjectContracts#compare(ObjectContracts.java:45)
>>>>>>> *
>>>>>> org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:117)
>>>>>>> *
>>>>>> org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:15)
>>>>>>> *       java.util.TreeMap#put(TreeMap.java:545)
>>>>>>> *       java.util.TreeSet#add(TreeSet.java:238)
>>>>>>> *
>>>>>> org.atos.tfgm.basket.ShoppingBaskets#getBasket(ShoppingBaskets.java:150)
>>>>>>> *
>>>>>> sun.reflect.NativeMethodAccessorImpl#invoke0(NativeMethodAccessorImpl.java:-2)
>>>>>>> *
>>>>>> sun.reflect.NativeMethodAccessorImpl#invoke(NativeMethodAccessorImpl.java:39)
>>>>>>> *
>>>>>> sun.reflect.DelegatingMethodAccessorImpl#invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>>> *       java.lang.reflect.Method#invoke(Method.java:597)
>>>>>>> 
>>>>>>> 
>>>>>>> Have I implemented the relationship incorrectly or missing something.
>>>>>>> 
>>>>>>> 
>>>>>>> Regards
>>>>>>> Dharmesh
>>>>>>> 
>>>>>> 
>>>>>> 
>> 


RE: Domain Mappings 1:m Exception

Posted by "Chohan, Dharmesh" <dh...@atos.net>.
Hi Oscar

I am not getting the error and the changes work! I had the same changes but was missing the following,

dependentElement="true" in @javax.jdo.annotations.Persistent(mappedBy="shoppingBasket", dependentElement="true")	

and had a column  annotation which I remove
	
//@javax.jdo.annotations.Column(allowsNull="true")
    @MemberOrder(sequence = "3")
	public SortedSet <ShoppingBasketItem> getShoppingBasketItem() {
		return shoppingBasketItem;
	}

Thanks for your help
Dharmesh

-----Original Message-----
From: GESCONSULTOR - Óscar Bou [mailto:o.bou@gesconsultor.com] 
Sent: Tuesday, January 14, 2014 1:06 PM
To: users@isis.apache.org
Subject: Re: Domain Mappings 1:m Exception


Uppps!!! Sorry. There was a mistake on the "mappedBy" annotation's attribute.



@javax.jdo.annotations.PersistenceCapable(identityType = IdentityType.DATASTORE)
@javax.jdo.annotations.DatastoreIdentity(strategy = javax.jdo.annotations.IdGeneratorStrategy.IDENTITY, column = "id")
@javax.jdo.annotations.Version(strategy = VersionStrategy.VERSION_NUMBER, column = "version")
public class ShoppingBasket {

   // Isis Template: isjdc-1n-b-fk
   // {{ Items (Collection)
   @Persistent(mappedBy = "shoppingBasket", dependentElement = "true")
   private SortedSet<ShoppingBasketItem> items = new TreeSet<ShoppingBasketItem>();

   @MemberOrder(sequence = "1")
   public SortedSet<ShoppingBasketItem> getItems() {
       return this.items;
   }

   public void setItems(final SortedSet<ShoppingBasketItem> items) {
       this.items = items;
   }
   // }}
}


El 14/01/2014, a las 14:02, GESCONSULTOR - Óscar Bou <o....@gesconsultor.com> escribió:

> Please, verify also that the proper JDO annotations are on each class.
> 
> Try the following ones.  Both fields annotations have been automatically generated by using the Eclipse Isis templates available on [1]:
> 
> @javax.jdo.annotations.PersistenceCapable(identityType = IdentityType.DATASTORE)
> @javax.jdo.annotations.DatastoreIdentity(strategy = javax.jdo.annotations.IdGeneratorStrategy.IDENTITY, column = "id")
> @javax.jdo.annotations.Version(strategy = VersionStrategy.VERSION_NUMBER, column = "version")
> public class ShoppingBasket {
> 
>    // Isis Template: isjdc-1n-b-fk
>    // {{ Items (Collection)
>    @Persistent(mappedBy = "Items", dependentElement = "true")
>    private SortedSet<ShoppingBasketItem> items = new TreeSet<ShoppingBasketItem>();
> 
>    @MemberOrder(sequence = "1")
>    public SortedSet<ShoppingBasketItem> getItems() {
>        return this.items;
>    }
> 
>    public void setItems(final SortedSet<ShoppingBasketItem> items) {
>        this.items = items;
>    }
>    // }}
> }
> 
> 
> @javax.jdo.annotations.PersistenceCapable(identityType = IdentityType.DATASTORE)
> @javax.jdo.annotations.DatastoreIdentity(strategy = javax.jdo.annotations.IdGeneratorStrategy.IDENTITY, column = "id")
> @javax.jdo.annotations.Version(strategy = VersionStrategy.VERSION_NUMBER, column = "version")
> public class ShoppingBasketItem {
> 
>    // Isis Template: isjdp
>    // {{ ShoppingBasket (property)
>    private ShoppingBasket shoppingBasket;
> 
>    @MemberOrder(sequence = "1")
>    @Column(allowsNull = "false")
>    public ShoppingBasket getShoppingBasket() {
>        return this.shoppingBasket;
>    }
> 
>    public void setShoppingBasket(final ShoppingBasket shoppingBasket) {
>        this.shoppingBasket = shoppingBasket;
>    }
>    // }}
> 
> }
> 
> 
> 
> [1] http://isis.apache.org/getting-started/editor-templates.html
> 
> 
> El 14/01/2014, a las 11:32, Chohan, Dharmesh <dh...@atos.net> escribió:
> 
>> Thanks for your responses but my issue still exists and I am close to the problem but do not understand what the framework is doing.
>> 
>> @Dan, the framework does generate the relationship.
>> 
>> @Oscar, see class definition
>> 
>> @javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
>> @javax.jdo.annotations.DatastoreIdentity(
>>       strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY, column="id")
>> @javax.jdo.annotations.Version(
>>       strategy=VersionStrategy.VERSION_NUMBER, column="version")
>> 
>> public class ShoppingBasketItem implements Comparable<ShoppingBasketItem> {
>> 
>> 
>> 
>> CREATE TABLE "ShoppingBasketItem"
>>    [exec] (
>>    [exec]     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    [exec]     "amount" NVARCHAR(255) NOT NULL,
>>    [exec]     "cardNumber" NVARCHAR(255) NOT NULL,
>>    [exec]     "description" NVARCHAR(255) NULL,
>>    [exec]     "location" NVARCHAR(255) NOT NULL,
>>    [exec]     "shoppingBasket_id_OID" BIGINT NOT NULL,
>>    [exec]     "version" BIGINT NOT NULL,
>>    [exec]     "shoppingBasketItem_id_OID" BIGINT NULL,
>>    [exec]     CONSTRAINT "ShoppingBasketItem_PK" PRIMARY KEY ("id")
>>    [exec] )
>> 
>> CREATE TABLE "ShoppingBasket"
>>    [exec] (
>>    [exec]     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    [exec]     "cardNumber" NVARCHAR(255) NOT NULL,
>>    [exec]     "orderTotal" INTEGER NOT NULL,
>>    [exec]     "version" BIGINT NOT NULL,
>>    [exec]     CONSTRAINT "ShoppingBasket_PK" PRIMARY KEY ("id")
>>    [exec] )
>> 
>> ALTER TABLE "ShoppingBasketItem" ADD CONSTRAINT "ShoppingBasketItem_FK2" FOREIGN KEY ("shoppingBasketItem_id_OID") REFERENCES "ShoppingBasket" ("id")
>> 
>> ALTER TABLE "ShoppingBasketItem" ADD CONSTRAINT "ShoppingBasketItem_FK1" FOREIGN KEY ("shoppingBasket_id_OID") REFERENCES "ShoppingBasket" ("id")
>> 
>> INSERT INTO "ShoppingBasket" ("cardNumber","orderTotal","version") VALUES (<'123456789001'>,<15>,<1>)
>> 
>> INSERT INTO "ShoppingBasketItem" ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID") 
>> 	VALUES (<'123456789001'>,<'Please_Select'>,<'Item 1'>,<'▒5'>,<null>,<1>,<0>)
>> 
>> The error is Data already exists
>> integrity constraint violation: NOT NULL check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column: "shoppingBasket_id_OID"
>> 
>> The column shoppingBasket_id_OID is setting NULL in ShoppingBasketItem table which I am not sure where it is coming from?
>> 
>> 
>> Thanks
>> Dharmesh
>> 
>> -----Original Message-----
>> From: GESCONSULTOR - Óscar Bou [mailto:o.bou@gesconsultor.com] 
>> Sent: Tuesday, January 14, 2014 8:21 AM
>> To: users@isis.apache.org
>> Subject: Re: Domain Mappings 1:m Exception
>> 
>> 
>> 
>> Seems that the validation behavior is configurable, also for constraints, as per [1].
>> 
>> HTH,
>> 
>> Oscar
>> 
>> [1] http://www.datanucleus.org/products/accessplatform_2_2/rdbms/schema.html
>> 
>> 
>> 
>> 
>> El 14/01/2014, a las 08:23, Jeroen van der Wal <je...@stromboli.it> escribió:
>> 
>>> Just a sidenote: datanucleus only adds non-existing constraints. If
>>> you've changed your model it might be possible that you have to delete
>>> constraints manually in order to make things work.
>>> 
>>> On Mon, Jan 13, 2014 at 11:54 PM, Dan Haywood
>>> <da...@haywood-associates.co.uk> wrote:
>>>> Looking at how Estatio [1] boots up (see log below), it seems that JDO does
>>>> the CREATE TABLE first, then adds foreign key constraints afterwards using
>>>> ALTER TABLE.
>>>> 
>>>> HTH
>>>> Dan
>>>> 
>>>> [1] https://github.com/estatio/estatio
>>>> 
>>>> extract of Estatio's startup log:
>>>> 
>>>> 20:48:14,974 [Schema                        ] CREATE TABLE
>>>> "CommunicationChannel"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "description" NVARCHAR(254) NULL,
>>>>  "legal" BOOLEAN NOT NULL,
>>>>  "ownerOrganisationId" BIGINT NULL,
>>>>  "ownerPersonId" BIGINT NULL,
>>>>  "ownerPropertyId" BIGINT NULL,
>>>>  "ownerUnitId" BIGINT NULL,
>>>>  "reference" NVARCHAR(24) NULL,
>>>>  "type" NVARCHAR(30) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  "discriminator" NVARCHAR(255) NOT NULL,
>>>>  "emailAddress" NVARCHAR(50) NULL,
>>>>  "address1" NVARCHAR(100) NULL,
>>>>  "address2" NVARCHAR(100) NULL,
>>>>  "city" NVARCHAR(50) NULL,
>>>>  "countryId" BIGINT NULL,
>>>>  "postalCode" NVARCHAR(12) NULL,
>>>>  "stateId" BIGINT NULL,
>>>>  "phoneNumber" NVARCHAR(20) NULL,
>>>>  CONSTRAINT "CommunicationChannel_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:14,977 [Schema                        ] Execution Time = 3 ms
>>>> 20:48:14,982 [Schema                        ] Check of existence of
>>>> "LeaseTerm" returned no table
>>>> 20:48:14,982 [Schema                        ] Creating table "LeaseTerm"
>>>> 20:48:14,982 [Schema                        ] CREATE TABLE "LeaseTerm"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "endDate" DATE NULL,
>>>>  "frequency" NVARCHAR(30) NOT NULL,
>>>>  "leaseItemId" BIGINT NOT NULL,
>>>>  "nextLeaseTermId" BIGINT NULL,
>>>>  "sequence" NUMERIC NULL,
>>>>  "startDate" DATE NULL,
>>>>  "status" NVARCHAR(20) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  "discriminator" NVARCHAR(255) NOT NULL,
>>>>  "auditedTurnover" DECIMAL(19,2) NULL,
>>>>  "budgetedTurnover" DECIMAL(19,2) NULL,
>>>>  "contractualRent" DECIMAL(19,2) NULL,
>>>>  "turnoverRentRule" NVARCHAR(254) NULL,
>>>>  "turnoverRentValue" DECIMAL(19,2) NULL,
>>>>  "baseIndexStartDate" DATE NULL,
>>>>  "baseIndexValue" DECIMAL(19,1) NULL,
>>>>  "baseValue" DECIMAL(19,2) NULL,
>>>>  "effectiveDate" DATE NULL,
>>>>  "indexId" BIGINT NULL,
>>>>  "indexationPercentage" DECIMAL(19,1) NULL,
>>>>  "indexedValue" DECIMAL(19,2) NULL,
>>>>  "levellingPercentage" DECIMAL(19,1) NULL,
>>>>  "nextIndexStartDate" DATE NULL,
>>>>  "nextIndexValue" DECIMAL(19,1) NULL,
>>>>  "rebaseFactor" DECIMAL(19,3) NULL,
>>>>  "settledValue" DECIMAL(19,2) NULL,
>>>>  "auditedValue" DECIMAL(19,2) NULL,
>>>>  "budgetedValue" DECIMAL(19,2) NULL,
>>>>  CONSTRAINT "LeaseTerm_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:14,984 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:14,987 [Schema                        ] Check of existence of "Unit"
>>>> returned no table
>>>> 20:48:14,987 [Schema                        ] Creating table "Unit"
>>>> 20:48:14,987 [Schema                        ] CREATE TABLE "Unit"
>>>> (
>>>>  "id" BIGINT NOT NULL,
>>>>  "area" DECIMAL(19,2) NULL,
>>>>  "dehorsArea" DECIMAL(19,2) NULL,
>>>>  "endDate" DATE NULL,
>>>>  "mezzanineArea" DECIMAL(19,2) NULL,
>>>>  "propertyId" BIGINT NOT NULL,
>>>>  "salesArea" DECIMAL(19,2) NULL,
>>>>  "startDate" DATE NULL,
>>>>  "storageArea" DECIMAL(19,2) NULL,
>>>>  "type" NVARCHAR(30) NOT NULL,
>>>>  CONSTRAINT "Unit_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:14,988 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:14,991 [Schema                        ] Check of existence of
>>>> "BreakOption" returned no table
>>>> 20:48:14,991 [Schema                        ] Creating table "BreakOption"
>>>> 20:48:14,992 [Schema                        ] CREATE TABLE "BreakOption"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "breakDate" DATE NOT NULL,
>>>>  "description" NVARCHAR(254) NULL,
>>>>  "exerciseDate" DATE NOT NULL,
>>>>  "exerciseType" NVARCHAR(20) NOT NULL,
>>>>  "leaseId" BIGINT NOT NULL,
>>>>  "notificationPeriod" NVARCHAR(20) NULL,
>>>>  "type" NVARCHAR(30) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  "discriminator" NVARCHAR(255) NOT NULL,
>>>>  "reminderDate" DATE NULL,
>>>>  CONSTRAINT "BreakOption_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:14,994 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,000 [Schema                        ] Check of existence of
>>>> "InvoiceItem" returned no table
>>>> 20:48:15,000 [Schema                        ] Creating table "InvoiceItem"
>>>> 20:48:15,000 [Schema                        ] CREATE TABLE "InvoiceItem"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "chargeId" BIGINT NULL,
>>>>  "description" NVARCHAR(254) NULL,
>>>>  "dueDate" DATE NOT NULL,
>>>>  "endDate" DATE NULL,
>>>>  "grossAmount" DECIMAL(19,2) NULL,
>>>>  "invoiceId" BIGINT NULL,
>>>>  "netAmount" DECIMAL(19,2) NULL,
>>>>  "quantity" DECIMAL(19,2) NULL,
>>>>  "sequence" NUMERIC NOT NULL,
>>>>  "startDate" DATE NULL,
>>>>  "taxId" BIGINT NULL,
>>>>  "vatAmount" DECIMAL(19,2) NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  "discriminator" NVARCHAR(255) NOT NULL,
>>>>  "leaseTermId" BIGINT NULL,
>>>>  CONSTRAINT "InvoiceItem_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,002 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,007 [Schema                        ] Check of existence of "Brand"
>>>> returned no table
>>>> 20:48:15,008 [Schema                        ] Creating table "Brand"
>>>> 20:48:15,008 [Schema                        ] CREATE TABLE "Brand"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Brand_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,009 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,013 [Schema                        ] Check of existence of
>>>> "FixedAssetRole" returned no table
>>>> 20:48:15,013 [Schema                        ] Creating table
>>>> "FixedAssetRole"
>>>> 20:48:15,013 [Schema                        ] CREATE TABLE "FixedAssetRole"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "assetId" BIGINT NOT NULL,
>>>>  "endDate" DATE NULL,
>>>>  "partyId" BIGINT NOT NULL,
>>>>  "startDate" DATE NULL,
>>>>  "type" NVARCHAR(30) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "FixedAssetRole_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,015 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,019 [Schema                        ] Check of existence of
>>>> "Numerator" returned no table
>>>> 20:48:15,019 [Schema                        ] Creating table "Numerator"
>>>> 20:48:15,019 [Schema                        ] CREATE TABLE "Numerator"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "format" NVARCHAR(30) NOT NULL,
>>>>  "lastIncrement" NUMERIC NOT NULL,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "objectIdentifier" NVARCHAR(20) NULL,
>>>>  "objectType" NVARCHAR(254) NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Numerator_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,020 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,022 [Schema                        ] Check of existence of
>>>> "Agreement" returned no table
>>>> 20:48:15,022 [Schema                        ] Creating table "Agreement"
>>>> 20:48:15,022 [Schema                        ] CREATE TABLE "Agreement"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "endDate" DATE NULL,
>>>>  "name" NVARCHAR(50) NULL,
>>>>  "nextAgreementId" BIGINT NULL,
>>>>  "reference" NVARCHAR(24) NOT NULL,
>>>>  "startDate" DATE NULL,
>>>>  "typeId" BIGINT NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  "discriminator" NVARCHAR(255) NOT NULL,
>>>>  CONSTRAINT "Agreement_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,023 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,025 [Schema                        ] Check of existence of
>>>> "BankMandate" returned no table
>>>> 20:48:15,025 [Schema                        ] Creating table "BankMandate"
>>>> 20:48:15,025 [Schema                        ] CREATE TABLE "BankMandate"
>>>> (
>>>>  "id" BIGINT NOT NULL,
>>>>  "bankAccountId" BIGINT NOT NULL,
>>>>  CONSTRAINT "BankMandate_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,026 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,028 [Schema                        ] Check of existence of "Event"
>>>> returned no table
>>>> 20:48:15,028 [Schema                        ] Creating table "Event"
>>>> 20:48:15,028 [Schema                        ] CREATE TABLE "Event"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "calendarName" NVARCHAR(254) NOT NULL,
>>>>  "date" DATE NOT NULL,
>>>>  "notes" NVARCHAR(4000) NULL,
>>>>  "subjectBreakOptionId" BIGINT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Event_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,029 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,031 [Schema                        ] Check of existence of
>>>> "ChargeGroup" returned no table
>>>> 20:48:15,031 [Schema                        ] Creating table "ChargeGroup"
>>>> 20:48:15,031 [Schema                        ] CREATE TABLE "ChargeGroup"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "reference" NVARCHAR(24) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "ChargeGroup_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,032 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,034 [Schema                        ] Check of existence of
>>>> "UserSetting" returned no table
>>>> 20:48:15,034 [Schema                        ] Creating table "UserSetting"
>>>> 20:48:15,034 [Schema                        ] CREATE TABLE "UserSetting"
>>>> (
>>>>  "key" NVARCHAR(128) NOT NULL,
>>>>  "user" NVARCHAR(50) NOT NULL,
>>>>  "description" NVARCHAR(254) NULL,
>>>>  "type" NVARCHAR(20) NOT NULL,
>>>>  "valueRaw" NVARCHAR(255) NOT NULL,
>>>>  CONSTRAINT "UserSetting_PK" PRIMARY KEY ("key","user")
>>>> )
>>>> 20:48:15,035 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,038 [Schema                        ] Check of existence of
>>>> "Currency" returned no table
>>>> 20:48:15,038 [Schema                        ] Creating table "Currency"
>>>> 20:48:15,038 [Schema                        ] CREATE TABLE "Currency"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "reference" NVARCHAR(24) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Currency_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,039 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,043 [Schema                        ] Check of existence of
>>>> "TaxRate" returned no table
>>>> 20:48:15,043 [Schema                        ] Creating table "TaxRate"
>>>> 20:48:15,043 [Schema                        ] CREATE TABLE "TaxRate"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "endDate" DATE NULL,
>>>>  "externalReference" NVARCHAR(50) NULL,
>>>>  "nextTaxRateId" BIGINT NULL,
>>>>  "percentage" DECIMAL(19,2) NULL,
>>>>  "startDate" DATE NULL,
>>>>  "taxId" BIGINT NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "TaxRate_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,043 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,046 [Schema                        ] Check of existence of
>>>> "PartyRegistration" returned no table
>>>> 20:48:15,046 [Schema                        ] Creating table
>>>> "PartyRegistration"
>>>> 20:48:15,046 [Schema                        ] CREATE TABLE
>>>> "PartyRegistration"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "endDate" DATE NULL,
>>>>  "partyId" BIGINT NOT NULL,
>>>>  "startDate" DATE NULL,
>>>>  "type" NVARCHAR(30) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "PartyRegistration_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,047 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,050 [Schema                        ] Check of existence of
>>>> "AgreementRoleType" returned no table
>>>> 20:48:15,050 [Schema                        ] Creating table
>>>> "AgreementRoleType"
>>>> 20:48:15,050 [Schema                        ] CREATE TABLE
>>>> "AgreementRoleType"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "appliesToAgreementTypeId" BIGINT NOT NULL,
>>>>  "title" NVARCHAR(50) NOT NULL,
>>>>  CONSTRAINT "AgreementRoleType_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,051 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,055 [Schema                        ] Check of existence of
>>>> "AuditEntry" returned no table
>>>> 20:48:15,055 [Schema                        ] Creating table "AuditEntry"
>>>> 20:48:15,056 [Schema                        ] CREATE TABLE "AuditEntry"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "identifier" NVARCHAR(20) NOT NULL,
>>>>  "objectType" NVARCHAR(254) NOT NULL,
>>>>  "postValue" NVARCHAR(255) NULL,
>>>>  "preValue" NVARCHAR(255) NULL,
>>>>  "timestampEpoch" BIGINT NOT NULL,
>>>>  "user" NVARCHAR(50) NULL,
>>>>  CONSTRAINT "AuditEntry_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,057 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,060 [Schema                        ] Check of existence of
>>>> "FinancialAccount" returned no table
>>>> 20:48:15,060 [Schema                        ] Creating table
>>>> "FinancialAccount"
>>>> 20:48:15,060 [Schema                        ] CREATE TABLE
>>>> "FinancialAccount"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "ownerPartyId" BIGINT NOT NULL,
>>>>  "reference" NVARCHAR(24) NOT NULL,
>>>>  "type" NVARCHAR(30) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  "discriminator" NVARCHAR(255) NOT NULL,
>>>>  CONSTRAINT "FinancialAccount_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,062 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,068 [Schema                        ] Check of existence of
>>>> "BankAccount" returned no table
>>>> 20:48:15,068 [Schema                        ] Creating table "BankAccount"
>>>> 20:48:15,068 [Schema                        ] CREATE TABLE "BankAccount"
>>>> (
>>>>  "id" BIGINT NOT NULL,
>>>>  "accountNumber" NVARCHAR(20) NULL,
>>>>  "bankPartyId" BIGINT NULL,
>>>>  "bankAccountType" NVARCHAR(30) NOT NULL,
>>>>  "branchCode" NVARCHAR(20) NULL,
>>>>  "countryId" BIGINT NULL,
>>>>  "iban" NVARCHAR(32) NULL,
>>>>  "nationalBankCode" NVARCHAR(20) NULL,
>>>>  "nationalCheckCode" NVARCHAR(20) NULL,
>>>>  "fixedAssetId" BIGINT NULL,
>>>>  CONSTRAINT "BankAccount_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,070 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,072 [Schema                        ] Check of existence of
>>>> "UnitSize" returned no table
>>>> 20:48:15,072 [Schema                        ] Creating table "UnitSize"
>>>> 20:48:15,072 [Schema                        ] CREATE TABLE "UnitSize"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "UnitSize_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,073 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,075 [Schema                        ] Check of existence of
>>>> "ApplicationSetting" returned no table
>>>> 20:48:15,075 [Schema                        ] Creating table
>>>> "ApplicationSetting"
>>>> 20:48:15,075 [Schema                        ] CREATE TABLE
>>>> "ApplicationSetting"
>>>> (
>>>>  "key" NVARCHAR(128) NOT NULL,
>>>>  "description" NVARCHAR(254) NULL,
>>>>  "type" NVARCHAR(20) NOT NULL,
>>>>  "valueRaw" NVARCHAR(255) NOT NULL,
>>>>  CONSTRAINT "ApplicationSetting_PK" PRIMARY KEY ("key")
>>>> )
>>>> 20:48:15,076 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,079 [Schema                        ] Check of existence of
>>>> "FixedAsset" returned no table
>>>> 20:48:15,079 [Schema                        ] Creating table "FixedAsset"
>>>> 20:48:15,079 [Schema                        ] CREATE TABLE "FixedAsset"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "reference" NVARCHAR(24) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  "discriminator" NVARCHAR(255) NOT NULL,
>>>>  CONSTRAINT "FixedAsset_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,080 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,082 [Schema                        ] Check of existence of
>>>> "Property" returned no table
>>>> 20:48:15,082 [Schema                        ] Creating table "Property"
>>>> 20:48:15,082 [Schema                        ] CREATE TABLE "Property"
>>>> (
>>>>  "id" BIGINT NOT NULL,
>>>>  "acquireDate" DATE NULL,
>>>>  "area" DECIMAL(19,2) NULL,
>>>>  "city" NVARCHAR(50) NULL,
>>>>  "countryId" BIGINT NULL,
>>>>  "disposalDate" DATE NULL,
>>>>  "location" BLOB NULL,
>>>>  "openingDate" DATE NULL,
>>>>  "type" NVARCHAR(30) NOT NULL,
>>>>  CONSTRAINT "Property_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,083 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,085 [Schema                        ] Check of existence of
>>>> "LeaseAssignment" returned no table
>>>> 20:48:15,085 [Schema                        ] Creating table
>>>> "LeaseAssignment"
>>>> 20:48:15,085 [Schema                        ] CREATE TABLE "LeaseAssignment"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "assignmentDate" DATE NOT NULL,
>>>>  "nextLeaseId" BIGINT NULL,
>>>>  "previousLeaseId" BIGINT NULL,
>>>>  "type" NVARCHAR(30) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "LeaseAssignment_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,086 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,087 [Schema                        ] Check of existence of "State"
>>>> returned no table
>>>> 20:48:15,087 [Schema                        ] Creating table "State"
>>>> 20:48:15,087 [Schema                        ] CREATE TABLE "State"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "countryId" BIGINT NOT NULL,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "reference" NVARCHAR(6) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "State_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,088 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,090 [Schema                        ] Check of existence of
>>>> "LeaseStatusReason" returned no table
>>>> 20:48:15,090 [Schema                        ] Creating table
>>>> "LeaseStatusReason"
>>>> 20:48:15,090 [Schema                        ] CREATE TABLE
>>>> "LeaseStatusReason"
>>>> (
>>>>  "LeaseStatusReason_ID" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "leaseId" BIGINT NOT NULL,
>>>>  "reason" NVARCHAR(4000) NOT NULL,
>>>>  "status" NVARCHAR(20) NOT NULL,
>>>>  "timestamp" BIGINT NOT NULL,
>>>>  "user" NVARCHAR(50) NOT NULL,
>>>>  CONSTRAINT "LeaseStatusReason_PK" PRIMARY KEY ("LeaseStatusReason_ID")
>>>> )
>>>> 20:48:15,091 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,092 [Schema                        ] Check of existence of
>>>> "Activity" returned no table
>>>> 20:48:15,092 [Schema                        ] Creating table "Activity"
>>>> 20:48:15,093 [Schema                        ] CREATE TABLE "Activity"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "sectorId" BIGINT NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Activity_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,093 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,095 [Schema                        ] Check of existence of "Party"
>>>> returned no table
>>>> 20:48:15,095 [Schema                        ] Creating table "Party"
>>>> 20:48:15,095 [Schema                        ] CREATE TABLE "Party"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "name" NVARCHAR(80) NOT NULL,
>>>>  "reference" NVARCHAR(24) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  "discriminator" NVARCHAR(255) NOT NULL,
>>>>  CONSTRAINT "Party_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,096 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,098 [Schema                        ] Check of existence of
>>>> "Organisation" returned no table
>>>> 20:48:15,098 [Schema                        ] Creating table "Organisation"
>>>> 20:48:15,098 [Schema                        ] CREATE TABLE "Organisation"
>>>> (
>>>>  "id" BIGINT NOT NULL,
>>>>  "fiscalCode" NVARCHAR(30) NULL,
>>>>  "vatCode" NVARCHAR(30) NULL,
>>>>  CONSTRAINT "Organisation_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,099 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,101 [Schema                        ] Check of existence of
>>>> "FixedAssetRegistrationType" returned no table
>>>> 20:48:15,101 [Schema                        ] Creating table
>>>> "FixedAssetRegistrationType"
>>>> 20:48:15,101 [Schema                        ] CREATE TABLE
>>>> "FixedAssetRegistrationType"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "fullyQualifiedClassName" NVARCHAR(254) NOT NULL,
>>>>  "title" NVARCHAR(50) NOT NULL,
>>>>  CONSTRAINT "FixedAssetRegistrationType_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,103 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,105 [Schema                        ] Check of existence of
>>>> "FixedAssetRegistration" returned no table
>>>> 20:48:15,105 [Schema                        ] Creating table
>>>> "FixedAssetRegistration"
>>>> 20:48:15,106 [Schema                        ] CREATE TABLE
>>>> "FixedAssetRegistration"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "subjectId" BIGINT NOT NULL,
>>>>  "typeId" BIGINT NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  "discriminator" NVARCHAR(255) NOT NULL,
>>>>  CONSTRAINT "FixedAssetRegistration_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,107 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,109 [Schema                        ] Check of existence of
>>>> "LandRegister" returned no table
>>>> 20:48:15,109 [Schema                        ] Creating table "LandRegister"
>>>> 20:48:15,110 [Schema                        ] CREATE TABLE "LandRegister"
>>>> (
>>>>  "id" BIGINT NOT NULL,
>>>>  "categoria" NVARCHAR(255) NULL,
>>>>  "classe" NVARCHAR(255) NULL,
>>>>  "codiceComuneCatastale" NVARCHAR(255) NULL,
>>>>  "comuneAmministrativo" NVARCHAR(255) NULL,
>>>>  "comuneCatastale" NVARCHAR(255) NULL,
>>>>  "consistenza" NVARCHAR(255) NULL,
>>>>  "foglio" NVARCHAR(255) NULL,
>>>>  "particella" NVARCHAR(255) NULL,
>>>>  "rendita" NVARCHAR(255) NULL,
>>>>  "subalterno" NVARCHAR(255) NULL,
>>>>  CONSTRAINT "LandRegister_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,110 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,112 [Schema                        ] Check of existence of "Tag"
>>>> returned no table
>>>> 20:48:15,112 [Schema                        ] Creating table "Tag"
>>>> 20:48:15,112 [Schema                        ] CREATE TABLE "Tag"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "objectType" NVARCHAR(254) NOT NULL,
>>>>  "taggable_Occupancy_id_EID" BIGINT NULL,
>>>>  "value" NVARCHAR(255) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Tag_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,114 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,116 [Schema                        ] Check of existence of
>>>> "Charge" returned no table
>>>> 20:48:15,116 [Schema                        ] Creating table "Charge"
>>>> 20:48:15,116 [Schema                        ] CREATE TABLE "Charge"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "description" NVARCHAR(254) NOT NULL,
>>>>  "externalReference" NVARCHAR(50) NULL,
>>>>  "groupId" BIGINT NOT NULL,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "reference" NVARCHAR(24) NOT NULL,
>>>>  "sortOrder" NVARCHAR(24) NULL,
>>>>  "taxId" BIGINT NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Charge_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,117 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,120 [Schema                        ] Check of existence of
>>>> "IndexValue" returned no table
>>>> 20:48:15,120 [Schema                        ] Creating table "IndexValue"
>>>> 20:48:15,120 [Schema                        ] CREATE TABLE "IndexValue"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "indexBaseId" BIGINT NOT NULL,
>>>>  "startDate" DATE NOT NULL,
>>>>  "value" DECIMAL(19,4) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "IndexValue_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,121 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,124 [Schema                        ] Check of existence of "Tax"
>>>> returned no table
>>>> 20:48:15,124 [Schema                        ] Creating table "Tax"
>>>> 20:48:15,124 [Schema                        ] CREATE TABLE "Tax"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "externalReference" NVARCHAR(50) NULL,
>>>>  "name" NVARCHAR(50) NULL,
>>>>  "reference" NVARCHAR(24) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Tax_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,125 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,127 [Schema                        ] Check of existence of
>>>> "Invoice" returned no table
>>>> 20:48:15,127 [Schema                        ] Creating table "Invoice"
>>>> 20:48:15,127 [Schema                        ] CREATE TABLE "Invoice"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "buyerPartyId" BIGINT NOT NULL,
>>>>  "collectionNumber" NVARCHAR(16) NULL,
>>>>  "currencyId" BIGINT NULL,
>>>>  "dueDate" DATE NOT NULL,
>>>>  "invoiceDate" DATE NULL,
>>>>  "invoiceNumber" NVARCHAR(16) NULL,
>>>>  "lastItemSequence" NUMERIC NULL,
>>>>  "sourceLeaseId" BIGINT NULL,
>>>>  "paymentMethod" NVARCHAR(30) NOT NULL,
>>>>  "sellerPartyId" BIGINT NOT NULL,
>>>>  "status" NVARCHAR(20) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Invoice_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,129 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,130 [Schema                        ] Check of existence of
>>>> "Person" returned no table
>>>> 20:48:15,130 [Schema                        ] Creating table "Person"
>>>> 20:48:15,131 [Schema                        ] CREATE TABLE "Person"
>>>> (
>>>>  "id" BIGINT NOT NULL,
>>>>  "firstName" NVARCHAR(50) NULL,
>>>>  "gender" NVARCHAR(30) NOT NULL,
>>>>  "initials" NVARCHAR(3) NULL,
>>>>  "lastName" NVARCHAR(50) NOT NULL,
>>>>  CONSTRAINT "Person_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,131 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,133 [Schema                        ] Check of existence of
>>>> "Country" returned no table
>>>> 20:48:15,133 [Schema                        ] Creating table "Country"
>>>> 20:48:15,134 [Schema                        ] CREATE TABLE "Country"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "alpha2Code" NVARCHAR(2) NOT NULL,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "reference" NVARCHAR(24) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Country_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,135 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,137 [Schema                        ] Check of existence of "Lease"
>>>> returned no table
>>>> 20:48:15,137 [Schema                        ] Creating table "Lease"
>>>> 20:48:15,137 [Schema                        ] CREATE TABLE "Lease"
>>>> (
>>>>  "id" BIGINT NOT NULL,
>>>>  "leaseTypeId" BIGINT NULL,
>>>>  "paidByBankMandateId" BIGINT NULL,
>>>>  "status" NVARCHAR(20) NOT NULL,
>>>>  "tenancyEndDate" DATE NULL,
>>>>  "tenancyStartDate" DATE NULL,
>>>>  CONSTRAINT "Lease_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,138 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,140 [Schema                        ] Check of existence of
>>>> "LeaseItem" returned no table
>>>> 20:48:15,140 [Schema                        ] Creating table "LeaseItem"
>>>> 20:48:15,140 [Schema                        ] CREATE TABLE "LeaseItem"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "chargeId" BIGINT NOT NULL,
>>>>  "endDate" DATE NULL,
>>>>  "epochDate" DATE NULL,
>>>>  "invoicingFrequency" NVARCHAR(30) NOT NULL,
>>>>  "leaseId" BIGINT NOT NULL,
>>>>  "nextDueDate" DATE NULL,
>>>>  "paymentMethod" NVARCHAR(30) NOT NULL,
>>>>  "sequence" NUMERIC NOT NULL,
>>>>  "startDate" DATE NULL,
>>>>  "status" NVARCHAR(20) NOT NULL,
>>>>  "type" NVARCHAR(30) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "LeaseItem_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,142 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,144 [Schema                        ] Check of existence of
>>>> "AgreementRoleCommunicationChannelType" returned no table
>>>> 20:48:15,144 [Schema                        ] Creating table
>>>> "AgreementRoleCommunicationChannelType"
>>>> 20:48:15,144 [Schema                        ] CREATE TABLE
>>>> "AgreementRoleCommunicationChannelType"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "appliesToAgreementTypeId" BIGINT NOT NULL,
>>>>  "title" NVARCHAR(50) NOT NULL,
>>>>  CONSTRAINT "AgreementRoleCommunicationChannelType_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,145 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,148 [Schema                        ] Check of existence of
>>>> "LeaseType" returned no table
>>>> 20:48:15,148 [Schema                        ] Creating table "LeaseType"
>>>> 20:48:15,148 [Schema                        ] CREATE TABLE "LeaseType"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "reference" NVARCHAR(24) NOT NULL,
>>>>  CONSTRAINT "LeaseType_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,149 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,151 [Schema                        ] Check of existence of
>>>> "AgreementRoleCommunicationChannel" returned no table
>>>> 20:48:15,151 [Schema                        ] Creating table
>>>> "AgreementRoleCommunicationChannel"
>>>> 20:48:15,151 [Schema                        ] CREATE TABLE
>>>> "AgreementRoleCommunicationChannel"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "communicationChannelId" BIGINT NOT NULL,
>>>>  "endDate" DATE NULL,
>>>>  "agreementRoleId" BIGINT NOT NULL,
>>>>  "startDate" DATE NULL,
>>>>  "typeId" BIGINT NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "AgreementRoleCommunicationChannel_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,153 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,155 [Schema                        ] Check of existence of
>>>> "AgreementType" returned no table
>>>> 20:48:15,155 [Schema                        ] Creating table "AgreementType"
>>>> 20:48:15,155 [Schema                        ] CREATE TABLE "AgreementType"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "title" NVARCHAR(50) NOT NULL,
>>>>  CONSTRAINT "AgreementType_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,156 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,158 [Schema                        ] Check of existence of
>>>> "Occupancy" returned no table
>>>> 20:48:15,158 [Schema                        ] Creating table "Occupancy"
>>>> 20:48:15,158 [Schema                        ] CREATE TABLE "Occupancy"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "activityId" BIGINT NULL,
>>>>  "brandId" BIGINT NULL,
>>>>  "endDate" DATE NULL,
>>>>  "leaseId" BIGINT NOT NULL,
>>>>  "reportOCR" NVARCHAR(30) NOT NULL,
>>>>  "reportRent" NVARCHAR(30) NOT NULL,
>>>>  "reportTurnover" NVARCHAR(30) NOT NULL,
>>>>  "sectorId" BIGINT NULL,
>>>>  "startDate" DATE NULL,
>>>>  "unitId" BIGINT NOT NULL,
>>>>  "unitSizeId" BIGINT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Occupancy_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,160 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,161 [Schema                        ] Check of existence of
>>>> "IndexBase" returned no table
>>>> 20:48:15,161 [Schema                        ] Creating table "IndexBase"
>>>> 20:48:15,161 [Schema                        ] CREATE TABLE "IndexBase"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "factor" DECIMAL(19,4) NULL,
>>>>  "indexId" BIGINT NOT NULL,
>>>>  "nextIndexBaseId" BIGINT NULL,
>>>>  "startDate" DATE NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "IndexBase_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,162 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,164 [Schema                        ] Check of existence of "Index"
>>>> returned no table
>>>> 20:48:15,164 [Schema                        ] Creating table "Index"
>>>> 20:48:15,164 [Schema                        ] CREATE TABLE "Index"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "reference" NVARCHAR(24) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Index_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,165 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,167 [Schema                        ] Check of existence of
>>>> "AgreementRole" returned no table
>>>> 20:48:15,167 [Schema                        ] Creating table "AgreementRole"
>>>> 20:48:15,167 [Schema                        ] CREATE TABLE "AgreementRole"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "agreementId" BIGINT NOT NULL,
>>>>  "endDate" DATE NULL,
>>>>  "partyId" BIGINT NOT NULL,
>>>>  "startDate" DATE NULL,
>>>>  "typeId" BIGINT NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "AgreementRole_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,168 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,170 [Schema                        ] Check of existence of
>>>> "Sector" returned no table
>>>> 20:48:15,170 [Schema                        ] Creating table "Sector"
>>>> 20:48:15,170 [Schema                        ] CREATE TABLE "Sector"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Sector_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,171 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,176 [Schema                        ] Creating foreign key
>>>> constraint : "CommunicationChannel_FK2" in catalog "" schema ""
>>>> 20:48:15,176 [Schema                        ] ALTER TABLE
>>>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK2" FOREIGN
>>>> KEY ("stateId") REFERENCES "State" ("id")
>>>> 20:48:15,178 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,178 [Schema                        ] Creating foreign key
>>>> constraint : "CommunicationChannel_FK1" in catalog "" schema ""
>>>> 20:48:15,178 [Schema                        ] ALTER TABLE
>>>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK1" FOREIGN
>>>> KEY ("countryId") REFERENCES "Country" ("id")
>>>> 20:48:15,180 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,180 [Schema                        ] Creating foreign key
>>>> constraint : "CommunicationChannel_FK4" in catalog "" schema ""
>>>> 20:48:15,180 [Schema                        ] ALTER TABLE
>>>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK4" FOREIGN
>>>> KEY ("ownerPersonId") REFERENCES "Person" ("id")
>>>> 20:48:15,181 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,181 [Schema                        ] Creating foreign key
>>>> constraint : "CommunicationChannel_FK3" in catalog "" schema ""
>>>> 20:48:15,181 [Schema                        ] ALTER TABLE
>>>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK3" FOREIGN
>>>> KEY ("ownerOrganisationId") REFERENCES "Organisation" ("id")
>>>> 20:48:15,182 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,182 [Schema                        ] Creating foreign key
>>>> constraint : "CommunicationChannel_FK6" in catalog "" schema ""
>>>> 20:48:15,182 [Schema                        ] ALTER TABLE
>>>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK6" FOREIGN
>>>> KEY ("ownerUnitId") REFERENCES "Unit" ("id")
>>>> 20:48:15,183 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,183 [Schema                        ] Creating foreign key
>>>> constraint : "CommunicationChannel_FK5" in catalog "" schema ""
>>>> 20:48:15,183 [Schema                        ] ALTER TABLE
>>>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK5" FOREIGN
>>>> KEY ("ownerPropertyId") REFERENCES "Property" ("id")
>>>> 20:48:15,184 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,186 [Schema                        ] Creating index
>>>> "CommunicationChannel_N53" in catalog "" schema ""
>>>> 20:48:15,186 [Schema                        ] CREATE INDEX
>>>> "CommunicationChannel_N53" ON "CommunicationChannel" ("countryId")
>>>> 20:48:15,187 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,187 [Schema                        ] Creating index
>>>> "CommunicationChannel_N54" in catalog "" schema ""
>>>> 20:48:15,187 [Schema                        ] CREATE INDEX
>>>> "CommunicationChannel_N54" ON "CommunicationChannel" ("ownerUnitId")
>>>> 20:48:15,187 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,187 [Schema                        ] Creating index
>>>> "CommunicationChannel_N51" in catalog "" schema ""
>>>> 20:48:15,187 [Schema                        ] CREATE INDEX
>>>> "CommunicationChannel_N51" ON "CommunicationChannel" ("ownerPropertyId")
>>>> 20:48:15,187 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,187 [Schema                        ] Creating index
>>>> "CommunicationChannel_N52" in catalog "" schema ""
>>>> 20:48:15,187 [Schema                        ] CREATE INDEX
>>>> "CommunicationChannel_N52" ON "CommunicationChannel" ("stateId")
>>>> 20:48:15,188 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,188 [Schema                        ] Creating index
>>>> "PhoneNumber_phoneNumber_IDX" in catalog "" schema ""
>>>> 20:48:15,188 [Schema                        ] CREATE INDEX
>>>> "PhoneNumber_phoneNumber_IDX" ON "CommunicationChannel" ("phoneNumber")
>>>> 20:48:15,188 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,188 [Schema                        ] Creating index
>>>> "PostalAddress_main_idx" in catalog "" schema ""
>>>> 20:48:15,188 [Schema                        ] CREATE INDEX
>>>> "PostalAddress_main_idx" ON "CommunicationChannel"
>>>> ("ownerOrganisationId","ownerPersonId","ownerPropertyId","ownerUnitId","address1","postalCode","city","countryId")
>>>> 20:48:15,188 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,188 [Schema                        ] Creating index
>>>> "CommunicationChannel_N49" in catalog "" schema ""
>>>> 20:48:15,188 [Schema                        ] CREATE INDEX
>>>> "CommunicationChannel_N49" ON "CommunicationChannel" ("ownerOrganisationId")
>>>> 20:48:15,189 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,189 [Schema                        ] Creating index
>>>> "CommunicationChannel_N50" in catalog "" schema ""
>>>> 20:48:15,189 [Schema                        ] CREATE INDEX
>>>> "CommunicationChannel_N50" ON "CommunicationChannel" ("ownerPersonId")
>>>> 20:48:15,189 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,189 [Schema                        ] Creating index
>>>> "EmailAddress_emailAddress_IDX" in catalog "" schema ""
>>>> 20:48:15,189 [Schema                        ] CREATE INDEX
>>>> "EmailAddress_emailAddress_IDX" ON "CommunicationChannel" ("emailAddress")
>>>> 20:48:15,190 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,190 [Schema                        ] Creating foreign key
>>>> constraint : "LeaseTerm_FK2" in catalog "" schema ""
>>>> 20:48:15,190 [Schema                        ] ALTER TABLE "LeaseTerm" ADD
>>>> CONSTRAINT "LeaseTerm_FK2" FOREIGN KEY ("indexId") REFERENCES "Index"
>>>> ("id")
>>>> 20:48:15,192 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,192 [Schema                        ] Creating foreign key
>>>> constraint : "LeaseTerm_FK3" in catalog "" schema ""
>>>> 20:48:15,192 [Schema                        ] ALTER TABLE "LeaseTerm" ADD
>>>> CONSTRAINT "LeaseTerm_FK3" FOREIGN KEY ("nextLeaseTermId") REFERENCES
>>>> "LeaseTerm" ("id")
>>>> 20:48:15,194 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,194 [Schema                        ] Creating foreign key
>>>> constraint : "LeaseTerm_FK1" in catalog "" schema ""
>>>> 20:48:15,194 [Schema                        ] ALTER TABLE "LeaseTerm" ADD
>>>> CONSTRAINT "LeaseTerm_FK1" FOREIGN KEY ("leaseItemId") REFERENCES
>>>> "LeaseItem" ("id")
>>>> 20:48:15,195 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,196 [Schema                        ] Creating index
>>>> "LeaseTerm_N50" in catalog "" schema ""
>>>> 20:48:15,196 [Schema                        ] CREATE INDEX "LeaseTerm_N50"
>>>> ON "LeaseTerm" ("indexId")
>>>> 20:48:15,196 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,196 [Schema                        ] Creating index
>>>> "LeaseTerm_leaseItem_startDate_IDX" in catalog "" schema ""
>>>> 20:48:15,196 [Schema                        ] CREATE INDEX
>>>> "LeaseTerm_leaseItem_startDate_IDX" ON "LeaseTerm"
>>>> ("leaseItemId","startDate")
>>>> 20:48:15,196 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,196 [Schema                        ] Creating index
>>>> "LeaseTerm_N51" in catalog "" schema ""
>>>> 20:48:15,196 [Schema                        ] CREATE INDEX "LeaseTerm_N51"
>>>> ON "LeaseTerm" ("leaseItemId")
>>>> 20:48:15,197 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,197 [Schema                        ] Creating index
>>>> "LeaseTerm_N49" in catalog "" schema ""
>>>> 20:48:15,197 [Schema                        ] CREATE INDEX "LeaseTerm_N49"
>>>> ON "LeaseTerm" ("nextLeaseTermId")
>>>> 20:48:15,197 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,197 [Schema                        ] Creating index
>>>> "LeaseTerm_leaseItem_sequence_IDX" in catalog "" schema ""
>>>> 20:48:15,197 [Schema                        ] CREATE INDEX
>>>> "LeaseTerm_leaseItem_sequence_IDX" ON "LeaseTerm" ("leaseItemId","sequence")
>>>> 20:48:15,197 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,198 [Schema                        ] Creating foreign key
>>>> constraint : "Unit_FK1" in catalog "" schema ""
>>>> 20:48:15,198 [Schema                        ] ALTER TABLE "Unit" ADD
>>>> CONSTRAINT "Unit_FK1" FOREIGN KEY ("id") REFERENCES "FixedAsset" ("id")
>>>> 20:48:15,199 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,199 [Schema                        ] Creating foreign key
>>>> constraint : "Unit_FK2" in catalog "" schema ""
>>>> 20:48:15,199 [Schema                        ] ALTER TABLE "Unit" ADD
>>>> CONSTRAINT "Unit_FK2" FOREIGN KEY ("propertyId") REFERENCES "Property"
>>>> ("id")
>>>> 20:48:15,200 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,200 [Schema                        ] Creating index "Unit_N49" in
>>>> catalog "" schema ""
>>>> 20:48:15,200 [Schema                        ] CREATE INDEX "Unit_N49" ON
>>>> "Unit" ("propertyId")
>>>> 20:48:15,200 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,200 [Schema                        ] Unique metadata defined to
>>>> use field notificationDate which doesn't exist in this class
>>>> 20:48:15,200 [Schema                        ] Creating foreign key
>>>> constraint : "BreakOption_FK1" in catalog "" schema ""
>>>> 20:48:15,200 [Schema                        ] ALTER TABLE "BreakOption" ADD
>>>> CONSTRAINT "BreakOption_FK1" FOREIGN KEY ("leaseId") REFERENCES "Lease"
>>>> ("id")
>>>> 20:48:15,202 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,202 [Schema                        ] Creating index
>>>> "BreakOption_N49" in catalog "" schema ""
>>>> 20:48:15,202 [Schema                        ] CREATE INDEX
>>>> "BreakOption_N49" ON "BreakOption" ("leaseId")
>>>> 20:48:15,203 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,203 [Schema                        ] Creating foreign key
>>>> constraint : "InvoiceItem_FK4" in catalog "" schema ""
>>>> 20:48:15,203 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
>>>> CONSTRAINT "InvoiceItem_FK4" FOREIGN KEY ("invoiceId") REFERENCES "Invoice"
>>>> ("id")
>>>> 20:48:15,204 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,204 [Schema                        ] Creating foreign key
>>>> constraint : "InvoiceItem_FK3" in catalog "" schema ""
>>>> 20:48:15,204 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
>>>> CONSTRAINT "InvoiceItem_FK3" FOREIGN KEY ("leaseTermId") REFERENCES
>>>> "LeaseTerm" ("id")
>>>> 20:48:15,205 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,205 [Schema                        ] Creating foreign key
>>>> constraint : "InvoiceItem_FK2" in catalog "" schema ""
>>>> 20:48:15,205 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
>>>> CONSTRAINT "InvoiceItem_FK2" FOREIGN KEY ("chargeId") REFERENCES "Charge"
>>>> ("id")
>>>> 20:48:15,206 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,206 [Schema                        ] Creating foreign key
>>>> constraint : "InvoiceItem_FK1" in catalog "" schema ""
>>>> 20:48:15,206 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
>>>> CONSTRAINT "InvoiceItem_FK1" FOREIGN KEY ("taxId") REFERENCES "Tax" ("id")
>>>> 20:48:15,207 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,208 [Schema                        ] Creating index
>>>> "InvoiceItem_N51" in catalog "" schema ""
>>>> 20:48:15,208 [Schema                        ] CREATE INDEX
>>>> "InvoiceItem_N51" ON "InvoiceItem" ("taxId")
>>>> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,208 [Schema                        ] Creating index
>>>> "InvoiceItem_N50" in catalog "" schema ""
>>>> 20:48:15,208 [Schema                        ] CREATE INDEX
>>>> "InvoiceItem_N50" ON "InvoiceItem" ("invoiceId")
>>>> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,208 [Schema                        ] Creating index
>>>> "InvoiceItem_N52" in catalog "" schema ""
>>>> 20:48:15,208 [Schema                        ] CREATE INDEX
>>>> "InvoiceItem_N52" ON "InvoiceItem" ("leaseTermId")
>>>> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,208 [Schema                        ] Creating index
>>>> "InvoiceItemForLease_LeaseTerm_StartDate_EndDate_DueDate_IDX" in catalog ""
>>>> schema ""
>>>> 20:48:15,208 [Schema                        ] CREATE INDEX
>>>> "InvoiceItemForLease_LeaseTerm_StartDate_EndDate_DueDate_IDX" ON
>>>> "InvoiceItem" ("leaseTermId","startDate","endDate","dueDate")
>>>> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,208 [Schema                        ] Creating index
>>>> "InvoiceItem_N49" in catalog "" schema ""
>>>> 20:48:15,208 [Schema                        ] CREATE INDEX
>>>> "InvoiceItem_N49" ON "InvoiceItem" ("chargeId")
>>>> 20:48:15,209 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,209 [Schema                        ] Creating candidate key
>>>> "Brand_name_UNQ" in catalog "" schema ""
>>>> 20:48:15,209 [Schema                        ] ALTER TABLE "Brand" ADD
>>>> CONSTRAINT "Brand_name_UNQ" UNIQUE ("name")
>>>> 20:48:15,209 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,209 [Schema                        ] Creating foreign key
>>>> constraint : "FixedAssetRole_FK1" in catalog "" schema ""
>>>> 20:48:15,209 [Schema                        ] ALTER TABLE "FixedAssetRole"
>>>> ADD CONSTRAINT "FixedAssetRole_FK1" FOREIGN KEY ("assetId") REFERENCES
>>>> "FixedAsset" ("id")
>>>> 20:48:15,210 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,210 [Schema                        ] Creating foreign key
>>>> constraint : "FixedAssetRole_FK2" in catalog "" schema ""
>>>> 20:48:15,210 [Schema                        ] ALTER TABLE "FixedAssetRole"
>>>> ADD CONSTRAINT "FixedAssetRole_FK2" FOREIGN KEY ("partyId") REFERENCES
>>>> "Party" ("id")
>>>> 20:48:15,211 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,211 [Schema                        ] Creating index
>>>> "FixedAssetRole_N50" in catalog "" schema ""
>>>> 20:48:15,211 [Schema                        ] CREATE INDEX
>>>> "FixedAssetRole_N50" ON "FixedAssetRole" ("assetId")
>>>> 20:48:15,211 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,212 [Schema                        ] Creating index
>>>> "FixedAssetRole_N49" in catalog "" schema ""
>>>> 20:48:15,212 [Schema                        ] CREATE INDEX
>>>> "FixedAssetRole_N49" ON "FixedAssetRole" ("partyId")
>>>> 20:48:15,212 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,212 [Schema                        ] Creating candidate key
>>>> "Agreement_reference_UNQ" in catalog "" schema ""
>>>> 20:48:15,212 [Schema                        ] ALTER TABLE "Agreement" ADD
>>>> CONSTRAINT "Agreement_reference_UNQ" UNIQUE ("reference")
>>>> 20:48:15,213 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,213 [Schema                        ] Creating foreign key
>>>> constraint : "Agreement_FK1" in catalog "" schema ""
>>>> 20:48:15,213 [Schema                        ] ALTER TABLE "Agreement" ADD
>>>> CONSTRAINT "Agreement_FK1" FOREIGN KEY ("typeId") REFERENCES
>>>> "AgreementType" ("id")
>>>> 20:48:15,214 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,214 [Schema                        ] Creating foreign key
>>>> constraint : "Agreement_FK2" in catalog "" schema ""
>>>> 20:48:15,214 [Schema                        ] ALTER TABLE "Agreement" ADD
>>>> CONSTRAINT "Agreement_FK2" FOREIGN KEY ("nextAgreementId") REFERENCES
>>>> "Agreement" ("id")
>>>> 20:48:15,214 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,215 [Schema                        ] Creating index
>>>> "Lease_reference_name_IDX" in catalog "" schema ""
>>>> 20:48:15,215 [Schema                        ] CREATE INDEX
>>>> "Lease_reference_name_IDX" ON "Agreement" ("reference","name")
>>>> 20:48:15,215 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,215 [Schema                        ] Creating index
>>>> "Agreement_N50" in catalog "" schema ""
>>>> 20:48:15,215 [Schema                        ] CREATE INDEX "Agreement_N50"
>>>> ON "Agreement" ("typeId")
>>>> 20:48:15,215 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,215 [Schema                        ] Creating index
>>>> "Agreement_N49" in catalog "" schema ""
>>>> 20:48:15,215 [Schema                        ] CREATE INDEX "Agreement_N49"
>>>> ON "Agreement" ("nextAgreementId")
>>>> 20:48:15,215 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,215 [Schema                        ] Creating foreign key
>>>> constraint : "BankMandate_FK1" in catalog "" schema ""
>>>> 20:48:15,215 [Schema                        ] ALTER TABLE "BankMandate" ADD
>>>> CONSTRAINT "BankMandate_FK1" FOREIGN KEY ("id") REFERENCES "Agreement"
>>>> ("id")
>>>> 20:48:15,216 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,216 [Schema                        ] Creating foreign key
>>>> constraint : "BankMandate_FK2" in catalog "" schema ""
>>>> 20:48:15,216 [Schema                        ] ALTER TABLE "BankMandate" ADD
>>>> CONSTRAINT "BankMandate_FK2" FOREIGN KEY ("bankAccountId") REFERENCES
>>>> "FinancialAccount" ("id")
>>>> 20:48:15,216 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,217 [Schema                        ] Creating index
>>>> "BankMandate_N49" in catalog "" schema ""
>>>> 20:48:15,217 [Schema                        ] CREATE INDEX
>>>> "BankMandate_N49" ON "BankMandate" ("bankAccountId")
>>>> 20:48:15,217 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,217 [Schema                        ] Creating foreign key
>>>> constraint : "Event_FK1" in catalog "" schema ""
>>>> 20:48:15,217 [Schema                        ] ALTER TABLE "Event" ADD
>>>> CONSTRAINT "Event_FK1" FOREIGN KEY ("subjectBreakOptionId") REFERENCES
>>>> "BreakOption" ("id")
>>>> 20:48:15,218 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,218 [Schema                        ] Creating index "Event_N49" in
>>>> catalog "" schema ""
>>>> 20:48:15,218 [Schema                        ] CREATE INDEX "Event_N49" ON
>>>> "Event" ("subjectBreakOptionId")
>>>> 20:48:15,218 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,218 [Schema                        ] Creating candidate key
>>>> "ChargeGroup_reference_UNQ" in catalog "" schema ""
>>>> 20:48:15,218 [Schema                        ] ALTER TABLE "ChargeGroup" ADD
>>>> CONSTRAINT "ChargeGroup_reference_UNQ" UNIQUE ("reference")
>>>> 20:48:15,219 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,219 [Schema                        ] Creating candidate key
>>>> "Currency_reference_UNQ" in catalog "" schema ""
>>>> 20:48:15,219 [Schema                        ] ALTER TABLE "Currency" ADD
>>>> CONSTRAINT "Currency_reference_UNQ" UNIQUE ("reference")
>>>> 20:48:15,219 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,220 [Schema                        ] Creating candidate key
>>>> "Currency_name_UNQ" in catalog "" schema ""
>>>> 20:48:15,220 [Schema                        ] ALTER TABLE "Currency" ADD
>>>> CONSTRAINT "Currency_name_UNQ" UNIQUE ("name")
>>>> 20:48:15,221 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,221 [Schema                        ] Creating foreign key
>>>> constraint : "TaxRate_FK1" in catalog "" schema ""
>>>> 20:48:15,221 [Schema                        ] ALTER TABLE "TaxRate" ADD
>>>> CONSTRAINT "TaxRate_FK1" FOREIGN KEY ("taxId") REFERENCES "Tax" ("id")
>>>> 20:48:15,222 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,222 [Schema                        ] Creating foreign key
>>>> constraint : "TaxRate_FK2" in catalog "" schema ""
>>>> 20:48:15,222 [Schema                        ] ALTER TABLE "TaxRate" ADD
>>>> CONSTRAINT "TaxRate_FK2" FOREIGN KEY ("nextTaxRateId") REFERENCES "TaxRate"
>>>> ("id")
>>>> 20:48:15,223 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,223 [Schema                        ] Creating index "TaxRate_N49"
>>>> in catalog "" schema ""
>>>> 20:48:15,223 [Schema                        ] CREATE INDEX "TaxRate_N49" ON
>>>> "TaxRate" ("nextTaxRateId")
>>>> 20:48:15,223 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,223 [Schema                        ] Creating index "TaxRate_N50"
>>>> in catalog "" schema ""
>>>> 20:48:15,223 [Schema                        ] CREATE INDEX "TaxRate_N50" ON
>>>> "TaxRate" ("taxId")
>>>> 20:48:15,223 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,223 [Schema                        ] Creating foreign key
>>>> constraint : "PartyRegistration_FK1" in catalog "" schema ""
>>>> 20:48:15,224 [Schema                        ] ALTER TABLE
>>>> "PartyRegistration" ADD CONSTRAINT "PartyRegistration_FK1" FOREIGN KEY
>>>> ("partyId") REFERENCES "Party" ("id")
>>>> 20:48:15,225 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,225 [Schema                        ] Creating index
>>>> "PartyRegistration_N49" in catalog "" schema ""
>>>> 20:48:15,225 [Schema                        ] CREATE INDEX
>>>> "PartyRegistration_N49" ON "PartyRegistration" ("partyId")
>>>> 20:48:15,225 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,225 [Schema                        ] Creating foreign key
>>>> constraint : "AgreementRoleType_FK1" in catalog "" schema ""
>>>> 20:48:15,225 [Schema                        ] ALTER TABLE
>>>> "AgreementRoleType" ADD CONSTRAINT "AgreementRoleType_FK1" FOREIGN KEY
>>>> ("appliesToAgreementTypeId") REFERENCES "AgreementType" ("id")
>>>> 20:48:15,226 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,226 [Schema                        ] Creating index
>>>> "AgreementRoleType_N49" in catalog "" schema ""
>>>> 20:48:15,226 [Schema                        ] CREATE INDEX
>>>> "AgreementRoleType_N49" ON "AgreementRoleType" ("appliesToAgreementTypeId")
>>>> 20:48:15,227 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,227 [Schema                        ] Creating candidate key
>>>> "FinancialAccount_reference_UNQ" in catalog "" schema ""
>>>> 20:48:15,227 [Schema                        ] ALTER TABLE
>>>> "FinancialAccount" ADD CONSTRAINT "FinancialAccount_reference_UNQ" UNIQUE
>>>> ("reference")
>>>> 20:48:15,228 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,229 [Schema                        ] Creating foreign key
>>>> constraint : "FinancialAccount_FK1" in catalog "" schema ""
>>>> 20:48:15,229 [Schema                        ] ALTER TABLE
>>>> "FinancialAccount" ADD CONSTRAINT "FinancialAccount_FK1" FOREIGN KEY
>>>> ("ownerPartyId") REFERENCES "Party" ("id")
>>>> 20:48:15,231 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,231 [Schema                        ] Creating index
>>>> "FinancialAccount_N49" in catalog "" schema ""
>>>> 20:48:15,231 [Schema                        ] CREATE INDEX
>>>> "FinancialAccount_N49" ON "FinancialAccount" ("ownerPartyId")
>>>> 20:48:15,231 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,232 [Schema                        ] Creating foreign key
>>>> constraint : "BankAccount_FK1" in catalog "" schema ""
>>>> 20:48:15,232 [Schema                        ] ALTER TABLE "BankAccount" ADD
>>>> CONSTRAINT "BankAccount_FK1" FOREIGN KEY ("id") REFERENCES
>>>> "FinancialAccount" ("id")
>>>> 20:48:15,232 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,232 [Schema                        ] Creating foreign key
>>>> constraint : "BankAccount_FK2" in catalog "" schema ""
>>>> 20:48:15,232 [Schema                        ] ALTER TABLE "BankAccount" ADD
>>>> CONSTRAINT "BankAccount_FK2" FOREIGN KEY ("countryId") REFERENCES "Country"
>>>> ("id")
>>>> 20:48:15,233 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,233 [Schema                        ] Creating foreign key
>>>> constraint : "BankAccount_FK3" in catalog "" schema ""
>>>> 20:48:15,233 [Schema                        ] ALTER TABLE "BankAccount" ADD
>>>> CONSTRAINT "BankAccount_FK3" FOREIGN KEY ("fixedAssetId") REFERENCES
>>>> "Property" ("id")
>>>> 20:48:15,234 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,234 [Schema                        ] Creating foreign key
>>>> constraint : "BankAccount_FK4" in catalog "" schema ""
>>>> 20:48:15,234 [Schema                        ] ALTER TABLE "BankAccount" ADD
>>>> CONSTRAINT "BankAccount_FK4" FOREIGN KEY ("bankPartyId") REFERENCES "Party"
>>>> ("id")
>>>> 20:48:15,234 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,235 [Schema                        ] Creating index
>>>> "BankAccount_N51" in catalog "" schema ""
>>>> 20:48:15,235 [Schema                        ] CREATE INDEX
>>>> "BankAccount_N51" ON "BankAccount" ("fixedAssetId")
>>>> 20:48:15,235 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,235 [Schema                        ] Creating index
>>>> "BankAccount_N50" in catalog "" schema ""
>>>> 20:48:15,235 [Schema                        ] CREATE INDEX
>>>> "BankAccount_N50" ON "BankAccount" ("bankPartyId")
>>>> 20:48:15,235 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,235 [Schema                        ] Creating index
>>>> "BankAccount_N49" in catalog "" schema ""
>>>> 20:48:15,235 [Schema                        ] CREATE INDEX
>>>> "BankAccount_N49" ON "BankAccount" ("countryId")
>>>> 20:48:15,235 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,235 [Schema                        ] Creating candidate key
>>>> "UnitSize_name_UNQ" in catalog "" schema ""
>>>> 20:48:15,235 [Schema                        ] ALTER TABLE "UnitSize" ADD
>>>> CONSTRAINT "UnitSize_name_UNQ" UNIQUE ("name")
>>>> 20:48:15,236 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,236 [Schema                        ] Creating candidate key
>>>> "FixedAsset_reference_UNQ" in catalog "" schema ""
>>>> 20:48:15,236 [Schema                        ] ALTER TABLE "FixedAsset" ADD
>>>> CONSTRAINT "FixedAsset_reference_UNQ" UNIQUE ("reference")
>>>> 20:48:15,237 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,237 [Schema                        ] Creating index
>>>> "FixedAsset_reference_name_IDX" in catalog "" schema ""
>>>> 20:48:15,237 [Schema                        ] CREATE INDEX
>>>> "FixedAsset_reference_name_IDX" ON "FixedAsset" ("reference","name")
>>>> 20:48:15,237 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,237 [Schema                        ] Creating foreign key
>>>> constraint : "Property_FK2" in catalog "" schema ""
>>>> 20:48:15,237 [Schema                        ] ALTER TABLE "Property" ADD
>>>> CONSTRAINT "Property_FK2" FOREIGN KEY ("countryId") REFERENCES "Country"
>>>> ("id")
>>>> 20:48:15,238 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,238 [Schema                        ] Creating foreign key
>>>> constraint : "Property_FK1" in catalog "" schema ""
>>>> 20:48:15,238 [Schema                        ] ALTER TABLE "Property" ADD
>>>> CONSTRAINT "Property_FK1" FOREIGN KEY ("id") REFERENCES "FixedAsset" ("id")
>>>> 20:48:15,238 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,238 [Schema                        ] Creating index "Property_N49"
>>>> in catalog "" schema ""
>>>> 20:48:15,238 [Schema                        ] CREATE INDEX "Property_N49"
>>>> ON "Property" ("countryId")
>>>> 20:48:15,239 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,239 [Schema                        ] Creating foreign key
>>>> constraint : "LeaseAssignment_FK2" in catalog "" schema ""
>>>> 20:48:15,239 [Schema                        ] ALTER TABLE "LeaseAssignment"
>>>> ADD CONSTRAINT "LeaseAssignment_FK2" FOREIGN KEY ("previousLeaseId")
>>>> REFERENCES "Lease" ("id")
>>>> 20:48:15,239 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,239 [Schema                        ] Creating foreign key
>>>> constraint : "LeaseAssignment_FK1" in catalog "" schema ""
>>>> 20:48:15,239 [Schema                        ] ALTER TABLE "LeaseAssignment"
>>>> ADD CONSTRAINT "LeaseAssignment_FK1" FOREIGN KEY ("nextLeaseId") REFERENCES
>>>> "Lease" ("id")
>>>> 20:48:15,240 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,240 [Schema                        ] Creating index
>>>> "LeaseAssignment_N49" in catalog "" schema ""
>>>> 20:48:15,240 [Schema                        ] CREATE INDEX
>>>> "LeaseAssignment_N49" ON "LeaseAssignment" ("previousLeaseId")
>>>> 20:48:15,241 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,241 [Schema                        ] Creating index
>>>> "LeaseAssignment_N50" in catalog "" schema ""
>>>> 20:48:15,241 [Schema                        ] CREATE INDEX
>>>> "LeaseAssignment_N50" ON "LeaseAssignment" ("nextLeaseId")
>>>> 20:48:15,241 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,241 [Schema                        ] Creating candidate key
>>>> "Geography_reference_UNQ" in catalog "" schema ""
>>>> 20:48:15,241 [Schema                        ] ALTER TABLE "State" ADD
>>>> CONSTRAINT "Geography_reference_UNQ" UNIQUE ("reference")
>>>> 20:48:15,242 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,242 [Schema                        ] Creating candidate key
>>>> "Geography_name_UNQ" in catalog "" schema ""
>>>> 20:48:15,242 [Schema                        ] ALTER TABLE "State" ADD
>>>> CONSTRAINT "Geography_name_UNQ" UNIQUE ("name")
>>>> 20:48:15,243 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,243 [Schema                        ] Creating foreign key
>>>> constraint : "State_FK1" in catalog "" schema ""
>>>> 20:48:15,243 [Schema                        ] ALTER TABLE "State" ADD
>>>> CONSTRAINT "State_FK1" FOREIGN KEY ("countryId") REFERENCES "Country"
>>>> ("id")
>>>> 20:48:15,243 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,244 [Schema                        ] Creating index "State_N49" in
>>>> catalog "" schema ""
>>>> 20:48:15,244 [Schema                        ] CREATE INDEX "State_N49" ON
>>>> "State" ("countryId")
>>>> 20:48:15,244 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,244 [Schema                        ] Creating foreign key
>>>> constraint : "LeaseStatusReason_FK1" in catalog "" schema ""
>>>> 20:48:15,244 [Schema                        ] ALTER TABLE
>>>> "LeaseStatusReason" ADD CONSTRAINT "LeaseStatusReason_FK1" FOREIGN KEY
>>>> ("leaseId") REFERENCES "Lease" ("id")
>>>> 20:48:15,245 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,245 [Schema                        ] Creating index
>>>> "LeaseStatusReason_N49" in catalog "" schema ""
>>>> 20:48:15,245 [Schema                        ] CREATE INDEX
>>>> "LeaseStatusReason_N49" ON "LeaseStatusReason" ("leaseId")
>>>> 20:48:15,245 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,246 [Schema                        ] Creating candidate key
>>>> "Activity_sector_name_UNQ" in catalog "" schema ""
>>>> 20:48:15,246 [Schema                        ] ALTER TABLE "Activity" ADD
>>>> CONSTRAINT "Activity_sector_name_UNQ" UNIQUE ("sectorId","name")
>>>> 20:48:15,246 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,246 [Schema                        ] Creating foreign key
>>>> constraint : "Activity_FK1" in catalog "" schema ""
>>>> 20:48:15,246 [Schema                        ] ALTER TABLE "Activity" ADD
>>>> CONSTRAINT "Activity_FK1" FOREIGN KEY ("sectorId") REFERENCES "Sector"
>>>> ("id")
>>>> 20:48:15,247 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,247 [Schema                        ] Creating index "Activity_N49"
>>>> in catalog "" schema ""
>>>> 20:48:15,247 [Schema                        ] CREATE INDEX "Activity_N49"
>>>> ON "Activity" ("sectorId")
>>>> 20:48:15,248 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,248 [Schema                        ] Creating candidate key
>>>> "Party_reference_UNQ" in catalog "" schema ""
>>>> 20:48:15,248 [Schema                        ] ALTER TABLE "Party" ADD
>>>> CONSTRAINT "Party_reference_UNQ" UNIQUE ("reference")
>>>> 20:48:15,248 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,249 [Schema                        ] Creating index
>>>> "Party_reference_name_IDX" in catalog "" schema ""
>>>> 20:48:15,249 [Schema                        ] CREATE INDEX
>>>> "Party_reference_name_IDX" ON "Party" ("reference","name")
>>>> 20:48:15,249 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,249 [Schema                        ] Creating foreign key
>>>> constraint : "Organisation_FK1" in catalog "" schema ""
>>>> 20:48:15,249 [Schema                        ] ALTER TABLE "Organisation"
>>>> ADD CONSTRAINT "Organisation_FK1" FOREIGN KEY ("id") REFERENCES "Party"
>>>> ("id")
>>>> 20:48:15,249 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,250 [Schema                        ] Creating candidate key
>>>> "FixedAssetRegistrationType_title_UNQ" in catalog "" schema ""
>>>> 20:48:15,250 [Schema                        ] ALTER TABLE
>>>> "FixedAssetRegistrationType" ADD CONSTRAINT
>>>> "FixedAssetRegistrationType_title_UNQ" UNIQUE ("title")
>>>> 20:48:15,250 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,250 [Schema                        ] Creating foreign key
>>>> constraint : "FixedAssetRegistration_FK2" in catalog "" schema ""
>>>> 20:48:15,250 [Schema                        ] ALTER TABLE
>>>> "FixedAssetRegistration" ADD CONSTRAINT "FixedAssetRegistration_FK2"
>>>> FOREIGN KEY ("subjectId") REFERENCES "FixedAsset" ("id")
>>>> 20:48:15,251 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,251 [Schema                        ] Creating foreign key
>>>> constraint : "FixedAssetRegistration_FK1" in catalog "" schema ""
>>>> 20:48:15,251 [Schema                        ] ALTER TABLE
>>>> "FixedAssetRegistration" ADD CONSTRAINT "FixedAssetRegistration_FK1"
>>>> FOREIGN KEY ("typeId") REFERENCES "FixedAssetRegistrationType" ("id")
>>>> 20:48:15,252 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,252 [Schema                        ] Creating index
>>>> "FixedAssetRegistration_N49" in catalog "" schema ""
>>>> 20:48:15,252 [Schema                        ] CREATE INDEX
>>>> "FixedAssetRegistration_N49" ON "FixedAssetRegistration" ("subjectId")
>>>> 20:48:15,252 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,252 [Schema                        ] Creating index
>>>> "FixedAssetRegistration_N50" in catalog "" schema ""
>>>> 20:48:15,252 [Schema                        ] CREATE INDEX
>>>> "FixedAssetRegistration_N50" ON "FixedAssetRegistration" ("typeId")
>>>> 20:48:15,252 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,253 [Schema                        ] Creating foreign key
>>>> constraint : "LandRegister_FK1" in catalog "" schema ""
>>>> 20:48:15,253 [Schema                        ] ALTER TABLE "LandRegister"
>>>> ADD CONSTRAINT "LandRegister_FK1" FOREIGN KEY ("id") REFERENCES
>>>> "FixedAssetRegistration" ("id")
>>>> 20:48:15,253 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,253 [Schema                        ] Creating candidate key
>>>> "Tag_taggable_name_UNQ" in catalog "" schema ""
>>>> 20:48:15,253 [Schema                        ] ALTER TABLE "Tag" ADD
>>>> CONSTRAINT "Tag_taggable_name_UNQ" UNIQUE
>>>> ("taggable_Occupancy_id_EID","name")
>>>> 20:48:15,254 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,254 [Schema                        ] Creating foreign key
>>>> constraint : "Tag_FK1" in catalog "" schema ""
>>>> 20:48:15,254 [Schema                        ] ALTER TABLE "Tag" ADD
>>>> CONSTRAINT "Tag_FK1" FOREIGN KEY ("taggable_Occupancy_id_EID") REFERENCES
>>>> "Occupancy" ("id")
>>>> 20:48:15,255 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,255 [Schema                        ] Creating index "Tag_N49" in
>>>> catalog "" schema ""
>>>> 20:48:15,255 [Schema                        ] CREATE INDEX "Tag_N49" ON
>>>> "Tag" ("taggable_Occupancy_id_EID")
>>>> 20:48:15,255 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,255 [Schema                        ] Creating candidate key
>>>> "Charge_reference_UNQ" in catalog "" schema ""
>>>> 20:48:15,255 [Schema                        ] ALTER TABLE "Charge" ADD
>>>> CONSTRAINT "Charge_reference_UNQ" UNIQUE ("reference")
>>>> 20:48:15,256 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,256 [Schema                        ] Creating candidate key
>>>> "Charge_name_UNQ" in catalog "" schema ""
>>>> 20:48:15,256 [Schema                        ] ALTER TABLE "Charge" ADD
>>>> CONSTRAINT "Charge_name_UNQ" UNIQUE ("name")
>>>> 20:48:15,257 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,257 [Schema                        ] Creating foreign key
>>>> constraint : "Charge_FK2" in catalog "" schema ""
>>>> 20:48:15,257 [Schema                        ] ALTER TABLE "Charge" ADD
>>>> CONSTRAINT "Charge_FK2" FOREIGN KEY ("taxId") REFERENCES "Tax" ("id")
>>>> 20:48:15,258 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,258 [Schema                        ] Creating foreign key
>>>> constraint : "Charge_FK1" in catalog "" schema ""
>>>> 20:48:15,258 [Schema                        ] ALTER TABLE "Charge" ADD
>>>> CONSTRAINT "Charge_FK1" FOREIGN KEY ("groupId") REFERENCES "ChargeGroup"
>>>> ("id")
>>>> 20:48:15,259 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,259 [Schema                        ] Creating index "Charge_N50"
>>>> in catalog "" schema ""
>>>> 20:48:15,259 [Schema                        ] CREATE INDEX "Charge_N50" ON
>>>> "Charge" ("groupId")
>>>> 20:48:15,259 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,259 [Schema                        ] Creating index "Charge_N49"
>>>> in catalog "" schema ""
>>>> 20:48:15,259 [Schema                        ] CREATE INDEX "Charge_N49" ON
>>>> "Charge" ("taxId")
>>>> 20:48:15,260 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,260 [Schema                        ] Creating foreign key
>>>> constraint : "IndexValue_FK1" in catalog "" schema ""
>>>> 20:48:15,260 [Schema                        ] ALTER TABLE "IndexValue" ADD
>>>> CONSTRAINT "IndexValue_FK1" FOREIGN KEY ("indexBaseId") REFERENCES
>>>> "IndexBase" ("id")
>>>> 20:48:15,260 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,261 [Schema                        ] Creating index
>>>> "IndexValue_N49" in catalog "" schema ""
>>>> 20:48:15,261 [Schema                        ] CREATE INDEX "IndexValue_N49"
>>>> ON "IndexValue" ("indexBaseId")
>>>> 20:48:15,261 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,261 [Schema                        ] Creating candidate key
>>>> "Tax_reference_UNQ" in catalog "" schema ""
>>>> 20:48:15,261 [Schema                        ] ALTER TABLE "Tax" ADD
>>>> CONSTRAINT "Tax_reference_UNQ" UNIQUE ("reference")
>>>> 20:48:15,261 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,262 [Schema                        ] Creating foreign key
>>>> constraint : "Invoice_FK4" in catalog "" schema ""
>>>> 20:48:15,262 [Schema                        ] ALTER TABLE "Invoice" ADD
>>>> CONSTRAINT "Invoice_FK4" FOREIGN KEY ("currencyId") REFERENCES "Currency"
>>>> ("id")
>>>> 20:48:15,262 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,263 [Schema                        ] Creating foreign key
>>>> constraint : "Invoice_FK3" in catalog "" schema ""
>>>> 20:48:15,263 [Schema                        ] ALTER TABLE "Invoice" ADD
>>>> CONSTRAINT "Invoice_FK3" FOREIGN KEY ("sellerPartyId") REFERENCES "Party"
>>>> ("id")
>>>> 20:48:15,264 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,264 [Schema                        ] Creating foreign key
>>>> constraint : "Invoice_FK2" in catalog "" schema ""
>>>> 20:48:15,264 [Schema                        ] ALTER TABLE "Invoice" ADD
>>>> CONSTRAINT "Invoice_FK2" FOREIGN KEY ("buyerPartyId") REFERENCES "Party"
>>>> ("id")
>>>> 20:48:15,264 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,265 [Schema                        ] Creating foreign key
>>>> constraint : "Invoice_FK1" in catalog "" schema ""
>>>> 20:48:15,265 [Schema                        ] ALTER TABLE "Invoice" ADD
>>>> CONSTRAINT "Invoice_FK1" FOREIGN KEY ("sourceLeaseId") REFERENCES "Lease"
>>>> ("id")
>>>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,266 [Schema                        ] Creating index "Invoice_N51"
>>>> in catalog "" schema ""
>>>> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N51" ON
>>>> "Invoice" ("currencyId")
>>>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,266 [Schema                        ] Creating index "Invoice_N52"
>>>> in catalog "" schema ""
>>>> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N52" ON
>>>> "Invoice" ("sourceLeaseId")
>>>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,266 [Schema                        ] Creating index "Invoice_N49"
>>>> in catalog "" schema ""
>>>> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N49" ON
>>>> "Invoice" ("buyerPartyId")
>>>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,266 [Schema                        ] Creating index "Invoice_N50"
>>>> in catalog "" schema ""
>>>> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N50" ON
>>>> "Invoice" ("sellerPartyId")
>>>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,267 [Schema                        ] Creating foreign key
>>>> constraint : "Person_FK1" in catalog "" schema ""
>>>> 20:48:15,267 [Schema                        ] ALTER TABLE "Person" ADD
>>>> CONSTRAINT "Person_FK1" FOREIGN KEY ("id") REFERENCES "Party" ("id")
>>>> 20:48:15,267 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,267 [Schema                        ] Creating candidate key
>>>> "Country_alpha2Code_UNQ" in catalog "" schema ""
>>>> 20:48:15,267 [Schema                        ] ALTER TABLE "Country" ADD
>>>> CONSTRAINT "Country_alpha2Code_UNQ" UNIQUE ("alpha2Code")
>>>> 20:48:15,268 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,269 [Schema                        ] Creating candidate key
>>>> "Country_reference_UNQ" in catalog "" schema ""
>>>> 20:48:15,269 [Schema                        ] ALTER TABLE "Country" ADD
>>>> CONSTRAINT "Country_reference_UNQ" UNIQUE ("reference")
>>>> 20:48:15,270 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,270 [Schema                        ] Creating candidate key
>>>> "Country_name_UNQ" in catalog "" schema ""
>>>> 20:48:15,270 [Schema                        ] ALTER TABLE "Country" ADD
>>>> CONSTRAINT "Country_name_UNQ" UNIQUE ("name")
>>>> 20:48:15,271 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,271 [Schema                        ] Creating foreign key
>>>> constraint : "Lease_FK3" in catalog "" schema ""
>>>> 20:48:15,271 [Schema                        ] ALTER TABLE "Lease" ADD
>>>> CONSTRAINT "Lease_FK3" FOREIGN KEY ("leaseTypeId") REFERENCES "LeaseType"
>>>> ("id")
>>>> 20:48:15,272 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,272 [Schema                        ] Creating foreign key
>>>> constraint : "Lease_FK2" in catalog "" schema ""
>>>> 20:48:15,272 [Schema                        ] ALTER TABLE "Lease" ADD
>>>> CONSTRAINT "Lease_FK2" FOREIGN KEY ("paidByBankMandateId") REFERENCES
>>>> "BankMandate" ("id")
>>>> 20:48:15,273 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,273 [Schema                        ] Creating foreign key
>>>> constraint : "Lease_FK1" in catalog "" schema ""
>>>> 20:48:15,273 [Schema                        ] ALTER TABLE "Lease" ADD
>>>> CONSTRAINT "Lease_FK1" FOREIGN KEY ("id") REFERENCES "Agreement" ("id")
>>>> 20:48:15,274 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,274 [Schema                        ] Creating index "Lease_N50" in
>>>> catalog "" schema ""
>>>> 20:48:15,274 [Schema                        ] CREATE INDEX "Lease_N50" ON
>>>> "Lease" ("leaseTypeId")
>>>> 20:48:15,274 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,275 [Schema                        ] Creating index "Lease_N49" in
>>>> catalog "" schema ""
>>>> 20:48:15,275 [Schema                        ] CREATE INDEX "Lease_N49" ON
>>>> "Lease" ("paidByBankMandateId")
>>>> 20:48:15,275 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,275 [Schema                        ] Creating candidate key
>>>> "LeaseItem_lease_type_startDate_sequence_IDX" in catalog "" schema ""
>>>> 20:48:15,275 [Schema                        ] ALTER TABLE "LeaseItem" ADD
>>>> CONSTRAINT "LeaseItem_lease_type_startDate_sequence_IDX" UNIQUE
>>>> ("leaseId","type","startDate","sequence")
>>>> 20:48:15,277 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,277 [Schema                        ] Creating foreign key
>>>> constraint : "LeaseItem_FK1" in catalog "" schema ""
>>>> 20:48:15,277 [Schema                        ] ALTER TABLE "LeaseItem" ADD
>>>> CONSTRAINT "LeaseItem_FK1" FOREIGN KEY ("leaseId") REFERENCES "Lease"
>>>> ("id")
>>>> 20:48:15,279 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,279 [Schema                        ] Creating foreign key
>>>> constraint : "LeaseItem_FK2" in catalog "" schema ""
>>>> 20:48:15,279 [Schema                        ] ALTER TABLE "LeaseItem" ADD
>>>> CONSTRAINT "LeaseItem_FK2" FOREIGN KEY ("chargeId") REFERENCES "Charge"
>>>> ("id")
>>>> 20:48:15,281 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,281 [Schema                        ] Creating index
>>>> "LeaseItem_lease_type_startDate_IDX" in catalog "" schema ""
>>>> 20:48:15,281 [Schema                        ] CREATE INDEX
>>>> "LeaseItem_lease_type_startDate_IDX" ON "LeaseItem"
>>>> ("leaseId","type","startDate")
>>>> 20:48:15,282 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,282 [Schema                        ] Creating index
>>>> "LeaseItem_N50" in catalog "" schema ""
>>>> 20:48:15,282 [Schema                        ] CREATE INDEX "LeaseItem_N50"
>>>> ON "LeaseItem" ("leaseId")
>>>> 20:48:15,282 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,282 [Schema                        ] Creating index
>>>> "LeaseItem_lease_type_sequence_IDX" in catalog "" schema ""
>>>> 20:48:15,282 [Schema                        ] CREATE INDEX
>>>> "LeaseItem_lease_type_sequence_IDX" ON "LeaseItem"
>>>> ("leaseId","type","sequence")
>>>> 20:48:15,282 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,282 [Schema                        ] Creating index
>>>> "LeaseItem_N49" in catalog "" schema ""
>>>> 20:48:15,282 [Schema                        ] CREATE INDEX "LeaseItem_N49"
>>>> ON "LeaseItem" ("chargeId")
>>>> 20:48:15,283 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,283 [Schema                        ] Creating foreign key
>>>> constraint : "AgreementRoleCommunicationChannelType_FK1" in catalog ""
>>>> schema ""
>>>> 20:48:15,283 [Schema                        ] ALTER TABLE
>>>> "AgreementRoleCommunicationChannelType" ADD CONSTRAINT
>>>> "AgreementRoleCommunicationChannelType_FK1" FOREIGN KEY
>>>> ("appliesToAgreementTypeId") REFERENCES "AgreementType" ("id")
>>>> 20:48:15,284 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,284 [Schema                        ] Creating index
>>>> "AgreementRoleCommunicationChannelType_N49" in catalog "" schema ""
>>>> 20:48:15,284 [Schema                        ] CREATE INDEX
>>>> "AgreementRoleCommunicationChannelType_N49" ON
>>>> "AgreementRoleCommunicationChannelType" ("appliesToAgreementTypeId")
>>>> 20:48:15,284 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,284 [Schema                        ] Creating candidate key
>>>> "LeaseType_reference_UNQ" in catalog "" schema ""
>>>> 20:48:15,284 [Schema                        ] ALTER TABLE "LeaseType" ADD
>>>> CONSTRAINT "LeaseType_reference_UNQ" UNIQUE ("reference")
>>>> 20:48:15,285 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,285 [Schema                        ] Creating candidate key
>>>> "LeaseType_name_UNQ" in catalog "" schema ""
>>>> 20:48:15,285 [Schema                        ] ALTER TABLE "LeaseType" ADD
>>>> CONSTRAINT "LeaseType_name_UNQ" UNIQUE ("name")
>>>> 20:48:15,286 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,286 [Schema                        ] Creating foreign key
>>>> constraint : "AgreementRoleCommunicationChannel_FK3" in catalog "" schema ""
>>>> 20:48:15,286 [Schema                        ] ALTER TABLE
>>>> "AgreementRoleCommunicationChannel" ADD CONSTRAINT
>>>> "AgreementRoleCommunicationChannel_FK3" FOREIGN KEY
>>>> ("communicationChannelId") REFERENCES "CommunicationChannel" ("id")
>>>> 20:48:15,287 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,287 [Schema                        ] Creating foreign key
>>>> constraint : "AgreementRoleCommunicationChannel_FK2" in catalog "" schema ""
>>>> 20:48:15,287 [Schema                        ] ALTER TABLE
>>>> "AgreementRoleCommunicationChannel" ADD CONSTRAINT
>>>> "AgreementRoleCommunicationChannel_FK2" FOREIGN KEY ("agreementRoleId")
>>>> REFERENCES "AgreementRole" ("id")
>>>> 20:48:15,288 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,289 [Schema                        ] Creating foreign key
>>>> constraint : "AgreementRoleCommunicationChannel_FK1" in catalog "" schema ""
>>>> 20:48:15,289 [Schema                        ] ALTER TABLE
>>>> "AgreementRoleCommunicationChannel" ADD CONSTRAINT
>>>> "AgreementRoleCommunicationChannel_FK1" FOREIGN KEY ("typeId") REFERENCES
>>>> "AgreementRoleCommunicationChannelType" ("id")
>>>> 20:48:15,290 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,290 [Schema                        ] Creating index
>>>> "AgreementRoleCommunicationChannel_N49" in catalog "" schema ""
>>>> 20:48:15,290 [Schema                        ] CREATE INDEX
>>>> "AgreementRoleCommunicationChannel_N49" ON
>>>> "AgreementRoleCommunicationChannel" ("communicationChannelId")
>>>> 20:48:15,291 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,291 [Schema                        ] Creating index
>>>> "AgreementRoleCommunicationChannel_N50" in catalog "" schema ""
>>>> 20:48:15,291 [Schema                        ] CREATE INDEX
>>>> "AgreementRoleCommunicationChannel_N50" ON
>>>> "AgreementRoleCommunicationChannel" ("agreementRoleId")
>>>> 20:48:15,291 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,291 [Schema                        ] Creating index
>>>> "AgreementRoleCommunicationChannel_N51" in catalog "" schema ""
>>>> 20:48:15,291 [Schema                        ] CREATE INDEX
>>>> "AgreementRoleCommunicationChannel_N51" ON
>>>> "AgreementRoleCommunicationChannel" ("typeId")
>>>> 20:48:15,291 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,291 [Schema                        ] Creating candidate key
>>>> "AgreementType_title_UNQ" in catalog "" schema ""
>>>> 20:48:15,291 [Schema                        ] ALTER TABLE "AgreementType"
>>>> ADD CONSTRAINT "AgreementType_title_UNQ" UNIQUE ("title")
>>>> 20:48:15,292 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,292 [Schema                        ] Creating candidate key
>>>> "Occupancy_lease_unit_startDate_UNQ" in catalog "" schema ""
>>>> 20:48:15,292 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>>> CONSTRAINT "Occupancy_lease_unit_startDate_UNQ" UNIQUE
>>>> ("leaseId","unitId","startDate")
>>>> 20:48:15,294 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,294 [Schema                        ] Creating foreign key
>>>> constraint : "Occupancy_FK5" in catalog "" schema ""
>>>> 20:48:15,294 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>>> CONSTRAINT "Occupancy_FK5" FOREIGN KEY ("sectorId") REFERENCES "Sector"
>>>> ("id")
>>>> 20:48:15,295 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,296 [Schema                        ] Creating foreign key
>>>> constraint : "Occupancy_FK6" in catalog "" schema ""
>>>> 20:48:15,296 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>>> CONSTRAINT "Occupancy_FK6" FOREIGN KEY ("brandId") REFERENCES "Brand"
>>>> ("id")
>>>> 20:48:15,297 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,297 [Schema                        ] Creating foreign key
>>>> constraint : "Occupancy_FK3" in catalog "" schema ""
>>>> 20:48:15,297 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>>> CONSTRAINT "Occupancy_FK3" FOREIGN KEY ("activityId") REFERENCES "Activity"
>>>> ("id")
>>>> 20:48:15,299 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,299 [Schema                        ] Creating foreign key
>>>> constraint : "Occupancy_FK4" in catalog "" schema ""
>>>> 20:48:15,299 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>>> CONSTRAINT "Occupancy_FK4" FOREIGN KEY ("leaseId") REFERENCES "Lease"
>>>> ("id")
>>>> 20:48:15,301 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,301 [Schema                        ] Creating foreign key
>>>> constraint : "Occupancy_FK1" in catalog "" schema ""
>>>> 20:48:15,301 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>>> CONSTRAINT "Occupancy_FK1" FOREIGN KEY ("unitId") REFERENCES "Unit" ("id")
>>>> 20:48:15,302 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,303 [Schema                        ] Creating foreign key
>>>> constraint : "Occupancy_FK2" in catalog "" schema ""
>>>> 20:48:15,303 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>>> CONSTRAINT "Occupancy_FK2" FOREIGN KEY ("unitSizeId") REFERENCES "UnitSize"
>>>> ("id")
>>>> 20:48:15,304 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,304 [Schema                        ] Creating index
>>>> "Occupancy_N54" in catalog "" schema ""
>>>> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N54"
>>>> ON "Occupancy" ("brandId")
>>>> 20:48:15,305 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,305 [Schema                        ] Creating index
>>>> "Occupancy_N53" in catalog "" schema ""
>>>> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N53"
>>>> ON "Occupancy" ("unitId")
>>>> 20:48:15,305 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,305 [Schema                        ] Creating index
>>>> "Occupancy_N52" in catalog "" schema ""
>>>> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N52"
>>>> ON "Occupancy" ("sectorId")
>>>> 20:48:15,305 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,305 [Schema                        ] Creating index
>>>> "Occupancy_N51" in catalog "" schema ""
>>>> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N51"
>>>> ON "Occupancy" ("activityId")
>>>> 20:48:15,306 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,306 [Schema                        ] Creating index
>>>> "Occupancy_N49" in catalog "" schema ""
>>>> 20:48:15,306 [Schema                        ] CREATE INDEX "Occupancy_N49"
>>>> ON "Occupancy" ("leaseId")
>>>> 20:48:15,306 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,306 [Schema                        ] Creating index
>>>> "Occupancy_N50" in catalog "" schema ""
>>>> 20:48:15,306 [Schema                        ] CREATE INDEX "Occupancy_N50"
>>>> ON "Occupancy" ("unitSizeId")
>>>> 20:48:15,306 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,306 [Schema                        ] Creating foreign key
>>>> constraint : "IndexBase_FK2" in catalog "" schema ""
>>>> 20:48:15,306 [Schema                        ] ALTER TABLE "IndexBase" ADD
>>>> CONSTRAINT "IndexBase_FK2" FOREIGN KEY ("indexId") REFERENCES "Index"
>>>> ("id")
>>>> 20:48:15,307 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,307 [Schema                        ] Creating foreign key
>>>> constraint : "IndexBase_FK1" in catalog "" schema ""
>>>> 20:48:15,307 [Schema                        ] ALTER TABLE "IndexBase" ADD
>>>> CONSTRAINT "IndexBase_FK1" FOREIGN KEY ("nextIndexBaseId") REFERENCES
>>>> "IndexBase" ("id")
>>>> 20:48:15,308 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,308 [Schema                        ] Creating index
>>>> "IndexBase_N50" in catalog "" schema ""
>>>> 20:48:15,308 [Schema                        ] CREATE INDEX "IndexBase_N50"
>>>> ON "IndexBase" ("indexId")
>>>> 20:48:15,309 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,309 [Schema                        ] Creating index
>>>> "IndexBase_N49" in catalog "" schema ""
>>>> 20:48:15,309 [Schema                        ] CREATE INDEX "IndexBase_N49"
>>>> ON "IndexBase" ("nextIndexBaseId")
>>>> 20:48:15,309 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,309 [Schema                        ] Creating candidate key
>>>> "Index_name_UNQ" in catalog "" schema ""
>>>> 20:48:15,309 [Schema                        ] ALTER TABLE "Index" ADD
>>>> CONSTRAINT "Index_name_UNQ" UNIQUE ("name")
>>>> 20:48:15,310 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,310 [Schema                        ] Creating candidate key
>>>> "Index_reference_UNQ" in catalog "" schema ""
>>>> 20:48:15,310 [Schema                        ] ALTER TABLE "Index" ADD
>>>> CONSTRAINT "Index_reference_UNQ" UNIQUE ("reference")
>>>> 20:48:15,311 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,311 [Schema                        ] Creating foreign key
>>>> constraint : "AgreementRole_FK3" in catalog "" schema ""
>>>> 20:48:15,311 [Schema                        ] ALTER TABLE "AgreementRole"
>>>> ADD CONSTRAINT "AgreementRole_FK3" FOREIGN KEY ("agreementId") REFERENCES
>>>> "Agreement" ("id")
>>>> 20:48:15,312 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,313 [Schema                        ] Creating foreign key
>>>> constraint : "AgreementRole_FK2" in catalog "" schema ""
>>>> 20:48:15,313 [Schema                        ] ALTER TABLE "AgreementRole"
>>>> ADD CONSTRAINT "AgreementRole_FK2" FOREIGN KEY ("typeId") REFERENCES
>>>> "AgreementRoleType" ("id")
>>>> 20:48:15,314 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,314 [Schema                        ] Creating foreign key
>>>> constraint : "AgreementRole_FK1" in catalog "" schema ""
>>>> 20:48:15,314 [Schema                        ] ALTER TABLE "AgreementRole"
>>>> ADD CONSTRAINT "AgreementRole_FK1" FOREIGN KEY ("partyId") REFERENCES
>>>> "Party" ("id")
>>>> 20:48:15,315 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,315 [Schema                        ] Creating index
>>>> "AgreementRole_N49" in catalog "" schema ""
>>>> 20:48:15,315 [Schema                        ] CREATE INDEX
>>>> "AgreementRole_N49" ON "AgreementRole" ("agreementId")
>>>> 20:48:15,315 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,315 [Schema                        ] Creating index
>>>> "AgreementRole_N51" in catalog "" schema ""
>>>> 20:48:15,315 [Schema                        ] CREATE INDEX
>>>> "AgreementRole_N51" ON "AgreementRole" ("typeId")
>>>> 20:48:15,316 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,316 [Schema                        ] Creating index
>>>> "AgreementRole_N50" in catalog "" schema ""
>>>> 20:48:15,316 [Schema                        ] CREATE INDEX
>>>> "AgreementRole_N50" ON "AgreementRole" ("partyId")
>>>> 20:48:15,316 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,316 [Schema                        ] Creating candidate key
>>>> "Sector_name_UNQ" in catalog "" schema ""
>>>> 20:48:15,316 [Schema                        ] ALTER TABLE "Sector" ADD
>>>> CONSTRAINT "Sector_name_UNQ" UNIQUE ("name")
>>>> 20:48:15,317 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,318 [Schema                        ] Check of existence of
>>>> "InvoiceSummaryForPropertyDueDate" returned no table
>>>> 20:48:15,318 [Schema                        ] Creating table
>>>> "InvoiceSummaryForPropertyDueDate"
>>>> 20:48:15,318 [Schema                        ] CREATE VIEW
>>>> "InvoiceSummaryForPropertyDueDate" (   "reference",   "dueDate",   "total",
>>>> "netAmount",   "vatAmount",   "grossAmount" ) AS SELECT
>>>> "FixedAsset"."reference" ,    "Invoice"."dueDate",
>>>> COUNT(DISTINCT("Invoice"."id")) AS "total",
>>>> SUM("InvoiceItem"."netAmount") AS "netAmount",
>>>> SUM("InvoiceItem"."vatAmount") AS "vatAmount",
>>>> SUM("InvoiceItem"."grossAmount") AS "grossAmount"   FROM "Invoice"   INNER
>>>> JOIN "Lease"       ON "Invoice"."sourceLeaseId" = "Lease"."id"   INNER JOIN
>>>> "Occupancy"     ON "Lease"."id"              = "Occupancy"."leaseId"
>>>> INNER JOIN "Unit"       ON "Unit"."id"               = "Occupancy"."unitId"
>>>> INNER JOIN "Property"     ON "Property"."id"           =
>>>> "Unit"."propertyId"   INNER JOIN "FixedAsset"     ON "FixedAsset"."id"
>>>>  = "Property"."id"   INNER JOIN "InvoiceItem"     ON
>>>> "InvoiceItem"."invoiceId" = "Invoice"."id" GROUP BY
>>>> "FixedAsset"."reference",  "Invoice"."dueDate"
>>>> 
>>>> 
>>>> 
>>>> On 13 January 2014 18:47, GESCONSULTOR - Óscar Bou
>>>> <o....@gesconsultor.com>wrote:
>>>> 
>>>>> 
>>>>> Hi, Dharmesh.
>>>>> 
>>>>> Can you copy on an email the class definition for
>>>>> org.atos.tfgm.basket.ShoppingBasketItem?
>>>>> 
>>>>> Perhaps the JDO annotations for identity are not properly defined.
>>>>> 
>>>>> See [1] for an example. The relevant ones are:
>>>>> 
>>>>> 
>>>>> @javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
>>>>> @javax.jdo.annotations.DatastoreIdentity(
>>>>>      strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY,
>>>>>       column="id")
>>>>> @javax.jdo.annotations.Version(
>>>>>      strategy=VersionStrategy.VERSION_NUMBER,
>>>>>      column="version")
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> Regards,
>>>>> 
>>>>> Oscar
>>>>> 
>>>>> 
>>>>> [1]
>>>>> https://github.com/apache/isis/blob/master/example/archetype/quickstart_wicket_restful_jdo/src/main/resources/archetype-resources/dom/src/main/java/dom/todo/ToDoItem.java
>>>>> 
>>>>> 
>>>>> 
>>>>> El 13/01/2014, a las 18:03, Chohan, Dharmesh <dh...@atos.net>
>>>>> escribió:
>>>>> 
>>>>>> Hello
>>>>>> 
>>>>>> I have sorted out the issue below, however I have encountered another
>>>>> problem,
>>>>>> 
>>>>>> Data already exists
>>>>>> 
>>>>>> integrity constraint violation: NOT NULL check constraint; SYS_CT_10102
>>>>> table: "ShoppingBasketItem" column: "shoppingBasket_id_OID"
>>>>>> 
>>>>>> This is the log output and am not sure why shoppingBasket_id_OID is NULL
>>>>>> 
>>>>>>  [exec] 16:58:55,845  [Native               qtp1742392524-31 DEBUG]
>>>>> INSERT INTO "ShoppingBasketItem"
>>>>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>>>>> VALUES (<'123456789001'>,<'Please_Select'>,<'Item
>>>>> 1'>,<'▒5'>,<null>,<1>,<null>)
>>>>>>  [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]
>>>>> Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b"
>>>>> using statement "INSERT INTO "ShoppingBasketItem"
>>>>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>>>>> VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL
>>>>> check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column:
>>>>> "shoppingBasket_id_OID"
>>>>>>  [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]
>>>>> Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b"
>>>>> using statement "INSERT INTO "ShoppingBasketItem"
>>>>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>>>>> VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL
>>>>> check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column:
>>>>> "shoppingBasket_id_OID"
>>>>>>  [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]
>>>>> Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b"
>>>>> using statement "INSERT INTO "ShoppingBasketItem"
>>>>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>>>>> VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL
>>>>> check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column:
>>>>> "shoppingBasket_id_OID"
>>>>>>  [exec] 16:58:55,945  [IsisTransaction      qtp1742392524-31 INFO ]
>>>>> abort transaction IsisTransaction@2fab0086[state=MUST_ABORT,commands=0]
>>>>>> 
>>>>>> Regards
>>>>>> Dharmesh
>>>>>> 
>>>>>> -----Original Message-----
>>>>>> From: Chohan, Dharmesh [mailto:dharmesh.chohan@atos.net]
>>>>>> Sent: Monday, January 13, 2014 4:09 PM
>>>>>> To: users@isis.apache.org
>>>>>> Subject: Domain Mappings 1:m Exception
>>>>>> 
>>>>>> Hi
>>>>>> 
>>>>>> I am implementing a domain object mapping of 1 to many.  I have followed
>>>>> the documentation on
>>>>> http://isis.apache.org/components/objectstores/jdo/managed-1-to-m-relationships.html
>>>>>> 
>>>>>> This is what I have implemented,
>>>>>> 
>>>>>> @javax.jdo.annotations.Persistent(mappedBy="shoppingBasket")
>>>>>>     private SortedSet<ShoppingBasketItem> shoppingBasketItem = new
>>>>> TreeSet<ShoppingBasketItem>();
>>>>>> 
>>>>>>     @javax.jdo.annotations.Column(allowsNull="false")
>>>>>> @MemberOrder(sequence = "3")
>>>>>>     public SortedSet <ShoppingBasketItem> getShoppingBasketItem() {
>>>>>>             return shoppingBasketItem;
>>>>>>     }
>>>>>> 
>>>>>>     public void setShoppingBasketItem(SortedSet <ShoppingBasketItem>
>>>>> shoppingBasketItem) {
>>>>>>             this.shoppingBasketItem = shoppingBasketItem;
>>>>>>     }
>>>>>> 
>>>>>> public class ShoppingBasketItem implements
>>>>> Comparable<ShoppingBasketItem> {
>>>>>> 
>>>>>>     private ShoppingBasket shoppingBasket;
>>>>>> 
>>>>>>     @javax.jdo.annotations.Column(allowsNull="false")
>>>>>>     public ShoppingBasket getShoppingBasket() {
>>>>>>             return shoppingBasket;
>>>>>>     }
>>>>>> 
>>>>>>     public void setShoppingBasket(ShoppingBasket shoppingBasket) {
>>>>>>             this.shoppingBasket = shoppingBasket;
>>>>>>     }
>>>>>> 
>>>>>> ...
>>>>>> 
>>>>>> When I run ISIS and test the screen, I am getting the following
>>>>> exception,
>>>>>> 
>>>>>> *       java.lang.IllegalArgumentException
>>>>>> *       No such method ' getShoppingBasketItem' or 'isShoppingBasketItem'
>>>>>> *
>>>>> org.apache.isis.applib.util.Clause#getValueOf(ObjectContracts.java:204)
>>>>>> *
>>>>> org.apache.isis.applib.util.ObjectContracts#compare(ObjectContracts.java:45)
>>>>>> *
>>>>> org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:117)
>>>>>> *
>>>>> org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:15)
>>>>>> *       java.util.TreeMap#put(TreeMap.java:545)
>>>>>> *       java.util.TreeSet#add(TreeSet.java:238)
>>>>>> *
>>>>> org.atos.tfgm.basket.ShoppingBaskets#getBasket(ShoppingBaskets.java:150)
>>>>>> *
>>>>> sun.reflect.NativeMethodAccessorImpl#invoke0(NativeMethodAccessorImpl.java:-2)
>>>>>> *
>>>>> sun.reflect.NativeMethodAccessorImpl#invoke(NativeMethodAccessorImpl.java:39)
>>>>>> *
>>>>> sun.reflect.DelegatingMethodAccessorImpl#invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>> *       java.lang.reflect.Method#invoke(Method.java:597)
>>>>>> 
>>>>>> 
>>>>>> Have I implemented the relationship incorrectly or missing something.
>>>>>> 
>>>>>> 
>>>>>> Regards
>>>>>> Dharmesh
>>>>>> 
>>>>> 
>>>>> 
> 

Re: Domain Mappings 1:m Exception

Posted by GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>.
Uppps!!! Sorry. There was a mistake on the "mappedBy" annotation's attribute.



@javax.jdo.annotations.PersistenceCapable(identityType = IdentityType.DATASTORE)
@javax.jdo.annotations.DatastoreIdentity(strategy = javax.jdo.annotations.IdGeneratorStrategy.IDENTITY, column = "id")
@javax.jdo.annotations.Version(strategy = VersionStrategy.VERSION_NUMBER, column = "version")
public class ShoppingBasket {

   // Isis Template: isjdc-1n-b-fk
   // {{ Items (Collection)
   @Persistent(mappedBy = "shoppingBasket", dependentElement = "true")
   private SortedSet<ShoppingBasketItem> items = new TreeSet<ShoppingBasketItem>();

   @MemberOrder(sequence = "1")
   public SortedSet<ShoppingBasketItem> getItems() {
       return this.items;
   }

   public void setItems(final SortedSet<ShoppingBasketItem> items) {
       this.items = items;
   }
   // }}
}


El 14/01/2014, a las 14:02, GESCONSULTOR - Óscar Bou <o....@gesconsultor.com> escribió:

> Please, verify also that the proper JDO annotations are on each class.
> 
> Try the following ones.  Both fields annotations have been automatically generated by using the Eclipse Isis templates available on [1]:
> 
> @javax.jdo.annotations.PersistenceCapable(identityType = IdentityType.DATASTORE)
> @javax.jdo.annotations.DatastoreIdentity(strategy = javax.jdo.annotations.IdGeneratorStrategy.IDENTITY, column = "id")
> @javax.jdo.annotations.Version(strategy = VersionStrategy.VERSION_NUMBER, column = "version")
> public class ShoppingBasket {
> 
>    // Isis Template: isjdc-1n-b-fk
>    // {{ Items (Collection)
>    @Persistent(mappedBy = "Items", dependentElement = "true")
>    private SortedSet<ShoppingBasketItem> items = new TreeSet<ShoppingBasketItem>();
> 
>    @MemberOrder(sequence = "1")
>    public SortedSet<ShoppingBasketItem> getItems() {
>        return this.items;
>    }
> 
>    public void setItems(final SortedSet<ShoppingBasketItem> items) {
>        this.items = items;
>    }
>    // }}
> }
> 
> 
> @javax.jdo.annotations.PersistenceCapable(identityType = IdentityType.DATASTORE)
> @javax.jdo.annotations.DatastoreIdentity(strategy = javax.jdo.annotations.IdGeneratorStrategy.IDENTITY, column = "id")
> @javax.jdo.annotations.Version(strategy = VersionStrategy.VERSION_NUMBER, column = "version")
> public class ShoppingBasketItem {
> 
>    // Isis Template: isjdp
>    // {{ ShoppingBasket (property)
>    private ShoppingBasket shoppingBasket;
> 
>    @MemberOrder(sequence = "1")
>    @Column(allowsNull = "false")
>    public ShoppingBasket getShoppingBasket() {
>        return this.shoppingBasket;
>    }
> 
>    public void setShoppingBasket(final ShoppingBasket shoppingBasket) {
>        this.shoppingBasket = shoppingBasket;
>    }
>    // }}
> 
> }
> 
> 
> 
> [1] http://isis.apache.org/getting-started/editor-templates.html
> 
> 
> El 14/01/2014, a las 11:32, Chohan, Dharmesh <dh...@atos.net> escribió:
> 
>> Thanks for your responses but my issue still exists and I am close to the problem but do not understand what the framework is doing.
>> 
>> @Dan, the framework does generate the relationship.
>> 
>> @Oscar, see class definition
>> 
>> @javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
>> @javax.jdo.annotations.DatastoreIdentity(
>>       strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY, column="id")
>> @javax.jdo.annotations.Version(
>>       strategy=VersionStrategy.VERSION_NUMBER, column="version")
>> 
>> public class ShoppingBasketItem implements Comparable<ShoppingBasketItem> {
>> 
>> 
>> 
>> CREATE TABLE "ShoppingBasketItem"
>>    [exec] (
>>    [exec]     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    [exec]     "amount" NVARCHAR(255) NOT NULL,
>>    [exec]     "cardNumber" NVARCHAR(255) NOT NULL,
>>    [exec]     "description" NVARCHAR(255) NULL,
>>    [exec]     "location" NVARCHAR(255) NOT NULL,
>>    [exec]     "shoppingBasket_id_OID" BIGINT NOT NULL,
>>    [exec]     "version" BIGINT NOT NULL,
>>    [exec]     "shoppingBasketItem_id_OID" BIGINT NULL,
>>    [exec]     CONSTRAINT "ShoppingBasketItem_PK" PRIMARY KEY ("id")
>>    [exec] )
>> 
>> CREATE TABLE "ShoppingBasket"
>>    [exec] (
>>    [exec]     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    [exec]     "cardNumber" NVARCHAR(255) NOT NULL,
>>    [exec]     "orderTotal" INTEGER NOT NULL,
>>    [exec]     "version" BIGINT NOT NULL,
>>    [exec]     CONSTRAINT "ShoppingBasket_PK" PRIMARY KEY ("id")
>>    [exec] )
>> 
>> ALTER TABLE "ShoppingBasketItem" ADD CONSTRAINT "ShoppingBasketItem_FK2" FOREIGN KEY ("shoppingBasketItem_id_OID") REFERENCES "ShoppingBasket" ("id")
>> 
>> ALTER TABLE "ShoppingBasketItem" ADD CONSTRAINT "ShoppingBasketItem_FK1" FOREIGN KEY ("shoppingBasket_id_OID") REFERENCES "ShoppingBasket" ("id")
>> 
>> INSERT INTO "ShoppingBasket" ("cardNumber","orderTotal","version") VALUES (<'123456789001'>,<15>,<1>)
>> 
>> INSERT INTO "ShoppingBasketItem" ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID") 
>> 	VALUES (<'123456789001'>,<'Please_Select'>,<'Item 1'>,<'▒5'>,<null>,<1>,<0>)
>> 
>> The error is Data already exists
>> integrity constraint violation: NOT NULL check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column: "shoppingBasket_id_OID"
>> 
>> The column shoppingBasket_id_OID is setting NULL in ShoppingBasketItem table which I am not sure where it is coming from?
>> 
>> 
>> Thanks
>> Dharmesh
>> 
>> -----Original Message-----
>> From: GESCONSULTOR - Óscar Bou [mailto:o.bou@gesconsultor.com] 
>> Sent: Tuesday, January 14, 2014 8:21 AM
>> To: users@isis.apache.org
>> Subject: Re: Domain Mappings 1:m Exception
>> 
>> 
>> 
>> Seems that the validation behavior is configurable, also for constraints, as per [1].
>> 
>> HTH,
>> 
>> Oscar
>> 
>> [1] http://www.datanucleus.org/products/accessplatform_2_2/rdbms/schema.html
>> 
>> 
>> 
>> 
>> El 14/01/2014, a las 08:23, Jeroen van der Wal <je...@stromboli.it> escribió:
>> 
>>> Just a sidenote: datanucleus only adds non-existing constraints. If
>>> you've changed your model it might be possible that you have to delete
>>> constraints manually in order to make things work.
>>> 
>>> On Mon, Jan 13, 2014 at 11:54 PM, Dan Haywood
>>> <da...@haywood-associates.co.uk> wrote:
>>>> Looking at how Estatio [1] boots up (see log below), it seems that JDO does
>>>> the CREATE TABLE first, then adds foreign key constraints afterwards using
>>>> ALTER TABLE.
>>>> 
>>>> HTH
>>>> Dan
>>>> 
>>>> [1] https://github.com/estatio/estatio
>>>> 
>>>> extract of Estatio's startup log:
>>>> 
>>>> 20:48:14,974 [Schema                        ] CREATE TABLE
>>>> "CommunicationChannel"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "description" NVARCHAR(254) NULL,
>>>>  "legal" BOOLEAN NOT NULL,
>>>>  "ownerOrganisationId" BIGINT NULL,
>>>>  "ownerPersonId" BIGINT NULL,
>>>>  "ownerPropertyId" BIGINT NULL,
>>>>  "ownerUnitId" BIGINT NULL,
>>>>  "reference" NVARCHAR(24) NULL,
>>>>  "type" NVARCHAR(30) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  "discriminator" NVARCHAR(255) NOT NULL,
>>>>  "emailAddress" NVARCHAR(50) NULL,
>>>>  "address1" NVARCHAR(100) NULL,
>>>>  "address2" NVARCHAR(100) NULL,
>>>>  "city" NVARCHAR(50) NULL,
>>>>  "countryId" BIGINT NULL,
>>>>  "postalCode" NVARCHAR(12) NULL,
>>>>  "stateId" BIGINT NULL,
>>>>  "phoneNumber" NVARCHAR(20) NULL,
>>>>  CONSTRAINT "CommunicationChannel_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:14,977 [Schema                        ] Execution Time = 3 ms
>>>> 20:48:14,982 [Schema                        ] Check of existence of
>>>> "LeaseTerm" returned no table
>>>> 20:48:14,982 [Schema                        ] Creating table "LeaseTerm"
>>>> 20:48:14,982 [Schema                        ] CREATE TABLE "LeaseTerm"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "endDate" DATE NULL,
>>>>  "frequency" NVARCHAR(30) NOT NULL,
>>>>  "leaseItemId" BIGINT NOT NULL,
>>>>  "nextLeaseTermId" BIGINT NULL,
>>>>  "sequence" NUMERIC NULL,
>>>>  "startDate" DATE NULL,
>>>>  "status" NVARCHAR(20) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  "discriminator" NVARCHAR(255) NOT NULL,
>>>>  "auditedTurnover" DECIMAL(19,2) NULL,
>>>>  "budgetedTurnover" DECIMAL(19,2) NULL,
>>>>  "contractualRent" DECIMAL(19,2) NULL,
>>>>  "turnoverRentRule" NVARCHAR(254) NULL,
>>>>  "turnoverRentValue" DECIMAL(19,2) NULL,
>>>>  "baseIndexStartDate" DATE NULL,
>>>>  "baseIndexValue" DECIMAL(19,1) NULL,
>>>>  "baseValue" DECIMAL(19,2) NULL,
>>>>  "effectiveDate" DATE NULL,
>>>>  "indexId" BIGINT NULL,
>>>>  "indexationPercentage" DECIMAL(19,1) NULL,
>>>>  "indexedValue" DECIMAL(19,2) NULL,
>>>>  "levellingPercentage" DECIMAL(19,1) NULL,
>>>>  "nextIndexStartDate" DATE NULL,
>>>>  "nextIndexValue" DECIMAL(19,1) NULL,
>>>>  "rebaseFactor" DECIMAL(19,3) NULL,
>>>>  "settledValue" DECIMAL(19,2) NULL,
>>>>  "auditedValue" DECIMAL(19,2) NULL,
>>>>  "budgetedValue" DECIMAL(19,2) NULL,
>>>>  CONSTRAINT "LeaseTerm_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:14,984 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:14,987 [Schema                        ] Check of existence of "Unit"
>>>> returned no table
>>>> 20:48:14,987 [Schema                        ] Creating table "Unit"
>>>> 20:48:14,987 [Schema                        ] CREATE TABLE "Unit"
>>>> (
>>>>  "id" BIGINT NOT NULL,
>>>>  "area" DECIMAL(19,2) NULL,
>>>>  "dehorsArea" DECIMAL(19,2) NULL,
>>>>  "endDate" DATE NULL,
>>>>  "mezzanineArea" DECIMAL(19,2) NULL,
>>>>  "propertyId" BIGINT NOT NULL,
>>>>  "salesArea" DECIMAL(19,2) NULL,
>>>>  "startDate" DATE NULL,
>>>>  "storageArea" DECIMAL(19,2) NULL,
>>>>  "type" NVARCHAR(30) NOT NULL,
>>>>  CONSTRAINT "Unit_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:14,988 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:14,991 [Schema                        ] Check of existence of
>>>> "BreakOption" returned no table
>>>> 20:48:14,991 [Schema                        ] Creating table "BreakOption"
>>>> 20:48:14,992 [Schema                        ] CREATE TABLE "BreakOption"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "breakDate" DATE NOT NULL,
>>>>  "description" NVARCHAR(254) NULL,
>>>>  "exerciseDate" DATE NOT NULL,
>>>>  "exerciseType" NVARCHAR(20) NOT NULL,
>>>>  "leaseId" BIGINT NOT NULL,
>>>>  "notificationPeriod" NVARCHAR(20) NULL,
>>>>  "type" NVARCHAR(30) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  "discriminator" NVARCHAR(255) NOT NULL,
>>>>  "reminderDate" DATE NULL,
>>>>  CONSTRAINT "BreakOption_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:14,994 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,000 [Schema                        ] Check of existence of
>>>> "InvoiceItem" returned no table
>>>> 20:48:15,000 [Schema                        ] Creating table "InvoiceItem"
>>>> 20:48:15,000 [Schema                        ] CREATE TABLE "InvoiceItem"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "chargeId" BIGINT NULL,
>>>>  "description" NVARCHAR(254) NULL,
>>>>  "dueDate" DATE NOT NULL,
>>>>  "endDate" DATE NULL,
>>>>  "grossAmount" DECIMAL(19,2) NULL,
>>>>  "invoiceId" BIGINT NULL,
>>>>  "netAmount" DECIMAL(19,2) NULL,
>>>>  "quantity" DECIMAL(19,2) NULL,
>>>>  "sequence" NUMERIC NOT NULL,
>>>>  "startDate" DATE NULL,
>>>>  "taxId" BIGINT NULL,
>>>>  "vatAmount" DECIMAL(19,2) NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  "discriminator" NVARCHAR(255) NOT NULL,
>>>>  "leaseTermId" BIGINT NULL,
>>>>  CONSTRAINT "InvoiceItem_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,002 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,007 [Schema                        ] Check of existence of "Brand"
>>>> returned no table
>>>> 20:48:15,008 [Schema                        ] Creating table "Brand"
>>>> 20:48:15,008 [Schema                        ] CREATE TABLE "Brand"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Brand_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,009 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,013 [Schema                        ] Check of existence of
>>>> "FixedAssetRole" returned no table
>>>> 20:48:15,013 [Schema                        ] Creating table
>>>> "FixedAssetRole"
>>>> 20:48:15,013 [Schema                        ] CREATE TABLE "FixedAssetRole"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "assetId" BIGINT NOT NULL,
>>>>  "endDate" DATE NULL,
>>>>  "partyId" BIGINT NOT NULL,
>>>>  "startDate" DATE NULL,
>>>>  "type" NVARCHAR(30) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "FixedAssetRole_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,015 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,019 [Schema                        ] Check of existence of
>>>> "Numerator" returned no table
>>>> 20:48:15,019 [Schema                        ] Creating table "Numerator"
>>>> 20:48:15,019 [Schema                        ] CREATE TABLE "Numerator"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "format" NVARCHAR(30) NOT NULL,
>>>>  "lastIncrement" NUMERIC NOT NULL,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "objectIdentifier" NVARCHAR(20) NULL,
>>>>  "objectType" NVARCHAR(254) NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Numerator_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,020 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,022 [Schema                        ] Check of existence of
>>>> "Agreement" returned no table
>>>> 20:48:15,022 [Schema                        ] Creating table "Agreement"
>>>> 20:48:15,022 [Schema                        ] CREATE TABLE "Agreement"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "endDate" DATE NULL,
>>>>  "name" NVARCHAR(50) NULL,
>>>>  "nextAgreementId" BIGINT NULL,
>>>>  "reference" NVARCHAR(24) NOT NULL,
>>>>  "startDate" DATE NULL,
>>>>  "typeId" BIGINT NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  "discriminator" NVARCHAR(255) NOT NULL,
>>>>  CONSTRAINT "Agreement_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,023 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,025 [Schema                        ] Check of existence of
>>>> "BankMandate" returned no table
>>>> 20:48:15,025 [Schema                        ] Creating table "BankMandate"
>>>> 20:48:15,025 [Schema                        ] CREATE TABLE "BankMandate"
>>>> (
>>>>  "id" BIGINT NOT NULL,
>>>>  "bankAccountId" BIGINT NOT NULL,
>>>>  CONSTRAINT "BankMandate_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,026 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,028 [Schema                        ] Check of existence of "Event"
>>>> returned no table
>>>> 20:48:15,028 [Schema                        ] Creating table "Event"
>>>> 20:48:15,028 [Schema                        ] CREATE TABLE "Event"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "calendarName" NVARCHAR(254) NOT NULL,
>>>>  "date" DATE NOT NULL,
>>>>  "notes" NVARCHAR(4000) NULL,
>>>>  "subjectBreakOptionId" BIGINT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Event_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,029 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,031 [Schema                        ] Check of existence of
>>>> "ChargeGroup" returned no table
>>>> 20:48:15,031 [Schema                        ] Creating table "ChargeGroup"
>>>> 20:48:15,031 [Schema                        ] CREATE TABLE "ChargeGroup"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "reference" NVARCHAR(24) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "ChargeGroup_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,032 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,034 [Schema                        ] Check of existence of
>>>> "UserSetting" returned no table
>>>> 20:48:15,034 [Schema                        ] Creating table "UserSetting"
>>>> 20:48:15,034 [Schema                        ] CREATE TABLE "UserSetting"
>>>> (
>>>>  "key" NVARCHAR(128) NOT NULL,
>>>>  "user" NVARCHAR(50) NOT NULL,
>>>>  "description" NVARCHAR(254) NULL,
>>>>  "type" NVARCHAR(20) NOT NULL,
>>>>  "valueRaw" NVARCHAR(255) NOT NULL,
>>>>  CONSTRAINT "UserSetting_PK" PRIMARY KEY ("key","user")
>>>> )
>>>> 20:48:15,035 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,038 [Schema                        ] Check of existence of
>>>> "Currency" returned no table
>>>> 20:48:15,038 [Schema                        ] Creating table "Currency"
>>>> 20:48:15,038 [Schema                        ] CREATE TABLE "Currency"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "reference" NVARCHAR(24) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Currency_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,039 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,043 [Schema                        ] Check of existence of
>>>> "TaxRate" returned no table
>>>> 20:48:15,043 [Schema                        ] Creating table "TaxRate"
>>>> 20:48:15,043 [Schema                        ] CREATE TABLE "TaxRate"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "endDate" DATE NULL,
>>>>  "externalReference" NVARCHAR(50) NULL,
>>>>  "nextTaxRateId" BIGINT NULL,
>>>>  "percentage" DECIMAL(19,2) NULL,
>>>>  "startDate" DATE NULL,
>>>>  "taxId" BIGINT NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "TaxRate_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,043 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,046 [Schema                        ] Check of existence of
>>>> "PartyRegistration" returned no table
>>>> 20:48:15,046 [Schema                        ] Creating table
>>>> "PartyRegistration"
>>>> 20:48:15,046 [Schema                        ] CREATE TABLE
>>>> "PartyRegistration"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "endDate" DATE NULL,
>>>>  "partyId" BIGINT NOT NULL,
>>>>  "startDate" DATE NULL,
>>>>  "type" NVARCHAR(30) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "PartyRegistration_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,047 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,050 [Schema                        ] Check of existence of
>>>> "AgreementRoleType" returned no table
>>>> 20:48:15,050 [Schema                        ] Creating table
>>>> "AgreementRoleType"
>>>> 20:48:15,050 [Schema                        ] CREATE TABLE
>>>> "AgreementRoleType"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "appliesToAgreementTypeId" BIGINT NOT NULL,
>>>>  "title" NVARCHAR(50) NOT NULL,
>>>>  CONSTRAINT "AgreementRoleType_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,051 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,055 [Schema                        ] Check of existence of
>>>> "AuditEntry" returned no table
>>>> 20:48:15,055 [Schema                        ] Creating table "AuditEntry"
>>>> 20:48:15,056 [Schema                        ] CREATE TABLE "AuditEntry"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "identifier" NVARCHAR(20) NOT NULL,
>>>>  "objectType" NVARCHAR(254) NOT NULL,
>>>>  "postValue" NVARCHAR(255) NULL,
>>>>  "preValue" NVARCHAR(255) NULL,
>>>>  "timestampEpoch" BIGINT NOT NULL,
>>>>  "user" NVARCHAR(50) NULL,
>>>>  CONSTRAINT "AuditEntry_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,057 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,060 [Schema                        ] Check of existence of
>>>> "FinancialAccount" returned no table
>>>> 20:48:15,060 [Schema                        ] Creating table
>>>> "FinancialAccount"
>>>> 20:48:15,060 [Schema                        ] CREATE TABLE
>>>> "FinancialAccount"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "ownerPartyId" BIGINT NOT NULL,
>>>>  "reference" NVARCHAR(24) NOT NULL,
>>>>  "type" NVARCHAR(30) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  "discriminator" NVARCHAR(255) NOT NULL,
>>>>  CONSTRAINT "FinancialAccount_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,062 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,068 [Schema                        ] Check of existence of
>>>> "BankAccount" returned no table
>>>> 20:48:15,068 [Schema                        ] Creating table "BankAccount"
>>>> 20:48:15,068 [Schema                        ] CREATE TABLE "BankAccount"
>>>> (
>>>>  "id" BIGINT NOT NULL,
>>>>  "accountNumber" NVARCHAR(20) NULL,
>>>>  "bankPartyId" BIGINT NULL,
>>>>  "bankAccountType" NVARCHAR(30) NOT NULL,
>>>>  "branchCode" NVARCHAR(20) NULL,
>>>>  "countryId" BIGINT NULL,
>>>>  "iban" NVARCHAR(32) NULL,
>>>>  "nationalBankCode" NVARCHAR(20) NULL,
>>>>  "nationalCheckCode" NVARCHAR(20) NULL,
>>>>  "fixedAssetId" BIGINT NULL,
>>>>  CONSTRAINT "BankAccount_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,070 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,072 [Schema                        ] Check of existence of
>>>> "UnitSize" returned no table
>>>> 20:48:15,072 [Schema                        ] Creating table "UnitSize"
>>>> 20:48:15,072 [Schema                        ] CREATE TABLE "UnitSize"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "UnitSize_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,073 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,075 [Schema                        ] Check of existence of
>>>> "ApplicationSetting" returned no table
>>>> 20:48:15,075 [Schema                        ] Creating table
>>>> "ApplicationSetting"
>>>> 20:48:15,075 [Schema                        ] CREATE TABLE
>>>> "ApplicationSetting"
>>>> (
>>>>  "key" NVARCHAR(128) NOT NULL,
>>>>  "description" NVARCHAR(254) NULL,
>>>>  "type" NVARCHAR(20) NOT NULL,
>>>>  "valueRaw" NVARCHAR(255) NOT NULL,
>>>>  CONSTRAINT "ApplicationSetting_PK" PRIMARY KEY ("key")
>>>> )
>>>> 20:48:15,076 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,079 [Schema                        ] Check of existence of
>>>> "FixedAsset" returned no table
>>>> 20:48:15,079 [Schema                        ] Creating table "FixedAsset"
>>>> 20:48:15,079 [Schema                        ] CREATE TABLE "FixedAsset"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "reference" NVARCHAR(24) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  "discriminator" NVARCHAR(255) NOT NULL,
>>>>  CONSTRAINT "FixedAsset_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,080 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,082 [Schema                        ] Check of existence of
>>>> "Property" returned no table
>>>> 20:48:15,082 [Schema                        ] Creating table "Property"
>>>> 20:48:15,082 [Schema                        ] CREATE TABLE "Property"
>>>> (
>>>>  "id" BIGINT NOT NULL,
>>>>  "acquireDate" DATE NULL,
>>>>  "area" DECIMAL(19,2) NULL,
>>>>  "city" NVARCHAR(50) NULL,
>>>>  "countryId" BIGINT NULL,
>>>>  "disposalDate" DATE NULL,
>>>>  "location" BLOB NULL,
>>>>  "openingDate" DATE NULL,
>>>>  "type" NVARCHAR(30) NOT NULL,
>>>>  CONSTRAINT "Property_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,083 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,085 [Schema                        ] Check of existence of
>>>> "LeaseAssignment" returned no table
>>>> 20:48:15,085 [Schema                        ] Creating table
>>>> "LeaseAssignment"
>>>> 20:48:15,085 [Schema                        ] CREATE TABLE "LeaseAssignment"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "assignmentDate" DATE NOT NULL,
>>>>  "nextLeaseId" BIGINT NULL,
>>>>  "previousLeaseId" BIGINT NULL,
>>>>  "type" NVARCHAR(30) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "LeaseAssignment_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,086 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,087 [Schema                        ] Check of existence of "State"
>>>> returned no table
>>>> 20:48:15,087 [Schema                        ] Creating table "State"
>>>> 20:48:15,087 [Schema                        ] CREATE TABLE "State"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "countryId" BIGINT NOT NULL,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "reference" NVARCHAR(6) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "State_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,088 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,090 [Schema                        ] Check of existence of
>>>> "LeaseStatusReason" returned no table
>>>> 20:48:15,090 [Schema                        ] Creating table
>>>> "LeaseStatusReason"
>>>> 20:48:15,090 [Schema                        ] CREATE TABLE
>>>> "LeaseStatusReason"
>>>> (
>>>>  "LeaseStatusReason_ID" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "leaseId" BIGINT NOT NULL,
>>>>  "reason" NVARCHAR(4000) NOT NULL,
>>>>  "status" NVARCHAR(20) NOT NULL,
>>>>  "timestamp" BIGINT NOT NULL,
>>>>  "user" NVARCHAR(50) NOT NULL,
>>>>  CONSTRAINT "LeaseStatusReason_PK" PRIMARY KEY ("LeaseStatusReason_ID")
>>>> )
>>>> 20:48:15,091 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,092 [Schema                        ] Check of existence of
>>>> "Activity" returned no table
>>>> 20:48:15,092 [Schema                        ] Creating table "Activity"
>>>> 20:48:15,093 [Schema                        ] CREATE TABLE "Activity"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "sectorId" BIGINT NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Activity_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,093 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,095 [Schema                        ] Check of existence of "Party"
>>>> returned no table
>>>> 20:48:15,095 [Schema                        ] Creating table "Party"
>>>> 20:48:15,095 [Schema                        ] CREATE TABLE "Party"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "name" NVARCHAR(80) NOT NULL,
>>>>  "reference" NVARCHAR(24) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  "discriminator" NVARCHAR(255) NOT NULL,
>>>>  CONSTRAINT "Party_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,096 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,098 [Schema                        ] Check of existence of
>>>> "Organisation" returned no table
>>>> 20:48:15,098 [Schema                        ] Creating table "Organisation"
>>>> 20:48:15,098 [Schema                        ] CREATE TABLE "Organisation"
>>>> (
>>>>  "id" BIGINT NOT NULL,
>>>>  "fiscalCode" NVARCHAR(30) NULL,
>>>>  "vatCode" NVARCHAR(30) NULL,
>>>>  CONSTRAINT "Organisation_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,099 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,101 [Schema                        ] Check of existence of
>>>> "FixedAssetRegistrationType" returned no table
>>>> 20:48:15,101 [Schema                        ] Creating table
>>>> "FixedAssetRegistrationType"
>>>> 20:48:15,101 [Schema                        ] CREATE TABLE
>>>> "FixedAssetRegistrationType"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "fullyQualifiedClassName" NVARCHAR(254) NOT NULL,
>>>>  "title" NVARCHAR(50) NOT NULL,
>>>>  CONSTRAINT "FixedAssetRegistrationType_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,103 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,105 [Schema                        ] Check of existence of
>>>> "FixedAssetRegistration" returned no table
>>>> 20:48:15,105 [Schema                        ] Creating table
>>>> "FixedAssetRegistration"
>>>> 20:48:15,106 [Schema                        ] CREATE TABLE
>>>> "FixedAssetRegistration"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "subjectId" BIGINT NOT NULL,
>>>>  "typeId" BIGINT NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  "discriminator" NVARCHAR(255) NOT NULL,
>>>>  CONSTRAINT "FixedAssetRegistration_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,107 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,109 [Schema                        ] Check of existence of
>>>> "LandRegister" returned no table
>>>> 20:48:15,109 [Schema                        ] Creating table "LandRegister"
>>>> 20:48:15,110 [Schema                        ] CREATE TABLE "LandRegister"
>>>> (
>>>>  "id" BIGINT NOT NULL,
>>>>  "categoria" NVARCHAR(255) NULL,
>>>>  "classe" NVARCHAR(255) NULL,
>>>>  "codiceComuneCatastale" NVARCHAR(255) NULL,
>>>>  "comuneAmministrativo" NVARCHAR(255) NULL,
>>>>  "comuneCatastale" NVARCHAR(255) NULL,
>>>>  "consistenza" NVARCHAR(255) NULL,
>>>>  "foglio" NVARCHAR(255) NULL,
>>>>  "particella" NVARCHAR(255) NULL,
>>>>  "rendita" NVARCHAR(255) NULL,
>>>>  "subalterno" NVARCHAR(255) NULL,
>>>>  CONSTRAINT "LandRegister_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,110 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,112 [Schema                        ] Check of existence of "Tag"
>>>> returned no table
>>>> 20:48:15,112 [Schema                        ] Creating table "Tag"
>>>> 20:48:15,112 [Schema                        ] CREATE TABLE "Tag"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "objectType" NVARCHAR(254) NOT NULL,
>>>>  "taggable_Occupancy_id_EID" BIGINT NULL,
>>>>  "value" NVARCHAR(255) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Tag_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,114 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,116 [Schema                        ] Check of existence of
>>>> "Charge" returned no table
>>>> 20:48:15,116 [Schema                        ] Creating table "Charge"
>>>> 20:48:15,116 [Schema                        ] CREATE TABLE "Charge"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "description" NVARCHAR(254) NOT NULL,
>>>>  "externalReference" NVARCHAR(50) NULL,
>>>>  "groupId" BIGINT NOT NULL,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "reference" NVARCHAR(24) NOT NULL,
>>>>  "sortOrder" NVARCHAR(24) NULL,
>>>>  "taxId" BIGINT NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Charge_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,117 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,120 [Schema                        ] Check of existence of
>>>> "IndexValue" returned no table
>>>> 20:48:15,120 [Schema                        ] Creating table "IndexValue"
>>>> 20:48:15,120 [Schema                        ] CREATE TABLE "IndexValue"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "indexBaseId" BIGINT NOT NULL,
>>>>  "startDate" DATE NOT NULL,
>>>>  "value" DECIMAL(19,4) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "IndexValue_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,121 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,124 [Schema                        ] Check of existence of "Tax"
>>>> returned no table
>>>> 20:48:15,124 [Schema                        ] Creating table "Tax"
>>>> 20:48:15,124 [Schema                        ] CREATE TABLE "Tax"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "externalReference" NVARCHAR(50) NULL,
>>>>  "name" NVARCHAR(50) NULL,
>>>>  "reference" NVARCHAR(24) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Tax_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,125 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,127 [Schema                        ] Check of existence of
>>>> "Invoice" returned no table
>>>> 20:48:15,127 [Schema                        ] Creating table "Invoice"
>>>> 20:48:15,127 [Schema                        ] CREATE TABLE "Invoice"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "buyerPartyId" BIGINT NOT NULL,
>>>>  "collectionNumber" NVARCHAR(16) NULL,
>>>>  "currencyId" BIGINT NULL,
>>>>  "dueDate" DATE NOT NULL,
>>>>  "invoiceDate" DATE NULL,
>>>>  "invoiceNumber" NVARCHAR(16) NULL,
>>>>  "lastItemSequence" NUMERIC NULL,
>>>>  "sourceLeaseId" BIGINT NULL,
>>>>  "paymentMethod" NVARCHAR(30) NOT NULL,
>>>>  "sellerPartyId" BIGINT NOT NULL,
>>>>  "status" NVARCHAR(20) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Invoice_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,129 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,130 [Schema                        ] Check of existence of
>>>> "Person" returned no table
>>>> 20:48:15,130 [Schema                        ] Creating table "Person"
>>>> 20:48:15,131 [Schema                        ] CREATE TABLE "Person"
>>>> (
>>>>  "id" BIGINT NOT NULL,
>>>>  "firstName" NVARCHAR(50) NULL,
>>>>  "gender" NVARCHAR(30) NOT NULL,
>>>>  "initials" NVARCHAR(3) NULL,
>>>>  "lastName" NVARCHAR(50) NOT NULL,
>>>>  CONSTRAINT "Person_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,131 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,133 [Schema                        ] Check of existence of
>>>> "Country" returned no table
>>>> 20:48:15,133 [Schema                        ] Creating table "Country"
>>>> 20:48:15,134 [Schema                        ] CREATE TABLE "Country"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "alpha2Code" NVARCHAR(2) NOT NULL,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "reference" NVARCHAR(24) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Country_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,135 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,137 [Schema                        ] Check of existence of "Lease"
>>>> returned no table
>>>> 20:48:15,137 [Schema                        ] Creating table "Lease"
>>>> 20:48:15,137 [Schema                        ] CREATE TABLE "Lease"
>>>> (
>>>>  "id" BIGINT NOT NULL,
>>>>  "leaseTypeId" BIGINT NULL,
>>>>  "paidByBankMandateId" BIGINT NULL,
>>>>  "status" NVARCHAR(20) NOT NULL,
>>>>  "tenancyEndDate" DATE NULL,
>>>>  "tenancyStartDate" DATE NULL,
>>>>  CONSTRAINT "Lease_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,138 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,140 [Schema                        ] Check of existence of
>>>> "LeaseItem" returned no table
>>>> 20:48:15,140 [Schema                        ] Creating table "LeaseItem"
>>>> 20:48:15,140 [Schema                        ] CREATE TABLE "LeaseItem"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "chargeId" BIGINT NOT NULL,
>>>>  "endDate" DATE NULL,
>>>>  "epochDate" DATE NULL,
>>>>  "invoicingFrequency" NVARCHAR(30) NOT NULL,
>>>>  "leaseId" BIGINT NOT NULL,
>>>>  "nextDueDate" DATE NULL,
>>>>  "paymentMethod" NVARCHAR(30) NOT NULL,
>>>>  "sequence" NUMERIC NOT NULL,
>>>>  "startDate" DATE NULL,
>>>>  "status" NVARCHAR(20) NOT NULL,
>>>>  "type" NVARCHAR(30) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "LeaseItem_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,142 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,144 [Schema                        ] Check of existence of
>>>> "AgreementRoleCommunicationChannelType" returned no table
>>>> 20:48:15,144 [Schema                        ] Creating table
>>>> "AgreementRoleCommunicationChannelType"
>>>> 20:48:15,144 [Schema                        ] CREATE TABLE
>>>> "AgreementRoleCommunicationChannelType"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "appliesToAgreementTypeId" BIGINT NOT NULL,
>>>>  "title" NVARCHAR(50) NOT NULL,
>>>>  CONSTRAINT "AgreementRoleCommunicationChannelType_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,145 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,148 [Schema                        ] Check of existence of
>>>> "LeaseType" returned no table
>>>> 20:48:15,148 [Schema                        ] Creating table "LeaseType"
>>>> 20:48:15,148 [Schema                        ] CREATE TABLE "LeaseType"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "reference" NVARCHAR(24) NOT NULL,
>>>>  CONSTRAINT "LeaseType_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,149 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,151 [Schema                        ] Check of existence of
>>>> "AgreementRoleCommunicationChannel" returned no table
>>>> 20:48:15,151 [Schema                        ] Creating table
>>>> "AgreementRoleCommunicationChannel"
>>>> 20:48:15,151 [Schema                        ] CREATE TABLE
>>>> "AgreementRoleCommunicationChannel"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "communicationChannelId" BIGINT NOT NULL,
>>>>  "endDate" DATE NULL,
>>>>  "agreementRoleId" BIGINT NOT NULL,
>>>>  "startDate" DATE NULL,
>>>>  "typeId" BIGINT NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "AgreementRoleCommunicationChannel_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,153 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,155 [Schema                        ] Check of existence of
>>>> "AgreementType" returned no table
>>>> 20:48:15,155 [Schema                        ] Creating table "AgreementType"
>>>> 20:48:15,155 [Schema                        ] CREATE TABLE "AgreementType"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "title" NVARCHAR(50) NOT NULL,
>>>>  CONSTRAINT "AgreementType_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,156 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,158 [Schema                        ] Check of existence of
>>>> "Occupancy" returned no table
>>>> 20:48:15,158 [Schema                        ] Creating table "Occupancy"
>>>> 20:48:15,158 [Schema                        ] CREATE TABLE "Occupancy"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "activityId" BIGINT NULL,
>>>>  "brandId" BIGINT NULL,
>>>>  "endDate" DATE NULL,
>>>>  "leaseId" BIGINT NOT NULL,
>>>>  "reportOCR" NVARCHAR(30) NOT NULL,
>>>>  "reportRent" NVARCHAR(30) NOT NULL,
>>>>  "reportTurnover" NVARCHAR(30) NOT NULL,
>>>>  "sectorId" BIGINT NULL,
>>>>  "startDate" DATE NULL,
>>>>  "unitId" BIGINT NOT NULL,
>>>>  "unitSizeId" BIGINT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Occupancy_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,160 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,161 [Schema                        ] Check of existence of
>>>> "IndexBase" returned no table
>>>> 20:48:15,161 [Schema                        ] Creating table "IndexBase"
>>>> 20:48:15,161 [Schema                        ] CREATE TABLE "IndexBase"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "factor" DECIMAL(19,4) NULL,
>>>>  "indexId" BIGINT NOT NULL,
>>>>  "nextIndexBaseId" BIGINT NULL,
>>>>  "startDate" DATE NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "IndexBase_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,162 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,164 [Schema                        ] Check of existence of "Index"
>>>> returned no table
>>>> 20:48:15,164 [Schema                        ] Creating table "Index"
>>>> 20:48:15,164 [Schema                        ] CREATE TABLE "Index"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "reference" NVARCHAR(24) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Index_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,165 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,167 [Schema                        ] Check of existence of
>>>> "AgreementRole" returned no table
>>>> 20:48:15,167 [Schema                        ] Creating table "AgreementRole"
>>>> 20:48:15,167 [Schema                        ] CREATE TABLE "AgreementRole"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "agreementId" BIGINT NOT NULL,
>>>>  "endDate" DATE NULL,
>>>>  "partyId" BIGINT NOT NULL,
>>>>  "startDate" DATE NULL,
>>>>  "typeId" BIGINT NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "AgreementRole_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,168 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,170 [Schema                        ] Check of existence of
>>>> "Sector" returned no table
>>>> 20:48:15,170 [Schema                        ] Creating table "Sector"
>>>> 20:48:15,170 [Schema                        ] CREATE TABLE "Sector"
>>>> (
>>>>  "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>>  "name" NVARCHAR(50) NOT NULL,
>>>>  "version" BIGINT NOT NULL,
>>>>  CONSTRAINT "Sector_PK" PRIMARY KEY ("id")
>>>> )
>>>> 20:48:15,171 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,176 [Schema                        ] Creating foreign key
>>>> constraint : "CommunicationChannel_FK2" in catalog "" schema ""
>>>> 20:48:15,176 [Schema                        ] ALTER TABLE
>>>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK2" FOREIGN
>>>> KEY ("stateId") REFERENCES "State" ("id")
>>>> 20:48:15,178 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,178 [Schema                        ] Creating foreign key
>>>> constraint : "CommunicationChannel_FK1" in catalog "" schema ""
>>>> 20:48:15,178 [Schema                        ] ALTER TABLE
>>>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK1" FOREIGN
>>>> KEY ("countryId") REFERENCES "Country" ("id")
>>>> 20:48:15,180 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,180 [Schema                        ] Creating foreign key
>>>> constraint : "CommunicationChannel_FK4" in catalog "" schema ""
>>>> 20:48:15,180 [Schema                        ] ALTER TABLE
>>>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK4" FOREIGN
>>>> KEY ("ownerPersonId") REFERENCES "Person" ("id")
>>>> 20:48:15,181 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,181 [Schema                        ] Creating foreign key
>>>> constraint : "CommunicationChannel_FK3" in catalog "" schema ""
>>>> 20:48:15,181 [Schema                        ] ALTER TABLE
>>>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK3" FOREIGN
>>>> KEY ("ownerOrganisationId") REFERENCES "Organisation" ("id")
>>>> 20:48:15,182 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,182 [Schema                        ] Creating foreign key
>>>> constraint : "CommunicationChannel_FK6" in catalog "" schema ""
>>>> 20:48:15,182 [Schema                        ] ALTER TABLE
>>>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK6" FOREIGN
>>>> KEY ("ownerUnitId") REFERENCES "Unit" ("id")
>>>> 20:48:15,183 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,183 [Schema                        ] Creating foreign key
>>>> constraint : "CommunicationChannel_FK5" in catalog "" schema ""
>>>> 20:48:15,183 [Schema                        ] ALTER TABLE
>>>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK5" FOREIGN
>>>> KEY ("ownerPropertyId") REFERENCES "Property" ("id")
>>>> 20:48:15,184 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,186 [Schema                        ] Creating index
>>>> "CommunicationChannel_N53" in catalog "" schema ""
>>>> 20:48:15,186 [Schema                        ] CREATE INDEX
>>>> "CommunicationChannel_N53" ON "CommunicationChannel" ("countryId")
>>>> 20:48:15,187 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,187 [Schema                        ] Creating index
>>>> "CommunicationChannel_N54" in catalog "" schema ""
>>>> 20:48:15,187 [Schema                        ] CREATE INDEX
>>>> "CommunicationChannel_N54" ON "CommunicationChannel" ("ownerUnitId")
>>>> 20:48:15,187 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,187 [Schema                        ] Creating index
>>>> "CommunicationChannel_N51" in catalog "" schema ""
>>>> 20:48:15,187 [Schema                        ] CREATE INDEX
>>>> "CommunicationChannel_N51" ON "CommunicationChannel" ("ownerPropertyId")
>>>> 20:48:15,187 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,187 [Schema                        ] Creating index
>>>> "CommunicationChannel_N52" in catalog "" schema ""
>>>> 20:48:15,187 [Schema                        ] CREATE INDEX
>>>> "CommunicationChannel_N52" ON "CommunicationChannel" ("stateId")
>>>> 20:48:15,188 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,188 [Schema                        ] Creating index
>>>> "PhoneNumber_phoneNumber_IDX" in catalog "" schema ""
>>>> 20:48:15,188 [Schema                        ] CREATE INDEX
>>>> "PhoneNumber_phoneNumber_IDX" ON "CommunicationChannel" ("phoneNumber")
>>>> 20:48:15,188 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,188 [Schema                        ] Creating index
>>>> "PostalAddress_main_idx" in catalog "" schema ""
>>>> 20:48:15,188 [Schema                        ] CREATE INDEX
>>>> "PostalAddress_main_idx" ON "CommunicationChannel"
>>>> ("ownerOrganisationId","ownerPersonId","ownerPropertyId","ownerUnitId","address1","postalCode","city","countryId")
>>>> 20:48:15,188 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,188 [Schema                        ] Creating index
>>>> "CommunicationChannel_N49" in catalog "" schema ""
>>>> 20:48:15,188 [Schema                        ] CREATE INDEX
>>>> "CommunicationChannel_N49" ON "CommunicationChannel" ("ownerOrganisationId")
>>>> 20:48:15,189 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,189 [Schema                        ] Creating index
>>>> "CommunicationChannel_N50" in catalog "" schema ""
>>>> 20:48:15,189 [Schema                        ] CREATE INDEX
>>>> "CommunicationChannel_N50" ON "CommunicationChannel" ("ownerPersonId")
>>>> 20:48:15,189 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,189 [Schema                        ] Creating index
>>>> "EmailAddress_emailAddress_IDX" in catalog "" schema ""
>>>> 20:48:15,189 [Schema                        ] CREATE INDEX
>>>> "EmailAddress_emailAddress_IDX" ON "CommunicationChannel" ("emailAddress")
>>>> 20:48:15,190 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,190 [Schema                        ] Creating foreign key
>>>> constraint : "LeaseTerm_FK2" in catalog "" schema ""
>>>> 20:48:15,190 [Schema                        ] ALTER TABLE "LeaseTerm" ADD
>>>> CONSTRAINT "LeaseTerm_FK2" FOREIGN KEY ("indexId") REFERENCES "Index"
>>>> ("id")
>>>> 20:48:15,192 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,192 [Schema                        ] Creating foreign key
>>>> constraint : "LeaseTerm_FK3" in catalog "" schema ""
>>>> 20:48:15,192 [Schema                        ] ALTER TABLE "LeaseTerm" ADD
>>>> CONSTRAINT "LeaseTerm_FK3" FOREIGN KEY ("nextLeaseTermId") REFERENCES
>>>> "LeaseTerm" ("id")
>>>> 20:48:15,194 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,194 [Schema                        ] Creating foreign key
>>>> constraint : "LeaseTerm_FK1" in catalog "" schema ""
>>>> 20:48:15,194 [Schema                        ] ALTER TABLE "LeaseTerm" ADD
>>>> CONSTRAINT "LeaseTerm_FK1" FOREIGN KEY ("leaseItemId") REFERENCES
>>>> "LeaseItem" ("id")
>>>> 20:48:15,195 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,196 [Schema                        ] Creating index
>>>> "LeaseTerm_N50" in catalog "" schema ""
>>>> 20:48:15,196 [Schema                        ] CREATE INDEX "LeaseTerm_N50"
>>>> ON "LeaseTerm" ("indexId")
>>>> 20:48:15,196 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,196 [Schema                        ] Creating index
>>>> "LeaseTerm_leaseItem_startDate_IDX" in catalog "" schema ""
>>>> 20:48:15,196 [Schema                        ] CREATE INDEX
>>>> "LeaseTerm_leaseItem_startDate_IDX" ON "LeaseTerm"
>>>> ("leaseItemId","startDate")
>>>> 20:48:15,196 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,196 [Schema                        ] Creating index
>>>> "LeaseTerm_N51" in catalog "" schema ""
>>>> 20:48:15,196 [Schema                        ] CREATE INDEX "LeaseTerm_N51"
>>>> ON "LeaseTerm" ("leaseItemId")
>>>> 20:48:15,197 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,197 [Schema                        ] Creating index
>>>> "LeaseTerm_N49" in catalog "" schema ""
>>>> 20:48:15,197 [Schema                        ] CREATE INDEX "LeaseTerm_N49"
>>>> ON "LeaseTerm" ("nextLeaseTermId")
>>>> 20:48:15,197 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,197 [Schema                        ] Creating index
>>>> "LeaseTerm_leaseItem_sequence_IDX" in catalog "" schema ""
>>>> 20:48:15,197 [Schema                        ] CREATE INDEX
>>>> "LeaseTerm_leaseItem_sequence_IDX" ON "LeaseTerm" ("leaseItemId","sequence")
>>>> 20:48:15,197 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,198 [Schema                        ] Creating foreign key
>>>> constraint : "Unit_FK1" in catalog "" schema ""
>>>> 20:48:15,198 [Schema                        ] ALTER TABLE "Unit" ADD
>>>> CONSTRAINT "Unit_FK1" FOREIGN KEY ("id") REFERENCES "FixedAsset" ("id")
>>>> 20:48:15,199 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,199 [Schema                        ] Creating foreign key
>>>> constraint : "Unit_FK2" in catalog "" schema ""
>>>> 20:48:15,199 [Schema                        ] ALTER TABLE "Unit" ADD
>>>> CONSTRAINT "Unit_FK2" FOREIGN KEY ("propertyId") REFERENCES "Property"
>>>> ("id")
>>>> 20:48:15,200 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,200 [Schema                        ] Creating index "Unit_N49" in
>>>> catalog "" schema ""
>>>> 20:48:15,200 [Schema                        ] CREATE INDEX "Unit_N49" ON
>>>> "Unit" ("propertyId")
>>>> 20:48:15,200 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,200 [Schema                        ] Unique metadata defined to
>>>> use field notificationDate which doesn't exist in this class
>>>> 20:48:15,200 [Schema                        ] Creating foreign key
>>>> constraint : "BreakOption_FK1" in catalog "" schema ""
>>>> 20:48:15,200 [Schema                        ] ALTER TABLE "BreakOption" ADD
>>>> CONSTRAINT "BreakOption_FK1" FOREIGN KEY ("leaseId") REFERENCES "Lease"
>>>> ("id")
>>>> 20:48:15,202 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,202 [Schema                        ] Creating index
>>>> "BreakOption_N49" in catalog "" schema ""
>>>> 20:48:15,202 [Schema                        ] CREATE INDEX
>>>> "BreakOption_N49" ON "BreakOption" ("leaseId")
>>>> 20:48:15,203 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,203 [Schema                        ] Creating foreign key
>>>> constraint : "InvoiceItem_FK4" in catalog "" schema ""
>>>> 20:48:15,203 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
>>>> CONSTRAINT "InvoiceItem_FK4" FOREIGN KEY ("invoiceId") REFERENCES "Invoice"
>>>> ("id")
>>>> 20:48:15,204 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,204 [Schema                        ] Creating foreign key
>>>> constraint : "InvoiceItem_FK3" in catalog "" schema ""
>>>> 20:48:15,204 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
>>>> CONSTRAINT "InvoiceItem_FK3" FOREIGN KEY ("leaseTermId") REFERENCES
>>>> "LeaseTerm" ("id")
>>>> 20:48:15,205 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,205 [Schema                        ] Creating foreign key
>>>> constraint : "InvoiceItem_FK2" in catalog "" schema ""
>>>> 20:48:15,205 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
>>>> CONSTRAINT "InvoiceItem_FK2" FOREIGN KEY ("chargeId") REFERENCES "Charge"
>>>> ("id")
>>>> 20:48:15,206 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,206 [Schema                        ] Creating foreign key
>>>> constraint : "InvoiceItem_FK1" in catalog "" schema ""
>>>> 20:48:15,206 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
>>>> CONSTRAINT "InvoiceItem_FK1" FOREIGN KEY ("taxId") REFERENCES "Tax" ("id")
>>>> 20:48:15,207 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,208 [Schema                        ] Creating index
>>>> "InvoiceItem_N51" in catalog "" schema ""
>>>> 20:48:15,208 [Schema                        ] CREATE INDEX
>>>> "InvoiceItem_N51" ON "InvoiceItem" ("taxId")
>>>> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,208 [Schema                        ] Creating index
>>>> "InvoiceItem_N50" in catalog "" schema ""
>>>> 20:48:15,208 [Schema                        ] CREATE INDEX
>>>> "InvoiceItem_N50" ON "InvoiceItem" ("invoiceId")
>>>> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,208 [Schema                        ] Creating index
>>>> "InvoiceItem_N52" in catalog "" schema ""
>>>> 20:48:15,208 [Schema                        ] CREATE INDEX
>>>> "InvoiceItem_N52" ON "InvoiceItem" ("leaseTermId")
>>>> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,208 [Schema                        ] Creating index
>>>> "InvoiceItemForLease_LeaseTerm_StartDate_EndDate_DueDate_IDX" in catalog ""
>>>> schema ""
>>>> 20:48:15,208 [Schema                        ] CREATE INDEX
>>>> "InvoiceItemForLease_LeaseTerm_StartDate_EndDate_DueDate_IDX" ON
>>>> "InvoiceItem" ("leaseTermId","startDate","endDate","dueDate")
>>>> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,208 [Schema                        ] Creating index
>>>> "InvoiceItem_N49" in catalog "" schema ""
>>>> 20:48:15,208 [Schema                        ] CREATE INDEX
>>>> "InvoiceItem_N49" ON "InvoiceItem" ("chargeId")
>>>> 20:48:15,209 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,209 [Schema                        ] Creating candidate key
>>>> "Brand_name_UNQ" in catalog "" schema ""
>>>> 20:48:15,209 [Schema                        ] ALTER TABLE "Brand" ADD
>>>> CONSTRAINT "Brand_name_UNQ" UNIQUE ("name")
>>>> 20:48:15,209 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,209 [Schema                        ] Creating foreign key
>>>> constraint : "FixedAssetRole_FK1" in catalog "" schema ""
>>>> 20:48:15,209 [Schema                        ] ALTER TABLE "FixedAssetRole"
>>>> ADD CONSTRAINT "FixedAssetRole_FK1" FOREIGN KEY ("assetId") REFERENCES
>>>> "FixedAsset" ("id")
>>>> 20:48:15,210 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,210 [Schema                        ] Creating foreign key
>>>> constraint : "FixedAssetRole_FK2" in catalog "" schema ""
>>>> 20:48:15,210 [Schema                        ] ALTER TABLE "FixedAssetRole"
>>>> ADD CONSTRAINT "FixedAssetRole_FK2" FOREIGN KEY ("partyId") REFERENCES
>>>> "Party" ("id")
>>>> 20:48:15,211 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,211 [Schema                        ] Creating index
>>>> "FixedAssetRole_N50" in catalog "" schema ""
>>>> 20:48:15,211 [Schema                        ] CREATE INDEX
>>>> "FixedAssetRole_N50" ON "FixedAssetRole" ("assetId")
>>>> 20:48:15,211 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,212 [Schema                        ] Creating index
>>>> "FixedAssetRole_N49" in catalog "" schema ""
>>>> 20:48:15,212 [Schema                        ] CREATE INDEX
>>>> "FixedAssetRole_N49" ON "FixedAssetRole" ("partyId")
>>>> 20:48:15,212 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,212 [Schema                        ] Creating candidate key
>>>> "Agreement_reference_UNQ" in catalog "" schema ""
>>>> 20:48:15,212 [Schema                        ] ALTER TABLE "Agreement" ADD
>>>> CONSTRAINT "Agreement_reference_UNQ" UNIQUE ("reference")
>>>> 20:48:15,213 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,213 [Schema                        ] Creating foreign key
>>>> constraint : "Agreement_FK1" in catalog "" schema ""
>>>> 20:48:15,213 [Schema                        ] ALTER TABLE "Agreement" ADD
>>>> CONSTRAINT "Agreement_FK1" FOREIGN KEY ("typeId") REFERENCES
>>>> "AgreementType" ("id")
>>>> 20:48:15,214 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,214 [Schema                        ] Creating foreign key
>>>> constraint : "Agreement_FK2" in catalog "" schema ""
>>>> 20:48:15,214 [Schema                        ] ALTER TABLE "Agreement" ADD
>>>> CONSTRAINT "Agreement_FK2" FOREIGN KEY ("nextAgreementId") REFERENCES
>>>> "Agreement" ("id")
>>>> 20:48:15,214 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,215 [Schema                        ] Creating index
>>>> "Lease_reference_name_IDX" in catalog "" schema ""
>>>> 20:48:15,215 [Schema                        ] CREATE INDEX
>>>> "Lease_reference_name_IDX" ON "Agreement" ("reference","name")
>>>> 20:48:15,215 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,215 [Schema                        ] Creating index
>>>> "Agreement_N50" in catalog "" schema ""
>>>> 20:48:15,215 [Schema                        ] CREATE INDEX "Agreement_N50"
>>>> ON "Agreement" ("typeId")
>>>> 20:48:15,215 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,215 [Schema                        ] Creating index
>>>> "Agreement_N49" in catalog "" schema ""
>>>> 20:48:15,215 [Schema                        ] CREATE INDEX "Agreement_N49"
>>>> ON "Agreement" ("nextAgreementId")
>>>> 20:48:15,215 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,215 [Schema                        ] Creating foreign key
>>>> constraint : "BankMandate_FK1" in catalog "" schema ""
>>>> 20:48:15,215 [Schema                        ] ALTER TABLE "BankMandate" ADD
>>>> CONSTRAINT "BankMandate_FK1" FOREIGN KEY ("id") REFERENCES "Agreement"
>>>> ("id")
>>>> 20:48:15,216 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,216 [Schema                        ] Creating foreign key
>>>> constraint : "BankMandate_FK2" in catalog "" schema ""
>>>> 20:48:15,216 [Schema                        ] ALTER TABLE "BankMandate" ADD
>>>> CONSTRAINT "BankMandate_FK2" FOREIGN KEY ("bankAccountId") REFERENCES
>>>> "FinancialAccount" ("id")
>>>> 20:48:15,216 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,217 [Schema                        ] Creating index
>>>> "BankMandate_N49" in catalog "" schema ""
>>>> 20:48:15,217 [Schema                        ] CREATE INDEX
>>>> "BankMandate_N49" ON "BankMandate" ("bankAccountId")
>>>> 20:48:15,217 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,217 [Schema                        ] Creating foreign key
>>>> constraint : "Event_FK1" in catalog "" schema ""
>>>> 20:48:15,217 [Schema                        ] ALTER TABLE "Event" ADD
>>>> CONSTRAINT "Event_FK1" FOREIGN KEY ("subjectBreakOptionId") REFERENCES
>>>> "BreakOption" ("id")
>>>> 20:48:15,218 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,218 [Schema                        ] Creating index "Event_N49" in
>>>> catalog "" schema ""
>>>> 20:48:15,218 [Schema                        ] CREATE INDEX "Event_N49" ON
>>>> "Event" ("subjectBreakOptionId")
>>>> 20:48:15,218 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,218 [Schema                        ] Creating candidate key
>>>> "ChargeGroup_reference_UNQ" in catalog "" schema ""
>>>> 20:48:15,218 [Schema                        ] ALTER TABLE "ChargeGroup" ADD
>>>> CONSTRAINT "ChargeGroup_reference_UNQ" UNIQUE ("reference")
>>>> 20:48:15,219 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,219 [Schema                        ] Creating candidate key
>>>> "Currency_reference_UNQ" in catalog "" schema ""
>>>> 20:48:15,219 [Schema                        ] ALTER TABLE "Currency" ADD
>>>> CONSTRAINT "Currency_reference_UNQ" UNIQUE ("reference")
>>>> 20:48:15,219 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,220 [Schema                        ] Creating candidate key
>>>> "Currency_name_UNQ" in catalog "" schema ""
>>>> 20:48:15,220 [Schema                        ] ALTER TABLE "Currency" ADD
>>>> CONSTRAINT "Currency_name_UNQ" UNIQUE ("name")
>>>> 20:48:15,221 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,221 [Schema                        ] Creating foreign key
>>>> constraint : "TaxRate_FK1" in catalog "" schema ""
>>>> 20:48:15,221 [Schema                        ] ALTER TABLE "TaxRate" ADD
>>>> CONSTRAINT "TaxRate_FK1" FOREIGN KEY ("taxId") REFERENCES "Tax" ("id")
>>>> 20:48:15,222 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,222 [Schema                        ] Creating foreign key
>>>> constraint : "TaxRate_FK2" in catalog "" schema ""
>>>> 20:48:15,222 [Schema                        ] ALTER TABLE "TaxRate" ADD
>>>> CONSTRAINT "TaxRate_FK2" FOREIGN KEY ("nextTaxRateId") REFERENCES "TaxRate"
>>>> ("id")
>>>> 20:48:15,223 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,223 [Schema                        ] Creating index "TaxRate_N49"
>>>> in catalog "" schema ""
>>>> 20:48:15,223 [Schema                        ] CREATE INDEX "TaxRate_N49" ON
>>>> "TaxRate" ("nextTaxRateId")
>>>> 20:48:15,223 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,223 [Schema                        ] Creating index "TaxRate_N50"
>>>> in catalog "" schema ""
>>>> 20:48:15,223 [Schema                        ] CREATE INDEX "TaxRate_N50" ON
>>>> "TaxRate" ("taxId")
>>>> 20:48:15,223 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,223 [Schema                        ] Creating foreign key
>>>> constraint : "PartyRegistration_FK1" in catalog "" schema ""
>>>> 20:48:15,224 [Schema                        ] ALTER TABLE
>>>> "PartyRegistration" ADD CONSTRAINT "PartyRegistration_FK1" FOREIGN KEY
>>>> ("partyId") REFERENCES "Party" ("id")
>>>> 20:48:15,225 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,225 [Schema                        ] Creating index
>>>> "PartyRegistration_N49" in catalog "" schema ""
>>>> 20:48:15,225 [Schema                        ] CREATE INDEX
>>>> "PartyRegistration_N49" ON "PartyRegistration" ("partyId")
>>>> 20:48:15,225 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,225 [Schema                        ] Creating foreign key
>>>> constraint : "AgreementRoleType_FK1" in catalog "" schema ""
>>>> 20:48:15,225 [Schema                        ] ALTER TABLE
>>>> "AgreementRoleType" ADD CONSTRAINT "AgreementRoleType_FK1" FOREIGN KEY
>>>> ("appliesToAgreementTypeId") REFERENCES "AgreementType" ("id")
>>>> 20:48:15,226 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,226 [Schema                        ] Creating index
>>>> "AgreementRoleType_N49" in catalog "" schema ""
>>>> 20:48:15,226 [Schema                        ] CREATE INDEX
>>>> "AgreementRoleType_N49" ON "AgreementRoleType" ("appliesToAgreementTypeId")
>>>> 20:48:15,227 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,227 [Schema                        ] Creating candidate key
>>>> "FinancialAccount_reference_UNQ" in catalog "" schema ""
>>>> 20:48:15,227 [Schema                        ] ALTER TABLE
>>>> "FinancialAccount" ADD CONSTRAINT "FinancialAccount_reference_UNQ" UNIQUE
>>>> ("reference")
>>>> 20:48:15,228 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,229 [Schema                        ] Creating foreign key
>>>> constraint : "FinancialAccount_FK1" in catalog "" schema ""
>>>> 20:48:15,229 [Schema                        ] ALTER TABLE
>>>> "FinancialAccount" ADD CONSTRAINT "FinancialAccount_FK1" FOREIGN KEY
>>>> ("ownerPartyId") REFERENCES "Party" ("id")
>>>> 20:48:15,231 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,231 [Schema                        ] Creating index
>>>> "FinancialAccount_N49" in catalog "" schema ""
>>>> 20:48:15,231 [Schema                        ] CREATE INDEX
>>>> "FinancialAccount_N49" ON "FinancialAccount" ("ownerPartyId")
>>>> 20:48:15,231 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,232 [Schema                        ] Creating foreign key
>>>> constraint : "BankAccount_FK1" in catalog "" schema ""
>>>> 20:48:15,232 [Schema                        ] ALTER TABLE "BankAccount" ADD
>>>> CONSTRAINT "BankAccount_FK1" FOREIGN KEY ("id") REFERENCES
>>>> "FinancialAccount" ("id")
>>>> 20:48:15,232 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,232 [Schema                        ] Creating foreign key
>>>> constraint : "BankAccount_FK2" in catalog "" schema ""
>>>> 20:48:15,232 [Schema                        ] ALTER TABLE "BankAccount" ADD
>>>> CONSTRAINT "BankAccount_FK2" FOREIGN KEY ("countryId") REFERENCES "Country"
>>>> ("id")
>>>> 20:48:15,233 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,233 [Schema                        ] Creating foreign key
>>>> constraint : "BankAccount_FK3" in catalog "" schema ""
>>>> 20:48:15,233 [Schema                        ] ALTER TABLE "BankAccount" ADD
>>>> CONSTRAINT "BankAccount_FK3" FOREIGN KEY ("fixedAssetId") REFERENCES
>>>> "Property" ("id")
>>>> 20:48:15,234 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,234 [Schema                        ] Creating foreign key
>>>> constraint : "BankAccount_FK4" in catalog "" schema ""
>>>> 20:48:15,234 [Schema                        ] ALTER TABLE "BankAccount" ADD
>>>> CONSTRAINT "BankAccount_FK4" FOREIGN KEY ("bankPartyId") REFERENCES "Party"
>>>> ("id")
>>>> 20:48:15,234 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,235 [Schema                        ] Creating index
>>>> "BankAccount_N51" in catalog "" schema ""
>>>> 20:48:15,235 [Schema                        ] CREATE INDEX
>>>> "BankAccount_N51" ON "BankAccount" ("fixedAssetId")
>>>> 20:48:15,235 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,235 [Schema                        ] Creating index
>>>> "BankAccount_N50" in catalog "" schema ""
>>>> 20:48:15,235 [Schema                        ] CREATE INDEX
>>>> "BankAccount_N50" ON "BankAccount" ("bankPartyId")
>>>> 20:48:15,235 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,235 [Schema                        ] Creating index
>>>> "BankAccount_N49" in catalog "" schema ""
>>>> 20:48:15,235 [Schema                        ] CREATE INDEX
>>>> "BankAccount_N49" ON "BankAccount" ("countryId")
>>>> 20:48:15,235 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,235 [Schema                        ] Creating candidate key
>>>> "UnitSize_name_UNQ" in catalog "" schema ""
>>>> 20:48:15,235 [Schema                        ] ALTER TABLE "UnitSize" ADD
>>>> CONSTRAINT "UnitSize_name_UNQ" UNIQUE ("name")
>>>> 20:48:15,236 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,236 [Schema                        ] Creating candidate key
>>>> "FixedAsset_reference_UNQ" in catalog "" schema ""
>>>> 20:48:15,236 [Schema                        ] ALTER TABLE "FixedAsset" ADD
>>>> CONSTRAINT "FixedAsset_reference_UNQ" UNIQUE ("reference")
>>>> 20:48:15,237 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,237 [Schema                        ] Creating index
>>>> "FixedAsset_reference_name_IDX" in catalog "" schema ""
>>>> 20:48:15,237 [Schema                        ] CREATE INDEX
>>>> "FixedAsset_reference_name_IDX" ON "FixedAsset" ("reference","name")
>>>> 20:48:15,237 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,237 [Schema                        ] Creating foreign key
>>>> constraint : "Property_FK2" in catalog "" schema ""
>>>> 20:48:15,237 [Schema                        ] ALTER TABLE "Property" ADD
>>>> CONSTRAINT "Property_FK2" FOREIGN KEY ("countryId") REFERENCES "Country"
>>>> ("id")
>>>> 20:48:15,238 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,238 [Schema                        ] Creating foreign key
>>>> constraint : "Property_FK1" in catalog "" schema ""
>>>> 20:48:15,238 [Schema                        ] ALTER TABLE "Property" ADD
>>>> CONSTRAINT "Property_FK1" FOREIGN KEY ("id") REFERENCES "FixedAsset" ("id")
>>>> 20:48:15,238 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,238 [Schema                        ] Creating index "Property_N49"
>>>> in catalog "" schema ""
>>>> 20:48:15,238 [Schema                        ] CREATE INDEX "Property_N49"
>>>> ON "Property" ("countryId")
>>>> 20:48:15,239 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,239 [Schema                        ] Creating foreign key
>>>> constraint : "LeaseAssignment_FK2" in catalog "" schema ""
>>>> 20:48:15,239 [Schema                        ] ALTER TABLE "LeaseAssignment"
>>>> ADD CONSTRAINT "LeaseAssignment_FK2" FOREIGN KEY ("previousLeaseId")
>>>> REFERENCES "Lease" ("id")
>>>> 20:48:15,239 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,239 [Schema                        ] Creating foreign key
>>>> constraint : "LeaseAssignment_FK1" in catalog "" schema ""
>>>> 20:48:15,239 [Schema                        ] ALTER TABLE "LeaseAssignment"
>>>> ADD CONSTRAINT "LeaseAssignment_FK1" FOREIGN KEY ("nextLeaseId") REFERENCES
>>>> "Lease" ("id")
>>>> 20:48:15,240 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,240 [Schema                        ] Creating index
>>>> "LeaseAssignment_N49" in catalog "" schema ""
>>>> 20:48:15,240 [Schema                        ] CREATE INDEX
>>>> "LeaseAssignment_N49" ON "LeaseAssignment" ("previousLeaseId")
>>>> 20:48:15,241 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,241 [Schema                        ] Creating index
>>>> "LeaseAssignment_N50" in catalog "" schema ""
>>>> 20:48:15,241 [Schema                        ] CREATE INDEX
>>>> "LeaseAssignment_N50" ON "LeaseAssignment" ("nextLeaseId")
>>>> 20:48:15,241 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,241 [Schema                        ] Creating candidate key
>>>> "Geography_reference_UNQ" in catalog "" schema ""
>>>> 20:48:15,241 [Schema                        ] ALTER TABLE "State" ADD
>>>> CONSTRAINT "Geography_reference_UNQ" UNIQUE ("reference")
>>>> 20:48:15,242 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,242 [Schema                        ] Creating candidate key
>>>> "Geography_name_UNQ" in catalog "" schema ""
>>>> 20:48:15,242 [Schema                        ] ALTER TABLE "State" ADD
>>>> CONSTRAINT "Geography_name_UNQ" UNIQUE ("name")
>>>> 20:48:15,243 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,243 [Schema                        ] Creating foreign key
>>>> constraint : "State_FK1" in catalog "" schema ""
>>>> 20:48:15,243 [Schema                        ] ALTER TABLE "State" ADD
>>>> CONSTRAINT "State_FK1" FOREIGN KEY ("countryId") REFERENCES "Country"
>>>> ("id")
>>>> 20:48:15,243 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,244 [Schema                        ] Creating index "State_N49" in
>>>> catalog "" schema ""
>>>> 20:48:15,244 [Schema                        ] CREATE INDEX "State_N49" ON
>>>> "State" ("countryId")
>>>> 20:48:15,244 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,244 [Schema                        ] Creating foreign key
>>>> constraint : "LeaseStatusReason_FK1" in catalog "" schema ""
>>>> 20:48:15,244 [Schema                        ] ALTER TABLE
>>>> "LeaseStatusReason" ADD CONSTRAINT "LeaseStatusReason_FK1" FOREIGN KEY
>>>> ("leaseId") REFERENCES "Lease" ("id")
>>>> 20:48:15,245 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,245 [Schema                        ] Creating index
>>>> "LeaseStatusReason_N49" in catalog "" schema ""
>>>> 20:48:15,245 [Schema                        ] CREATE INDEX
>>>> "LeaseStatusReason_N49" ON "LeaseStatusReason" ("leaseId")
>>>> 20:48:15,245 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,246 [Schema                        ] Creating candidate key
>>>> "Activity_sector_name_UNQ" in catalog "" schema ""
>>>> 20:48:15,246 [Schema                        ] ALTER TABLE "Activity" ADD
>>>> CONSTRAINT "Activity_sector_name_UNQ" UNIQUE ("sectorId","name")
>>>> 20:48:15,246 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,246 [Schema                        ] Creating foreign key
>>>> constraint : "Activity_FK1" in catalog "" schema ""
>>>> 20:48:15,246 [Schema                        ] ALTER TABLE "Activity" ADD
>>>> CONSTRAINT "Activity_FK1" FOREIGN KEY ("sectorId") REFERENCES "Sector"
>>>> ("id")
>>>> 20:48:15,247 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,247 [Schema                        ] Creating index "Activity_N49"
>>>> in catalog "" schema ""
>>>> 20:48:15,247 [Schema                        ] CREATE INDEX "Activity_N49"
>>>> ON "Activity" ("sectorId")
>>>> 20:48:15,248 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,248 [Schema                        ] Creating candidate key
>>>> "Party_reference_UNQ" in catalog "" schema ""
>>>> 20:48:15,248 [Schema                        ] ALTER TABLE "Party" ADD
>>>> CONSTRAINT "Party_reference_UNQ" UNIQUE ("reference")
>>>> 20:48:15,248 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,249 [Schema                        ] Creating index
>>>> "Party_reference_name_IDX" in catalog "" schema ""
>>>> 20:48:15,249 [Schema                        ] CREATE INDEX
>>>> "Party_reference_name_IDX" ON "Party" ("reference","name")
>>>> 20:48:15,249 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,249 [Schema                        ] Creating foreign key
>>>> constraint : "Organisation_FK1" in catalog "" schema ""
>>>> 20:48:15,249 [Schema                        ] ALTER TABLE "Organisation"
>>>> ADD CONSTRAINT "Organisation_FK1" FOREIGN KEY ("id") REFERENCES "Party"
>>>> ("id")
>>>> 20:48:15,249 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,250 [Schema                        ] Creating candidate key
>>>> "FixedAssetRegistrationType_title_UNQ" in catalog "" schema ""
>>>> 20:48:15,250 [Schema                        ] ALTER TABLE
>>>> "FixedAssetRegistrationType" ADD CONSTRAINT
>>>> "FixedAssetRegistrationType_title_UNQ" UNIQUE ("title")
>>>> 20:48:15,250 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,250 [Schema                        ] Creating foreign key
>>>> constraint : "FixedAssetRegistration_FK2" in catalog "" schema ""
>>>> 20:48:15,250 [Schema                        ] ALTER TABLE
>>>> "FixedAssetRegistration" ADD CONSTRAINT "FixedAssetRegistration_FK2"
>>>> FOREIGN KEY ("subjectId") REFERENCES "FixedAsset" ("id")
>>>> 20:48:15,251 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,251 [Schema                        ] Creating foreign key
>>>> constraint : "FixedAssetRegistration_FK1" in catalog "" schema ""
>>>> 20:48:15,251 [Schema                        ] ALTER TABLE
>>>> "FixedAssetRegistration" ADD CONSTRAINT "FixedAssetRegistration_FK1"
>>>> FOREIGN KEY ("typeId") REFERENCES "FixedAssetRegistrationType" ("id")
>>>> 20:48:15,252 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,252 [Schema                        ] Creating index
>>>> "FixedAssetRegistration_N49" in catalog "" schema ""
>>>> 20:48:15,252 [Schema                        ] CREATE INDEX
>>>> "FixedAssetRegistration_N49" ON "FixedAssetRegistration" ("subjectId")
>>>> 20:48:15,252 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,252 [Schema                        ] Creating index
>>>> "FixedAssetRegistration_N50" in catalog "" schema ""
>>>> 20:48:15,252 [Schema                        ] CREATE INDEX
>>>> "FixedAssetRegistration_N50" ON "FixedAssetRegistration" ("typeId")
>>>> 20:48:15,252 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,253 [Schema                        ] Creating foreign key
>>>> constraint : "LandRegister_FK1" in catalog "" schema ""
>>>> 20:48:15,253 [Schema                        ] ALTER TABLE "LandRegister"
>>>> ADD CONSTRAINT "LandRegister_FK1" FOREIGN KEY ("id") REFERENCES
>>>> "FixedAssetRegistration" ("id")
>>>> 20:48:15,253 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,253 [Schema                        ] Creating candidate key
>>>> "Tag_taggable_name_UNQ" in catalog "" schema ""
>>>> 20:48:15,253 [Schema                        ] ALTER TABLE "Tag" ADD
>>>> CONSTRAINT "Tag_taggable_name_UNQ" UNIQUE
>>>> ("taggable_Occupancy_id_EID","name")
>>>> 20:48:15,254 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,254 [Schema                        ] Creating foreign key
>>>> constraint : "Tag_FK1" in catalog "" schema ""
>>>> 20:48:15,254 [Schema                        ] ALTER TABLE "Tag" ADD
>>>> CONSTRAINT "Tag_FK1" FOREIGN KEY ("taggable_Occupancy_id_EID") REFERENCES
>>>> "Occupancy" ("id")
>>>> 20:48:15,255 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,255 [Schema                        ] Creating index "Tag_N49" in
>>>> catalog "" schema ""
>>>> 20:48:15,255 [Schema                        ] CREATE INDEX "Tag_N49" ON
>>>> "Tag" ("taggable_Occupancy_id_EID")
>>>> 20:48:15,255 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,255 [Schema                        ] Creating candidate key
>>>> "Charge_reference_UNQ" in catalog "" schema ""
>>>> 20:48:15,255 [Schema                        ] ALTER TABLE "Charge" ADD
>>>> CONSTRAINT "Charge_reference_UNQ" UNIQUE ("reference")
>>>> 20:48:15,256 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,256 [Schema                        ] Creating candidate key
>>>> "Charge_name_UNQ" in catalog "" schema ""
>>>> 20:48:15,256 [Schema                        ] ALTER TABLE "Charge" ADD
>>>> CONSTRAINT "Charge_name_UNQ" UNIQUE ("name")
>>>> 20:48:15,257 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,257 [Schema                        ] Creating foreign key
>>>> constraint : "Charge_FK2" in catalog "" schema ""
>>>> 20:48:15,257 [Schema                        ] ALTER TABLE "Charge" ADD
>>>> CONSTRAINT "Charge_FK2" FOREIGN KEY ("taxId") REFERENCES "Tax" ("id")
>>>> 20:48:15,258 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,258 [Schema                        ] Creating foreign key
>>>> constraint : "Charge_FK1" in catalog "" schema ""
>>>> 20:48:15,258 [Schema                        ] ALTER TABLE "Charge" ADD
>>>> CONSTRAINT "Charge_FK1" FOREIGN KEY ("groupId") REFERENCES "ChargeGroup"
>>>> ("id")
>>>> 20:48:15,259 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,259 [Schema                        ] Creating index "Charge_N50"
>>>> in catalog "" schema ""
>>>> 20:48:15,259 [Schema                        ] CREATE INDEX "Charge_N50" ON
>>>> "Charge" ("groupId")
>>>> 20:48:15,259 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,259 [Schema                        ] Creating index "Charge_N49"
>>>> in catalog "" schema ""
>>>> 20:48:15,259 [Schema                        ] CREATE INDEX "Charge_N49" ON
>>>> "Charge" ("taxId")
>>>> 20:48:15,260 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,260 [Schema                        ] Creating foreign key
>>>> constraint : "IndexValue_FK1" in catalog "" schema ""
>>>> 20:48:15,260 [Schema                        ] ALTER TABLE "IndexValue" ADD
>>>> CONSTRAINT "IndexValue_FK1" FOREIGN KEY ("indexBaseId") REFERENCES
>>>> "IndexBase" ("id")
>>>> 20:48:15,260 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,261 [Schema                        ] Creating index
>>>> "IndexValue_N49" in catalog "" schema ""
>>>> 20:48:15,261 [Schema                        ] CREATE INDEX "IndexValue_N49"
>>>> ON "IndexValue" ("indexBaseId")
>>>> 20:48:15,261 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,261 [Schema                        ] Creating candidate key
>>>> "Tax_reference_UNQ" in catalog "" schema ""
>>>> 20:48:15,261 [Schema                        ] ALTER TABLE "Tax" ADD
>>>> CONSTRAINT "Tax_reference_UNQ" UNIQUE ("reference")
>>>> 20:48:15,261 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,262 [Schema                        ] Creating foreign key
>>>> constraint : "Invoice_FK4" in catalog "" schema ""
>>>> 20:48:15,262 [Schema                        ] ALTER TABLE "Invoice" ADD
>>>> CONSTRAINT "Invoice_FK4" FOREIGN KEY ("currencyId") REFERENCES "Currency"
>>>> ("id")
>>>> 20:48:15,262 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,263 [Schema                        ] Creating foreign key
>>>> constraint : "Invoice_FK3" in catalog "" schema ""
>>>> 20:48:15,263 [Schema                        ] ALTER TABLE "Invoice" ADD
>>>> CONSTRAINT "Invoice_FK3" FOREIGN KEY ("sellerPartyId") REFERENCES "Party"
>>>> ("id")
>>>> 20:48:15,264 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,264 [Schema                        ] Creating foreign key
>>>> constraint : "Invoice_FK2" in catalog "" schema ""
>>>> 20:48:15,264 [Schema                        ] ALTER TABLE "Invoice" ADD
>>>> CONSTRAINT "Invoice_FK2" FOREIGN KEY ("buyerPartyId") REFERENCES "Party"
>>>> ("id")
>>>> 20:48:15,264 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,265 [Schema                        ] Creating foreign key
>>>> constraint : "Invoice_FK1" in catalog "" schema ""
>>>> 20:48:15,265 [Schema                        ] ALTER TABLE "Invoice" ADD
>>>> CONSTRAINT "Invoice_FK1" FOREIGN KEY ("sourceLeaseId") REFERENCES "Lease"
>>>> ("id")
>>>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,266 [Schema                        ] Creating index "Invoice_N51"
>>>> in catalog "" schema ""
>>>> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N51" ON
>>>> "Invoice" ("currencyId")
>>>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,266 [Schema                        ] Creating index "Invoice_N52"
>>>> in catalog "" schema ""
>>>> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N52" ON
>>>> "Invoice" ("sourceLeaseId")
>>>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,266 [Schema                        ] Creating index "Invoice_N49"
>>>> in catalog "" schema ""
>>>> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N49" ON
>>>> "Invoice" ("buyerPartyId")
>>>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,266 [Schema                        ] Creating index "Invoice_N50"
>>>> in catalog "" schema ""
>>>> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N50" ON
>>>> "Invoice" ("sellerPartyId")
>>>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,267 [Schema                        ] Creating foreign key
>>>> constraint : "Person_FK1" in catalog "" schema ""
>>>> 20:48:15,267 [Schema                        ] ALTER TABLE "Person" ADD
>>>> CONSTRAINT "Person_FK1" FOREIGN KEY ("id") REFERENCES "Party" ("id")
>>>> 20:48:15,267 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,267 [Schema                        ] Creating candidate key
>>>> "Country_alpha2Code_UNQ" in catalog "" schema ""
>>>> 20:48:15,267 [Schema                        ] ALTER TABLE "Country" ADD
>>>> CONSTRAINT "Country_alpha2Code_UNQ" UNIQUE ("alpha2Code")
>>>> 20:48:15,268 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,269 [Schema                        ] Creating candidate key
>>>> "Country_reference_UNQ" in catalog "" schema ""
>>>> 20:48:15,269 [Schema                        ] ALTER TABLE "Country" ADD
>>>> CONSTRAINT "Country_reference_UNQ" UNIQUE ("reference")
>>>> 20:48:15,270 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,270 [Schema                        ] Creating candidate key
>>>> "Country_name_UNQ" in catalog "" schema ""
>>>> 20:48:15,270 [Schema                        ] ALTER TABLE "Country" ADD
>>>> CONSTRAINT "Country_name_UNQ" UNIQUE ("name")
>>>> 20:48:15,271 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,271 [Schema                        ] Creating foreign key
>>>> constraint : "Lease_FK3" in catalog "" schema ""
>>>> 20:48:15,271 [Schema                        ] ALTER TABLE "Lease" ADD
>>>> CONSTRAINT "Lease_FK3" FOREIGN KEY ("leaseTypeId") REFERENCES "LeaseType"
>>>> ("id")
>>>> 20:48:15,272 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,272 [Schema                        ] Creating foreign key
>>>> constraint : "Lease_FK2" in catalog "" schema ""
>>>> 20:48:15,272 [Schema                        ] ALTER TABLE "Lease" ADD
>>>> CONSTRAINT "Lease_FK2" FOREIGN KEY ("paidByBankMandateId") REFERENCES
>>>> "BankMandate" ("id")
>>>> 20:48:15,273 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,273 [Schema                        ] Creating foreign key
>>>> constraint : "Lease_FK1" in catalog "" schema ""
>>>> 20:48:15,273 [Schema                        ] ALTER TABLE "Lease" ADD
>>>> CONSTRAINT "Lease_FK1" FOREIGN KEY ("id") REFERENCES "Agreement" ("id")
>>>> 20:48:15,274 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,274 [Schema                        ] Creating index "Lease_N50" in
>>>> catalog "" schema ""
>>>> 20:48:15,274 [Schema                        ] CREATE INDEX "Lease_N50" ON
>>>> "Lease" ("leaseTypeId")
>>>> 20:48:15,274 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,275 [Schema                        ] Creating index "Lease_N49" in
>>>> catalog "" schema ""
>>>> 20:48:15,275 [Schema                        ] CREATE INDEX "Lease_N49" ON
>>>> "Lease" ("paidByBankMandateId")
>>>> 20:48:15,275 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,275 [Schema                        ] Creating candidate key
>>>> "LeaseItem_lease_type_startDate_sequence_IDX" in catalog "" schema ""
>>>> 20:48:15,275 [Schema                        ] ALTER TABLE "LeaseItem" ADD
>>>> CONSTRAINT "LeaseItem_lease_type_startDate_sequence_IDX" UNIQUE
>>>> ("leaseId","type","startDate","sequence")
>>>> 20:48:15,277 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,277 [Schema                        ] Creating foreign key
>>>> constraint : "LeaseItem_FK1" in catalog "" schema ""
>>>> 20:48:15,277 [Schema                        ] ALTER TABLE "LeaseItem" ADD
>>>> CONSTRAINT "LeaseItem_FK1" FOREIGN KEY ("leaseId") REFERENCES "Lease"
>>>> ("id")
>>>> 20:48:15,279 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,279 [Schema                        ] Creating foreign key
>>>> constraint : "LeaseItem_FK2" in catalog "" schema ""
>>>> 20:48:15,279 [Schema                        ] ALTER TABLE "LeaseItem" ADD
>>>> CONSTRAINT "LeaseItem_FK2" FOREIGN KEY ("chargeId") REFERENCES "Charge"
>>>> ("id")
>>>> 20:48:15,281 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,281 [Schema                        ] Creating index
>>>> "LeaseItem_lease_type_startDate_IDX" in catalog "" schema ""
>>>> 20:48:15,281 [Schema                        ] CREATE INDEX
>>>> "LeaseItem_lease_type_startDate_IDX" ON "LeaseItem"
>>>> ("leaseId","type","startDate")
>>>> 20:48:15,282 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,282 [Schema                        ] Creating index
>>>> "LeaseItem_N50" in catalog "" schema ""
>>>> 20:48:15,282 [Schema                        ] CREATE INDEX "LeaseItem_N50"
>>>> ON "LeaseItem" ("leaseId")
>>>> 20:48:15,282 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,282 [Schema                        ] Creating index
>>>> "LeaseItem_lease_type_sequence_IDX" in catalog "" schema ""
>>>> 20:48:15,282 [Schema                        ] CREATE INDEX
>>>> "LeaseItem_lease_type_sequence_IDX" ON "LeaseItem"
>>>> ("leaseId","type","sequence")
>>>> 20:48:15,282 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,282 [Schema                        ] Creating index
>>>> "LeaseItem_N49" in catalog "" schema ""
>>>> 20:48:15,282 [Schema                        ] CREATE INDEX "LeaseItem_N49"
>>>> ON "LeaseItem" ("chargeId")
>>>> 20:48:15,283 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,283 [Schema                        ] Creating foreign key
>>>> constraint : "AgreementRoleCommunicationChannelType_FK1" in catalog ""
>>>> schema ""
>>>> 20:48:15,283 [Schema                        ] ALTER TABLE
>>>> "AgreementRoleCommunicationChannelType" ADD CONSTRAINT
>>>> "AgreementRoleCommunicationChannelType_FK1" FOREIGN KEY
>>>> ("appliesToAgreementTypeId") REFERENCES "AgreementType" ("id")
>>>> 20:48:15,284 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,284 [Schema                        ] Creating index
>>>> "AgreementRoleCommunicationChannelType_N49" in catalog "" schema ""
>>>> 20:48:15,284 [Schema                        ] CREATE INDEX
>>>> "AgreementRoleCommunicationChannelType_N49" ON
>>>> "AgreementRoleCommunicationChannelType" ("appliesToAgreementTypeId")
>>>> 20:48:15,284 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,284 [Schema                        ] Creating candidate key
>>>> "LeaseType_reference_UNQ" in catalog "" schema ""
>>>> 20:48:15,284 [Schema                        ] ALTER TABLE "LeaseType" ADD
>>>> CONSTRAINT "LeaseType_reference_UNQ" UNIQUE ("reference")
>>>> 20:48:15,285 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,285 [Schema                        ] Creating candidate key
>>>> "LeaseType_name_UNQ" in catalog "" schema ""
>>>> 20:48:15,285 [Schema                        ] ALTER TABLE "LeaseType" ADD
>>>> CONSTRAINT "LeaseType_name_UNQ" UNIQUE ("name")
>>>> 20:48:15,286 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,286 [Schema                        ] Creating foreign key
>>>> constraint : "AgreementRoleCommunicationChannel_FK3" in catalog "" schema ""
>>>> 20:48:15,286 [Schema                        ] ALTER TABLE
>>>> "AgreementRoleCommunicationChannel" ADD CONSTRAINT
>>>> "AgreementRoleCommunicationChannel_FK3" FOREIGN KEY
>>>> ("communicationChannelId") REFERENCES "CommunicationChannel" ("id")
>>>> 20:48:15,287 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,287 [Schema                        ] Creating foreign key
>>>> constraint : "AgreementRoleCommunicationChannel_FK2" in catalog "" schema ""
>>>> 20:48:15,287 [Schema                        ] ALTER TABLE
>>>> "AgreementRoleCommunicationChannel" ADD CONSTRAINT
>>>> "AgreementRoleCommunicationChannel_FK2" FOREIGN KEY ("agreementRoleId")
>>>> REFERENCES "AgreementRole" ("id")
>>>> 20:48:15,288 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,289 [Schema                        ] Creating foreign key
>>>> constraint : "AgreementRoleCommunicationChannel_FK1" in catalog "" schema ""
>>>> 20:48:15,289 [Schema                        ] ALTER TABLE
>>>> "AgreementRoleCommunicationChannel" ADD CONSTRAINT
>>>> "AgreementRoleCommunicationChannel_FK1" FOREIGN KEY ("typeId") REFERENCES
>>>> "AgreementRoleCommunicationChannelType" ("id")
>>>> 20:48:15,290 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,290 [Schema                        ] Creating index
>>>> "AgreementRoleCommunicationChannel_N49" in catalog "" schema ""
>>>> 20:48:15,290 [Schema                        ] CREATE INDEX
>>>> "AgreementRoleCommunicationChannel_N49" ON
>>>> "AgreementRoleCommunicationChannel" ("communicationChannelId")
>>>> 20:48:15,291 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,291 [Schema                        ] Creating index
>>>> "AgreementRoleCommunicationChannel_N50" in catalog "" schema ""
>>>> 20:48:15,291 [Schema                        ] CREATE INDEX
>>>> "AgreementRoleCommunicationChannel_N50" ON
>>>> "AgreementRoleCommunicationChannel" ("agreementRoleId")
>>>> 20:48:15,291 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,291 [Schema                        ] Creating index
>>>> "AgreementRoleCommunicationChannel_N51" in catalog "" schema ""
>>>> 20:48:15,291 [Schema                        ] CREATE INDEX
>>>> "AgreementRoleCommunicationChannel_N51" ON
>>>> "AgreementRoleCommunicationChannel" ("typeId")
>>>> 20:48:15,291 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,291 [Schema                        ] Creating candidate key
>>>> "AgreementType_title_UNQ" in catalog "" schema ""
>>>> 20:48:15,291 [Schema                        ] ALTER TABLE "AgreementType"
>>>> ADD CONSTRAINT "AgreementType_title_UNQ" UNIQUE ("title")
>>>> 20:48:15,292 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,292 [Schema                        ] Creating candidate key
>>>> "Occupancy_lease_unit_startDate_UNQ" in catalog "" schema ""
>>>> 20:48:15,292 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>>> CONSTRAINT "Occupancy_lease_unit_startDate_UNQ" UNIQUE
>>>> ("leaseId","unitId","startDate")
>>>> 20:48:15,294 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,294 [Schema                        ] Creating foreign key
>>>> constraint : "Occupancy_FK5" in catalog "" schema ""
>>>> 20:48:15,294 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>>> CONSTRAINT "Occupancy_FK5" FOREIGN KEY ("sectorId") REFERENCES "Sector"
>>>> ("id")
>>>> 20:48:15,295 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,296 [Schema                        ] Creating foreign key
>>>> constraint : "Occupancy_FK6" in catalog "" schema ""
>>>> 20:48:15,296 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>>> CONSTRAINT "Occupancy_FK6" FOREIGN KEY ("brandId") REFERENCES "Brand"
>>>> ("id")
>>>> 20:48:15,297 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,297 [Schema                        ] Creating foreign key
>>>> constraint : "Occupancy_FK3" in catalog "" schema ""
>>>> 20:48:15,297 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>>> CONSTRAINT "Occupancy_FK3" FOREIGN KEY ("activityId") REFERENCES "Activity"
>>>> ("id")
>>>> 20:48:15,299 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,299 [Schema                        ] Creating foreign key
>>>> constraint : "Occupancy_FK4" in catalog "" schema ""
>>>> 20:48:15,299 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>>> CONSTRAINT "Occupancy_FK4" FOREIGN KEY ("leaseId") REFERENCES "Lease"
>>>> ("id")
>>>> 20:48:15,301 [Schema                        ] Execution Time = 2 ms
>>>> 20:48:15,301 [Schema                        ] Creating foreign key
>>>> constraint : "Occupancy_FK1" in catalog "" schema ""
>>>> 20:48:15,301 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>>> CONSTRAINT "Occupancy_FK1" FOREIGN KEY ("unitId") REFERENCES "Unit" ("id")
>>>> 20:48:15,302 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,303 [Schema                        ] Creating foreign key
>>>> constraint : "Occupancy_FK2" in catalog "" schema ""
>>>> 20:48:15,303 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>>> CONSTRAINT "Occupancy_FK2" FOREIGN KEY ("unitSizeId") REFERENCES "UnitSize"
>>>> ("id")
>>>> 20:48:15,304 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,304 [Schema                        ] Creating index
>>>> "Occupancy_N54" in catalog "" schema ""
>>>> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N54"
>>>> ON "Occupancy" ("brandId")
>>>> 20:48:15,305 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,305 [Schema                        ] Creating index
>>>> "Occupancy_N53" in catalog "" schema ""
>>>> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N53"
>>>> ON "Occupancy" ("unitId")
>>>> 20:48:15,305 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,305 [Schema                        ] Creating index
>>>> "Occupancy_N52" in catalog "" schema ""
>>>> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N52"
>>>> ON "Occupancy" ("sectorId")
>>>> 20:48:15,305 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,305 [Schema                        ] Creating index
>>>> "Occupancy_N51" in catalog "" schema ""
>>>> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N51"
>>>> ON "Occupancy" ("activityId")
>>>> 20:48:15,306 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,306 [Schema                        ] Creating index
>>>> "Occupancy_N49" in catalog "" schema ""
>>>> 20:48:15,306 [Schema                        ] CREATE INDEX "Occupancy_N49"
>>>> ON "Occupancy" ("leaseId")
>>>> 20:48:15,306 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,306 [Schema                        ] Creating index
>>>> "Occupancy_N50" in catalog "" schema ""
>>>> 20:48:15,306 [Schema                        ] CREATE INDEX "Occupancy_N50"
>>>> ON "Occupancy" ("unitSizeId")
>>>> 20:48:15,306 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,306 [Schema                        ] Creating foreign key
>>>> constraint : "IndexBase_FK2" in catalog "" schema ""
>>>> 20:48:15,306 [Schema                        ] ALTER TABLE "IndexBase" ADD
>>>> CONSTRAINT "IndexBase_FK2" FOREIGN KEY ("indexId") REFERENCES "Index"
>>>> ("id")
>>>> 20:48:15,307 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,307 [Schema                        ] Creating foreign key
>>>> constraint : "IndexBase_FK1" in catalog "" schema ""
>>>> 20:48:15,307 [Schema                        ] ALTER TABLE "IndexBase" ADD
>>>> CONSTRAINT "IndexBase_FK1" FOREIGN KEY ("nextIndexBaseId") REFERENCES
>>>> "IndexBase" ("id")
>>>> 20:48:15,308 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,308 [Schema                        ] Creating index
>>>> "IndexBase_N50" in catalog "" schema ""
>>>> 20:48:15,308 [Schema                        ] CREATE INDEX "IndexBase_N50"
>>>> ON "IndexBase" ("indexId")
>>>> 20:48:15,309 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,309 [Schema                        ] Creating index
>>>> "IndexBase_N49" in catalog "" schema ""
>>>> 20:48:15,309 [Schema                        ] CREATE INDEX "IndexBase_N49"
>>>> ON "IndexBase" ("nextIndexBaseId")
>>>> 20:48:15,309 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,309 [Schema                        ] Creating candidate key
>>>> "Index_name_UNQ" in catalog "" schema ""
>>>> 20:48:15,309 [Schema                        ] ALTER TABLE "Index" ADD
>>>> CONSTRAINT "Index_name_UNQ" UNIQUE ("name")
>>>> 20:48:15,310 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,310 [Schema                        ] Creating candidate key
>>>> "Index_reference_UNQ" in catalog "" schema ""
>>>> 20:48:15,310 [Schema                        ] ALTER TABLE "Index" ADD
>>>> CONSTRAINT "Index_reference_UNQ" UNIQUE ("reference")
>>>> 20:48:15,311 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,311 [Schema                        ] Creating foreign key
>>>> constraint : "AgreementRole_FK3" in catalog "" schema ""
>>>> 20:48:15,311 [Schema                        ] ALTER TABLE "AgreementRole"
>>>> ADD CONSTRAINT "AgreementRole_FK3" FOREIGN KEY ("agreementId") REFERENCES
>>>> "Agreement" ("id")
>>>> 20:48:15,312 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,313 [Schema                        ] Creating foreign key
>>>> constraint : "AgreementRole_FK2" in catalog "" schema ""
>>>> 20:48:15,313 [Schema                        ] ALTER TABLE "AgreementRole"
>>>> ADD CONSTRAINT "AgreementRole_FK2" FOREIGN KEY ("typeId") REFERENCES
>>>> "AgreementRoleType" ("id")
>>>> 20:48:15,314 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,314 [Schema                        ] Creating foreign key
>>>> constraint : "AgreementRole_FK1" in catalog "" schema ""
>>>> 20:48:15,314 [Schema                        ] ALTER TABLE "AgreementRole"
>>>> ADD CONSTRAINT "AgreementRole_FK1" FOREIGN KEY ("partyId") REFERENCES
>>>> "Party" ("id")
>>>> 20:48:15,315 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,315 [Schema                        ] Creating index
>>>> "AgreementRole_N49" in catalog "" schema ""
>>>> 20:48:15,315 [Schema                        ] CREATE INDEX
>>>> "AgreementRole_N49" ON "AgreementRole" ("agreementId")
>>>> 20:48:15,315 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,315 [Schema                        ] Creating index
>>>> "AgreementRole_N51" in catalog "" schema ""
>>>> 20:48:15,315 [Schema                        ] CREATE INDEX
>>>> "AgreementRole_N51" ON "AgreementRole" ("typeId")
>>>> 20:48:15,316 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,316 [Schema                        ] Creating index
>>>> "AgreementRole_N50" in catalog "" schema ""
>>>> 20:48:15,316 [Schema                        ] CREATE INDEX
>>>> "AgreementRole_N50" ON "AgreementRole" ("partyId")
>>>> 20:48:15,316 [Schema                        ] Execution Time = 0 ms
>>>> 20:48:15,316 [Schema                        ] Creating candidate key
>>>> "Sector_name_UNQ" in catalog "" schema ""
>>>> 20:48:15,316 [Schema                        ] ALTER TABLE "Sector" ADD
>>>> CONSTRAINT "Sector_name_UNQ" UNIQUE ("name")
>>>> 20:48:15,317 [Schema                        ] Execution Time = 1 ms
>>>> 20:48:15,318 [Schema                        ] Check of existence of
>>>> "InvoiceSummaryForPropertyDueDate" returned no table
>>>> 20:48:15,318 [Schema                        ] Creating table
>>>> "InvoiceSummaryForPropertyDueDate"
>>>> 20:48:15,318 [Schema                        ] CREATE VIEW
>>>> "InvoiceSummaryForPropertyDueDate" (   "reference",   "dueDate",   "total",
>>>> "netAmount",   "vatAmount",   "grossAmount" ) AS SELECT
>>>> "FixedAsset"."reference" ,    "Invoice"."dueDate",
>>>> COUNT(DISTINCT("Invoice"."id")) AS "total",
>>>> SUM("InvoiceItem"."netAmount") AS "netAmount",
>>>> SUM("InvoiceItem"."vatAmount") AS "vatAmount",
>>>> SUM("InvoiceItem"."grossAmount") AS "grossAmount"   FROM "Invoice"   INNER
>>>> JOIN "Lease"       ON "Invoice"."sourceLeaseId" = "Lease"."id"   INNER JOIN
>>>> "Occupancy"     ON "Lease"."id"              = "Occupancy"."leaseId"
>>>> INNER JOIN "Unit"       ON "Unit"."id"               = "Occupancy"."unitId"
>>>> INNER JOIN "Property"     ON "Property"."id"           =
>>>> "Unit"."propertyId"   INNER JOIN "FixedAsset"     ON "FixedAsset"."id"
>>>>  = "Property"."id"   INNER JOIN "InvoiceItem"     ON
>>>> "InvoiceItem"."invoiceId" = "Invoice"."id" GROUP BY
>>>> "FixedAsset"."reference",  "Invoice"."dueDate"
>>>> 
>>>> 
>>>> 
>>>> On 13 January 2014 18:47, GESCONSULTOR - Óscar Bou
>>>> <o....@gesconsultor.com>wrote:
>>>> 
>>>>> 
>>>>> Hi, Dharmesh.
>>>>> 
>>>>> Can you copy on an email the class definition for
>>>>> org.atos.tfgm.basket.ShoppingBasketItem?
>>>>> 
>>>>> Perhaps the JDO annotations for identity are not properly defined.
>>>>> 
>>>>> See [1] for an example. The relevant ones are:
>>>>> 
>>>>> 
>>>>> @javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
>>>>> @javax.jdo.annotations.DatastoreIdentity(
>>>>>      strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY,
>>>>>       column="id")
>>>>> @javax.jdo.annotations.Version(
>>>>>      strategy=VersionStrategy.VERSION_NUMBER,
>>>>>      column="version")
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> Regards,
>>>>> 
>>>>> Oscar
>>>>> 
>>>>> 
>>>>> [1]
>>>>> https://github.com/apache/isis/blob/master/example/archetype/quickstart_wicket_restful_jdo/src/main/resources/archetype-resources/dom/src/main/java/dom/todo/ToDoItem.java
>>>>> 
>>>>> 
>>>>> 
>>>>> El 13/01/2014, a las 18:03, Chohan, Dharmesh <dh...@atos.net>
>>>>> escribió:
>>>>> 
>>>>>> Hello
>>>>>> 
>>>>>> I have sorted out the issue below, however I have encountered another
>>>>> problem,
>>>>>> 
>>>>>> Data already exists
>>>>>> 
>>>>>> integrity constraint violation: NOT NULL check constraint; SYS_CT_10102
>>>>> table: "ShoppingBasketItem" column: "shoppingBasket_id_OID"
>>>>>> 
>>>>>> This is the log output and am not sure why shoppingBasket_id_OID is NULL
>>>>>> 
>>>>>>  [exec] 16:58:55,845  [Native               qtp1742392524-31 DEBUG]
>>>>> INSERT INTO "ShoppingBasketItem"
>>>>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>>>>> VALUES (<'123456789001'>,<'Please_Select'>,<'Item
>>>>> 1'>,<'▒5'>,<null>,<1>,<null>)
>>>>>>  [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]
>>>>> Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b"
>>>>> using statement "INSERT INTO "ShoppingBasketItem"
>>>>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>>>>> VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL
>>>>> check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column:
>>>>> "shoppingBasket_id_OID"
>>>>>>  [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]
>>>>> Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b"
>>>>> using statement "INSERT INTO "ShoppingBasketItem"
>>>>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>>>>> VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL
>>>>> check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column:
>>>>> "shoppingBasket_id_OID"
>>>>>>  [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]
>>>>> Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b"
>>>>> using statement "INSERT INTO "ShoppingBasketItem"
>>>>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>>>>> VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL
>>>>> check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column:
>>>>> "shoppingBasket_id_OID"
>>>>>>  [exec] 16:58:55,945  [IsisTransaction      qtp1742392524-31 INFO ]
>>>>> abort transaction IsisTransaction@2fab0086[state=MUST_ABORT,commands=0]
>>>>>> 
>>>>>> Regards
>>>>>> Dharmesh
>>>>>> 
>>>>>> -----Original Message-----
>>>>>> From: Chohan, Dharmesh [mailto:dharmesh.chohan@atos.net]
>>>>>> Sent: Monday, January 13, 2014 4:09 PM
>>>>>> To: users@isis.apache.org
>>>>>> Subject: Domain Mappings 1:m Exception
>>>>>> 
>>>>>> Hi
>>>>>> 
>>>>>> I am implementing a domain object mapping of 1 to many.  I have followed
>>>>> the documentation on
>>>>> http://isis.apache.org/components/objectstores/jdo/managed-1-to-m-relationships.html
>>>>>> 
>>>>>> This is what I have implemented,
>>>>>> 
>>>>>> @javax.jdo.annotations.Persistent(mappedBy="shoppingBasket")
>>>>>>     private SortedSet<ShoppingBasketItem> shoppingBasketItem = new
>>>>> TreeSet<ShoppingBasketItem>();
>>>>>> 
>>>>>>     @javax.jdo.annotations.Column(allowsNull="false")
>>>>>> @MemberOrder(sequence = "3")
>>>>>>     public SortedSet <ShoppingBasketItem> getShoppingBasketItem() {
>>>>>>             return shoppingBasketItem;
>>>>>>     }
>>>>>> 
>>>>>>     public void setShoppingBasketItem(SortedSet <ShoppingBasketItem>
>>>>> shoppingBasketItem) {
>>>>>>             this.shoppingBasketItem = shoppingBasketItem;
>>>>>>     }
>>>>>> 
>>>>>> public class ShoppingBasketItem implements
>>>>> Comparable<ShoppingBasketItem> {
>>>>>> 
>>>>>>     private ShoppingBasket shoppingBasket;
>>>>>> 
>>>>>>     @javax.jdo.annotations.Column(allowsNull="false")
>>>>>>     public ShoppingBasket getShoppingBasket() {
>>>>>>             return shoppingBasket;
>>>>>>     }
>>>>>> 
>>>>>>     public void setShoppingBasket(ShoppingBasket shoppingBasket) {
>>>>>>             this.shoppingBasket = shoppingBasket;
>>>>>>     }
>>>>>> 
>>>>>> ...
>>>>>> 
>>>>>> When I run ISIS and test the screen, I am getting the following
>>>>> exception,
>>>>>> 
>>>>>> *       java.lang.IllegalArgumentException
>>>>>> *       No such method ' getShoppingBasketItem' or 'isShoppingBasketItem'
>>>>>> *
>>>>> org.apache.isis.applib.util.Clause#getValueOf(ObjectContracts.java:204)
>>>>>> *
>>>>> org.apache.isis.applib.util.ObjectContracts#compare(ObjectContracts.java:45)
>>>>>> *
>>>>> org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:117)
>>>>>> *
>>>>> org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:15)
>>>>>> *       java.util.TreeMap#put(TreeMap.java:545)
>>>>>> *       java.util.TreeSet#add(TreeSet.java:238)
>>>>>> *
>>>>> org.atos.tfgm.basket.ShoppingBaskets#getBasket(ShoppingBaskets.java:150)
>>>>>> *
>>>>> sun.reflect.NativeMethodAccessorImpl#invoke0(NativeMethodAccessorImpl.java:-2)
>>>>>> *
>>>>> sun.reflect.NativeMethodAccessorImpl#invoke(NativeMethodAccessorImpl.java:39)
>>>>>> *
>>>>> sun.reflect.DelegatingMethodAccessorImpl#invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>> *       java.lang.reflect.Method#invoke(Method.java:597)
>>>>>> 
>>>>>> 
>>>>>> Have I implemented the relationship incorrectly or missing something.
>>>>>> 
>>>>>> 
>>>>>> Regards
>>>>>> Dharmesh
>>>>>> 
>>>>> 
>>>>> 
> 


Re: Domain Mappings 1:m Exception

Posted by GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>.
Please, verify also that the proper JDO annotations are on each class.

Try the following ones.  Both fields annotations have been automatically generated by using the Eclipse Isis templates available on [1]:

@javax.jdo.annotations.PersistenceCapable(identityType = IdentityType.DATASTORE)
@javax.jdo.annotations.DatastoreIdentity(strategy = javax.jdo.annotations.IdGeneratorStrategy.IDENTITY, column = "id")
@javax.jdo.annotations.Version(strategy = VersionStrategy.VERSION_NUMBER, column = "version")
public class ShoppingBasket {

    // Isis Template: isjdc-1n-b-fk
    // {{ Items (Collection)
    @Persistent(mappedBy = "Items", dependentElement = "true")
    private SortedSet<ShoppingBasketItem> items = new TreeSet<ShoppingBasketItem>();

    @MemberOrder(sequence = "1")
    public SortedSet<ShoppingBasketItem> getItems() {
        return this.items;
    }

    public void setItems(final SortedSet<ShoppingBasketItem> items) {
        this.items = items;
    }
    // }}
}


@javax.jdo.annotations.PersistenceCapable(identityType = IdentityType.DATASTORE)
@javax.jdo.annotations.DatastoreIdentity(strategy = javax.jdo.annotations.IdGeneratorStrategy.IDENTITY, column = "id")
@javax.jdo.annotations.Version(strategy = VersionStrategy.VERSION_NUMBER, column = "version")
public class ShoppingBasketItem {

    // Isis Template: isjdp
    // {{ ShoppingBasket (property)
    private ShoppingBasket shoppingBasket;

    @MemberOrder(sequence = "1")
    @Column(allowsNull = "false")
    public ShoppingBasket getShoppingBasket() {
        return this.shoppingBasket;
    }

    public void setShoppingBasket(final ShoppingBasket shoppingBasket) {
        this.shoppingBasket = shoppingBasket;
    }
    // }}

}



[1] http://isis.apache.org/getting-started/editor-templates.html


El 14/01/2014, a las 11:32, Chohan, Dharmesh <dh...@atos.net> escribió:

> Thanks for your responses but my issue still exists and I am close to the problem but do not understand what the framework is doing.
> 
> @Dan, the framework does generate the relationship.
> 
> @Oscar, see class definition
> 
> @javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
> @javax.jdo.annotations.DatastoreIdentity(
>        strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY, column="id")
> @javax.jdo.annotations.Version(
>        strategy=VersionStrategy.VERSION_NUMBER, column="version")
> 
> public class ShoppingBasketItem implements Comparable<ShoppingBasketItem> {
> 
> 
> 
> CREATE TABLE "ShoppingBasketItem"
>     [exec] (
>     [exec]     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     [exec]     "amount" NVARCHAR(255) NOT NULL,
>     [exec]     "cardNumber" NVARCHAR(255) NOT NULL,
>     [exec]     "description" NVARCHAR(255) NULL,
>     [exec]     "location" NVARCHAR(255) NOT NULL,
>     [exec]     "shoppingBasket_id_OID" BIGINT NOT NULL,
>     [exec]     "version" BIGINT NOT NULL,
>     [exec]     "shoppingBasketItem_id_OID" BIGINT NULL,
>     [exec]     CONSTRAINT "ShoppingBasketItem_PK" PRIMARY KEY ("id")
>     [exec] )
> 
> CREATE TABLE "ShoppingBasket"
>     [exec] (
>     [exec]     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     [exec]     "cardNumber" NVARCHAR(255) NOT NULL,
>     [exec]     "orderTotal" INTEGER NOT NULL,
>     [exec]     "version" BIGINT NOT NULL,
>     [exec]     CONSTRAINT "ShoppingBasket_PK" PRIMARY KEY ("id")
>     [exec] )
> 
> ALTER TABLE "ShoppingBasketItem" ADD CONSTRAINT "ShoppingBasketItem_FK2" FOREIGN KEY ("shoppingBasketItem_id_OID") REFERENCES "ShoppingBasket" ("id")
> 
> ALTER TABLE "ShoppingBasketItem" ADD CONSTRAINT "ShoppingBasketItem_FK1" FOREIGN KEY ("shoppingBasket_id_OID") REFERENCES "ShoppingBasket" ("id")
> 
> INSERT INTO "ShoppingBasket" ("cardNumber","orderTotal","version") VALUES (<'123456789001'>,<15>,<1>)
> 
> INSERT INTO "ShoppingBasketItem" ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID") 
> 	VALUES (<'123456789001'>,<'Please_Select'>,<'Item 1'>,<'▒5'>,<null>,<1>,<0>)
> 
> The error is Data already exists
> integrity constraint violation: NOT NULL check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column: "shoppingBasket_id_OID"
> 
> The column shoppingBasket_id_OID is setting NULL in ShoppingBasketItem table which I am not sure where it is coming from?
> 
> 
> Thanks
> Dharmesh
> 
> -----Original Message-----
> From: GESCONSULTOR - Óscar Bou [mailto:o.bou@gesconsultor.com] 
> Sent: Tuesday, January 14, 2014 8:21 AM
> To: users@isis.apache.org
> Subject: Re: Domain Mappings 1:m Exception
> 
> 
> 
> Seems that the validation behavior is configurable, also for constraints, as per [1].
> 
> HTH,
> 
> Oscar
> 
> [1] http://www.datanucleus.org/products/accessplatform_2_2/rdbms/schema.html
> 
> 
> 
> 
> El 14/01/2014, a las 08:23, Jeroen van der Wal <je...@stromboli.it> escribió:
> 
>> Just a sidenote: datanucleus only adds non-existing constraints. If
>> you've changed your model it might be possible that you have to delete
>> constraints manually in order to make things work.
>> 
>> On Mon, Jan 13, 2014 at 11:54 PM, Dan Haywood
>> <da...@haywood-associates.co.uk> wrote:
>>> Looking at how Estatio [1] boots up (see log below), it seems that JDO does
>>> the CREATE TABLE first, then adds foreign key constraints afterwards using
>>> ALTER TABLE.
>>> 
>>> HTH
>>> Dan
>>> 
>>> [1] https://github.com/estatio/estatio
>>> 
>>> extract of Estatio's startup log:
>>> 
>>> 20:48:14,974 [Schema                        ] CREATE TABLE
>>> "CommunicationChannel"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "description" NVARCHAR(254) NULL,
>>>   "legal" BOOLEAN NOT NULL,
>>>   "ownerOrganisationId" BIGINT NULL,
>>>   "ownerPersonId" BIGINT NULL,
>>>   "ownerPropertyId" BIGINT NULL,
>>>   "ownerUnitId" BIGINT NULL,
>>>   "reference" NVARCHAR(24) NULL,
>>>   "type" NVARCHAR(30) NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   "discriminator" NVARCHAR(255) NOT NULL,
>>>   "emailAddress" NVARCHAR(50) NULL,
>>>   "address1" NVARCHAR(100) NULL,
>>>   "address2" NVARCHAR(100) NULL,
>>>   "city" NVARCHAR(50) NULL,
>>>   "countryId" BIGINT NULL,
>>>   "postalCode" NVARCHAR(12) NULL,
>>>   "stateId" BIGINT NULL,
>>>   "phoneNumber" NVARCHAR(20) NULL,
>>>   CONSTRAINT "CommunicationChannel_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:14,977 [Schema                        ] Execution Time = 3 ms
>>> 20:48:14,982 [Schema                        ] Check of existence of
>>> "LeaseTerm" returned no table
>>> 20:48:14,982 [Schema                        ] Creating table "LeaseTerm"
>>> 20:48:14,982 [Schema                        ] CREATE TABLE "LeaseTerm"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "endDate" DATE NULL,
>>>   "frequency" NVARCHAR(30) NOT NULL,
>>>   "leaseItemId" BIGINT NOT NULL,
>>>   "nextLeaseTermId" BIGINT NULL,
>>>   "sequence" NUMERIC NULL,
>>>   "startDate" DATE NULL,
>>>   "status" NVARCHAR(20) NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   "discriminator" NVARCHAR(255) NOT NULL,
>>>   "auditedTurnover" DECIMAL(19,2) NULL,
>>>   "budgetedTurnover" DECIMAL(19,2) NULL,
>>>   "contractualRent" DECIMAL(19,2) NULL,
>>>   "turnoverRentRule" NVARCHAR(254) NULL,
>>>   "turnoverRentValue" DECIMAL(19,2) NULL,
>>>   "baseIndexStartDate" DATE NULL,
>>>   "baseIndexValue" DECIMAL(19,1) NULL,
>>>   "baseValue" DECIMAL(19,2) NULL,
>>>   "effectiveDate" DATE NULL,
>>>   "indexId" BIGINT NULL,
>>>   "indexationPercentage" DECIMAL(19,1) NULL,
>>>   "indexedValue" DECIMAL(19,2) NULL,
>>>   "levellingPercentage" DECIMAL(19,1) NULL,
>>>   "nextIndexStartDate" DATE NULL,
>>>   "nextIndexValue" DECIMAL(19,1) NULL,
>>>   "rebaseFactor" DECIMAL(19,3) NULL,
>>>   "settledValue" DECIMAL(19,2) NULL,
>>>   "auditedValue" DECIMAL(19,2) NULL,
>>>   "budgetedValue" DECIMAL(19,2) NULL,
>>>   CONSTRAINT "LeaseTerm_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:14,984 [Schema                        ] Execution Time = 2 ms
>>> 20:48:14,987 [Schema                        ] Check of existence of "Unit"
>>> returned no table
>>> 20:48:14,987 [Schema                        ] Creating table "Unit"
>>> 20:48:14,987 [Schema                        ] CREATE TABLE "Unit"
>>> (
>>>   "id" BIGINT NOT NULL,
>>>   "area" DECIMAL(19,2) NULL,
>>>   "dehorsArea" DECIMAL(19,2) NULL,
>>>   "endDate" DATE NULL,
>>>   "mezzanineArea" DECIMAL(19,2) NULL,
>>>   "propertyId" BIGINT NOT NULL,
>>>   "salesArea" DECIMAL(19,2) NULL,
>>>   "startDate" DATE NULL,
>>>   "storageArea" DECIMAL(19,2) NULL,
>>>   "type" NVARCHAR(30) NOT NULL,
>>>   CONSTRAINT "Unit_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:14,988 [Schema                        ] Execution Time = 1 ms
>>> 20:48:14,991 [Schema                        ] Check of existence of
>>> "BreakOption" returned no table
>>> 20:48:14,991 [Schema                        ] Creating table "BreakOption"
>>> 20:48:14,992 [Schema                        ] CREATE TABLE "BreakOption"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "breakDate" DATE NOT NULL,
>>>   "description" NVARCHAR(254) NULL,
>>>   "exerciseDate" DATE NOT NULL,
>>>   "exerciseType" NVARCHAR(20) NOT NULL,
>>>   "leaseId" BIGINT NOT NULL,
>>>   "notificationPeriod" NVARCHAR(20) NULL,
>>>   "type" NVARCHAR(30) NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   "discriminator" NVARCHAR(255) NOT NULL,
>>>   "reminderDate" DATE NULL,
>>>   CONSTRAINT "BreakOption_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:14,994 [Schema                        ] Execution Time = 2 ms
>>> 20:48:15,000 [Schema                        ] Check of existence of
>>> "InvoiceItem" returned no table
>>> 20:48:15,000 [Schema                        ] Creating table "InvoiceItem"
>>> 20:48:15,000 [Schema                        ] CREATE TABLE "InvoiceItem"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "chargeId" BIGINT NULL,
>>>   "description" NVARCHAR(254) NULL,
>>>   "dueDate" DATE NOT NULL,
>>>   "endDate" DATE NULL,
>>>   "grossAmount" DECIMAL(19,2) NULL,
>>>   "invoiceId" BIGINT NULL,
>>>   "netAmount" DECIMAL(19,2) NULL,
>>>   "quantity" DECIMAL(19,2) NULL,
>>>   "sequence" NUMERIC NOT NULL,
>>>   "startDate" DATE NULL,
>>>   "taxId" BIGINT NULL,
>>>   "vatAmount" DECIMAL(19,2) NULL,
>>>   "version" BIGINT NOT NULL,
>>>   "discriminator" NVARCHAR(255) NOT NULL,
>>>   "leaseTermId" BIGINT NULL,
>>>   CONSTRAINT "InvoiceItem_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,002 [Schema                        ] Execution Time = 2 ms
>>> 20:48:15,007 [Schema                        ] Check of existence of "Brand"
>>> returned no table
>>> 20:48:15,008 [Schema                        ] Creating table "Brand"
>>> 20:48:15,008 [Schema                        ] CREATE TABLE "Brand"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "name" NVARCHAR(50) NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   CONSTRAINT "Brand_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,009 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,013 [Schema                        ] Check of existence of
>>> "FixedAssetRole" returned no table
>>> 20:48:15,013 [Schema                        ] Creating table
>>> "FixedAssetRole"
>>> 20:48:15,013 [Schema                        ] CREATE TABLE "FixedAssetRole"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "assetId" BIGINT NOT NULL,
>>>   "endDate" DATE NULL,
>>>   "partyId" BIGINT NOT NULL,
>>>   "startDate" DATE NULL,
>>>   "type" NVARCHAR(30) NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   CONSTRAINT "FixedAssetRole_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,015 [Schema                        ] Execution Time = 2 ms
>>> 20:48:15,019 [Schema                        ] Check of existence of
>>> "Numerator" returned no table
>>> 20:48:15,019 [Schema                        ] Creating table "Numerator"
>>> 20:48:15,019 [Schema                        ] CREATE TABLE "Numerator"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "format" NVARCHAR(30) NOT NULL,
>>>   "lastIncrement" NUMERIC NOT NULL,
>>>   "name" NVARCHAR(50) NOT NULL,
>>>   "objectIdentifier" NVARCHAR(20) NULL,
>>>   "objectType" NVARCHAR(254) NULL,
>>>   "version" BIGINT NOT NULL,
>>>   CONSTRAINT "Numerator_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,020 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,022 [Schema                        ] Check of existence of
>>> "Agreement" returned no table
>>> 20:48:15,022 [Schema                        ] Creating table "Agreement"
>>> 20:48:15,022 [Schema                        ] CREATE TABLE "Agreement"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "endDate" DATE NULL,
>>>   "name" NVARCHAR(50) NULL,
>>>   "nextAgreementId" BIGINT NULL,
>>>   "reference" NVARCHAR(24) NOT NULL,
>>>   "startDate" DATE NULL,
>>>   "typeId" BIGINT NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   "discriminator" NVARCHAR(255) NOT NULL,
>>>   CONSTRAINT "Agreement_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,023 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,025 [Schema                        ] Check of existence of
>>> "BankMandate" returned no table
>>> 20:48:15,025 [Schema                        ] Creating table "BankMandate"
>>> 20:48:15,025 [Schema                        ] CREATE TABLE "BankMandate"
>>> (
>>>   "id" BIGINT NOT NULL,
>>>   "bankAccountId" BIGINT NOT NULL,
>>>   CONSTRAINT "BankMandate_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,026 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,028 [Schema                        ] Check of existence of "Event"
>>> returned no table
>>> 20:48:15,028 [Schema                        ] Creating table "Event"
>>> 20:48:15,028 [Schema                        ] CREATE TABLE "Event"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "calendarName" NVARCHAR(254) NOT NULL,
>>>   "date" DATE NOT NULL,
>>>   "notes" NVARCHAR(4000) NULL,
>>>   "subjectBreakOptionId" BIGINT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   CONSTRAINT "Event_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,029 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,031 [Schema                        ] Check of existence of
>>> "ChargeGroup" returned no table
>>> 20:48:15,031 [Schema                        ] Creating table "ChargeGroup"
>>> 20:48:15,031 [Schema                        ] CREATE TABLE "ChargeGroup"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "name" NVARCHAR(50) NOT NULL,
>>>   "reference" NVARCHAR(24) NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   CONSTRAINT "ChargeGroup_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,032 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,034 [Schema                        ] Check of existence of
>>> "UserSetting" returned no table
>>> 20:48:15,034 [Schema                        ] Creating table "UserSetting"
>>> 20:48:15,034 [Schema                        ] CREATE TABLE "UserSetting"
>>> (
>>>   "key" NVARCHAR(128) NOT NULL,
>>>   "user" NVARCHAR(50) NOT NULL,
>>>   "description" NVARCHAR(254) NULL,
>>>   "type" NVARCHAR(20) NOT NULL,
>>>   "valueRaw" NVARCHAR(255) NOT NULL,
>>>   CONSTRAINT "UserSetting_PK" PRIMARY KEY ("key","user")
>>> )
>>> 20:48:15,035 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,038 [Schema                        ] Check of existence of
>>> "Currency" returned no table
>>> 20:48:15,038 [Schema                        ] Creating table "Currency"
>>> 20:48:15,038 [Schema                        ] CREATE TABLE "Currency"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "name" NVARCHAR(50) NOT NULL,
>>>   "reference" NVARCHAR(24) NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   CONSTRAINT "Currency_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,039 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,043 [Schema                        ] Check of existence of
>>> "TaxRate" returned no table
>>> 20:48:15,043 [Schema                        ] Creating table "TaxRate"
>>> 20:48:15,043 [Schema                        ] CREATE TABLE "TaxRate"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "endDate" DATE NULL,
>>>   "externalReference" NVARCHAR(50) NULL,
>>>   "nextTaxRateId" BIGINT NULL,
>>>   "percentage" DECIMAL(19,2) NULL,
>>>   "startDate" DATE NULL,
>>>   "taxId" BIGINT NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   CONSTRAINT "TaxRate_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,043 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,046 [Schema                        ] Check of existence of
>>> "PartyRegistration" returned no table
>>> 20:48:15,046 [Schema                        ] Creating table
>>> "PartyRegistration"
>>> 20:48:15,046 [Schema                        ] CREATE TABLE
>>> "PartyRegistration"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "endDate" DATE NULL,
>>>   "partyId" BIGINT NOT NULL,
>>>   "startDate" DATE NULL,
>>>   "type" NVARCHAR(30) NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   CONSTRAINT "PartyRegistration_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,047 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,050 [Schema                        ] Check of existence of
>>> "AgreementRoleType" returned no table
>>> 20:48:15,050 [Schema                        ] Creating table
>>> "AgreementRoleType"
>>> 20:48:15,050 [Schema                        ] CREATE TABLE
>>> "AgreementRoleType"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "appliesToAgreementTypeId" BIGINT NOT NULL,
>>>   "title" NVARCHAR(50) NOT NULL,
>>>   CONSTRAINT "AgreementRoleType_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,051 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,055 [Schema                        ] Check of existence of
>>> "AuditEntry" returned no table
>>> 20:48:15,055 [Schema                        ] Creating table "AuditEntry"
>>> 20:48:15,056 [Schema                        ] CREATE TABLE "AuditEntry"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "identifier" NVARCHAR(20) NOT NULL,
>>>   "objectType" NVARCHAR(254) NOT NULL,
>>>   "postValue" NVARCHAR(255) NULL,
>>>   "preValue" NVARCHAR(255) NULL,
>>>   "timestampEpoch" BIGINT NOT NULL,
>>>   "user" NVARCHAR(50) NULL,
>>>   CONSTRAINT "AuditEntry_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,057 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,060 [Schema                        ] Check of existence of
>>> "FinancialAccount" returned no table
>>> 20:48:15,060 [Schema                        ] Creating table
>>> "FinancialAccount"
>>> 20:48:15,060 [Schema                        ] CREATE TABLE
>>> "FinancialAccount"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "name" NVARCHAR(50) NOT NULL,
>>>   "ownerPartyId" BIGINT NOT NULL,
>>>   "reference" NVARCHAR(24) NOT NULL,
>>>   "type" NVARCHAR(30) NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   "discriminator" NVARCHAR(255) NOT NULL,
>>>   CONSTRAINT "FinancialAccount_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,062 [Schema                        ] Execution Time = 2 ms
>>> 20:48:15,068 [Schema                        ] Check of existence of
>>> "BankAccount" returned no table
>>> 20:48:15,068 [Schema                        ] Creating table "BankAccount"
>>> 20:48:15,068 [Schema                        ] CREATE TABLE "BankAccount"
>>> (
>>>   "id" BIGINT NOT NULL,
>>>   "accountNumber" NVARCHAR(20) NULL,
>>>   "bankPartyId" BIGINT NULL,
>>>   "bankAccountType" NVARCHAR(30) NOT NULL,
>>>   "branchCode" NVARCHAR(20) NULL,
>>>   "countryId" BIGINT NULL,
>>>   "iban" NVARCHAR(32) NULL,
>>>   "nationalBankCode" NVARCHAR(20) NULL,
>>>   "nationalCheckCode" NVARCHAR(20) NULL,
>>>   "fixedAssetId" BIGINT NULL,
>>>   CONSTRAINT "BankAccount_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,070 [Schema                        ] Execution Time = 2 ms
>>> 20:48:15,072 [Schema                        ] Check of existence of
>>> "UnitSize" returned no table
>>> 20:48:15,072 [Schema                        ] Creating table "UnitSize"
>>> 20:48:15,072 [Schema                        ] CREATE TABLE "UnitSize"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "name" NVARCHAR(50) NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   CONSTRAINT "UnitSize_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,073 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,075 [Schema                        ] Check of existence of
>>> "ApplicationSetting" returned no table
>>> 20:48:15,075 [Schema                        ] Creating table
>>> "ApplicationSetting"
>>> 20:48:15,075 [Schema                        ] CREATE TABLE
>>> "ApplicationSetting"
>>> (
>>>   "key" NVARCHAR(128) NOT NULL,
>>>   "description" NVARCHAR(254) NULL,
>>>   "type" NVARCHAR(20) NOT NULL,
>>>   "valueRaw" NVARCHAR(255) NOT NULL,
>>>   CONSTRAINT "ApplicationSetting_PK" PRIMARY KEY ("key")
>>> )
>>> 20:48:15,076 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,079 [Schema                        ] Check of existence of
>>> "FixedAsset" returned no table
>>> 20:48:15,079 [Schema                        ] Creating table "FixedAsset"
>>> 20:48:15,079 [Schema                        ] CREATE TABLE "FixedAsset"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "name" NVARCHAR(50) NOT NULL,
>>>   "reference" NVARCHAR(24) NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   "discriminator" NVARCHAR(255) NOT NULL,
>>>   CONSTRAINT "FixedAsset_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,080 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,082 [Schema                        ] Check of existence of
>>> "Property" returned no table
>>> 20:48:15,082 [Schema                        ] Creating table "Property"
>>> 20:48:15,082 [Schema                        ] CREATE TABLE "Property"
>>> (
>>>   "id" BIGINT NOT NULL,
>>>   "acquireDate" DATE NULL,
>>>   "area" DECIMAL(19,2) NULL,
>>>   "city" NVARCHAR(50) NULL,
>>>   "countryId" BIGINT NULL,
>>>   "disposalDate" DATE NULL,
>>>   "location" BLOB NULL,
>>>   "openingDate" DATE NULL,
>>>   "type" NVARCHAR(30) NOT NULL,
>>>   CONSTRAINT "Property_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,083 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,085 [Schema                        ] Check of existence of
>>> "LeaseAssignment" returned no table
>>> 20:48:15,085 [Schema                        ] Creating table
>>> "LeaseAssignment"
>>> 20:48:15,085 [Schema                        ] CREATE TABLE "LeaseAssignment"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "assignmentDate" DATE NOT NULL,
>>>   "nextLeaseId" BIGINT NULL,
>>>   "previousLeaseId" BIGINT NULL,
>>>   "type" NVARCHAR(30) NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   CONSTRAINT "LeaseAssignment_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,086 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,087 [Schema                        ] Check of existence of "State"
>>> returned no table
>>> 20:48:15,087 [Schema                        ] Creating table "State"
>>> 20:48:15,087 [Schema                        ] CREATE TABLE "State"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "countryId" BIGINT NOT NULL,
>>>   "name" NVARCHAR(50) NOT NULL,
>>>   "reference" NVARCHAR(6) NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   CONSTRAINT "State_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,088 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,090 [Schema                        ] Check of existence of
>>> "LeaseStatusReason" returned no table
>>> 20:48:15,090 [Schema                        ] Creating table
>>> "LeaseStatusReason"
>>> 20:48:15,090 [Schema                        ] CREATE TABLE
>>> "LeaseStatusReason"
>>> (
>>>   "LeaseStatusReason_ID" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "leaseId" BIGINT NOT NULL,
>>>   "reason" NVARCHAR(4000) NOT NULL,
>>>   "status" NVARCHAR(20) NOT NULL,
>>>   "timestamp" BIGINT NOT NULL,
>>>   "user" NVARCHAR(50) NOT NULL,
>>>   CONSTRAINT "LeaseStatusReason_PK" PRIMARY KEY ("LeaseStatusReason_ID")
>>> )
>>> 20:48:15,091 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,092 [Schema                        ] Check of existence of
>>> "Activity" returned no table
>>> 20:48:15,092 [Schema                        ] Creating table "Activity"
>>> 20:48:15,093 [Schema                        ] CREATE TABLE "Activity"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "name" NVARCHAR(50) NOT NULL,
>>>   "sectorId" BIGINT NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   CONSTRAINT "Activity_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,093 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,095 [Schema                        ] Check of existence of "Party"
>>> returned no table
>>> 20:48:15,095 [Schema                        ] Creating table "Party"
>>> 20:48:15,095 [Schema                        ] CREATE TABLE "Party"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "name" NVARCHAR(80) NOT NULL,
>>>   "reference" NVARCHAR(24) NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   "discriminator" NVARCHAR(255) NOT NULL,
>>>   CONSTRAINT "Party_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,096 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,098 [Schema                        ] Check of existence of
>>> "Organisation" returned no table
>>> 20:48:15,098 [Schema                        ] Creating table "Organisation"
>>> 20:48:15,098 [Schema                        ] CREATE TABLE "Organisation"
>>> (
>>>   "id" BIGINT NOT NULL,
>>>   "fiscalCode" NVARCHAR(30) NULL,
>>>   "vatCode" NVARCHAR(30) NULL,
>>>   CONSTRAINT "Organisation_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,099 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,101 [Schema                        ] Check of existence of
>>> "FixedAssetRegistrationType" returned no table
>>> 20:48:15,101 [Schema                        ] Creating table
>>> "FixedAssetRegistrationType"
>>> 20:48:15,101 [Schema                        ] CREATE TABLE
>>> "FixedAssetRegistrationType"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "fullyQualifiedClassName" NVARCHAR(254) NOT NULL,
>>>   "title" NVARCHAR(50) NOT NULL,
>>>   CONSTRAINT "FixedAssetRegistrationType_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,103 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,105 [Schema                        ] Check of existence of
>>> "FixedAssetRegistration" returned no table
>>> 20:48:15,105 [Schema                        ] Creating table
>>> "FixedAssetRegistration"
>>> 20:48:15,106 [Schema                        ] CREATE TABLE
>>> "FixedAssetRegistration"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "subjectId" BIGINT NOT NULL,
>>>   "typeId" BIGINT NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   "discriminator" NVARCHAR(255) NOT NULL,
>>>   CONSTRAINT "FixedAssetRegistration_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,107 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,109 [Schema                        ] Check of existence of
>>> "LandRegister" returned no table
>>> 20:48:15,109 [Schema                        ] Creating table "LandRegister"
>>> 20:48:15,110 [Schema                        ] CREATE TABLE "LandRegister"
>>> (
>>>   "id" BIGINT NOT NULL,
>>>   "categoria" NVARCHAR(255) NULL,
>>>   "classe" NVARCHAR(255) NULL,
>>>   "codiceComuneCatastale" NVARCHAR(255) NULL,
>>>   "comuneAmministrativo" NVARCHAR(255) NULL,
>>>   "comuneCatastale" NVARCHAR(255) NULL,
>>>   "consistenza" NVARCHAR(255) NULL,
>>>   "foglio" NVARCHAR(255) NULL,
>>>   "particella" NVARCHAR(255) NULL,
>>>   "rendita" NVARCHAR(255) NULL,
>>>   "subalterno" NVARCHAR(255) NULL,
>>>   CONSTRAINT "LandRegister_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,110 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,112 [Schema                        ] Check of existence of "Tag"
>>> returned no table
>>> 20:48:15,112 [Schema                        ] Creating table "Tag"
>>> 20:48:15,112 [Schema                        ] CREATE TABLE "Tag"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "name" NVARCHAR(50) NOT NULL,
>>>   "objectType" NVARCHAR(254) NOT NULL,
>>>   "taggable_Occupancy_id_EID" BIGINT NULL,
>>>   "value" NVARCHAR(255) NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   CONSTRAINT "Tag_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,114 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,116 [Schema                        ] Check of existence of
>>> "Charge" returned no table
>>> 20:48:15,116 [Schema                        ] Creating table "Charge"
>>> 20:48:15,116 [Schema                        ] CREATE TABLE "Charge"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "description" NVARCHAR(254) NOT NULL,
>>>   "externalReference" NVARCHAR(50) NULL,
>>>   "groupId" BIGINT NOT NULL,
>>>   "name" NVARCHAR(50) NOT NULL,
>>>   "reference" NVARCHAR(24) NOT NULL,
>>>   "sortOrder" NVARCHAR(24) NULL,
>>>   "taxId" BIGINT NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   CONSTRAINT "Charge_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,117 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,120 [Schema                        ] Check of existence of
>>> "IndexValue" returned no table
>>> 20:48:15,120 [Schema                        ] Creating table "IndexValue"
>>> 20:48:15,120 [Schema                        ] CREATE TABLE "IndexValue"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "indexBaseId" BIGINT NOT NULL,
>>>   "startDate" DATE NOT NULL,
>>>   "value" DECIMAL(19,4) NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   CONSTRAINT "IndexValue_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,121 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,124 [Schema                        ] Check of existence of "Tax"
>>> returned no table
>>> 20:48:15,124 [Schema                        ] Creating table "Tax"
>>> 20:48:15,124 [Schema                        ] CREATE TABLE "Tax"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "externalReference" NVARCHAR(50) NULL,
>>>   "name" NVARCHAR(50) NULL,
>>>   "reference" NVARCHAR(24) NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   CONSTRAINT "Tax_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,125 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,127 [Schema                        ] Check of existence of
>>> "Invoice" returned no table
>>> 20:48:15,127 [Schema                        ] Creating table "Invoice"
>>> 20:48:15,127 [Schema                        ] CREATE TABLE "Invoice"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "buyerPartyId" BIGINT NOT NULL,
>>>   "collectionNumber" NVARCHAR(16) NULL,
>>>   "currencyId" BIGINT NULL,
>>>   "dueDate" DATE NOT NULL,
>>>   "invoiceDate" DATE NULL,
>>>   "invoiceNumber" NVARCHAR(16) NULL,
>>>   "lastItemSequence" NUMERIC NULL,
>>>   "sourceLeaseId" BIGINT NULL,
>>>   "paymentMethod" NVARCHAR(30) NOT NULL,
>>>   "sellerPartyId" BIGINT NOT NULL,
>>>   "status" NVARCHAR(20) NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   CONSTRAINT "Invoice_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,129 [Schema                        ] Execution Time = 2 ms
>>> 20:48:15,130 [Schema                        ] Check of existence of
>>> "Person" returned no table
>>> 20:48:15,130 [Schema                        ] Creating table "Person"
>>> 20:48:15,131 [Schema                        ] CREATE TABLE "Person"
>>> (
>>>   "id" BIGINT NOT NULL,
>>>   "firstName" NVARCHAR(50) NULL,
>>>   "gender" NVARCHAR(30) NOT NULL,
>>>   "initials" NVARCHAR(3) NULL,
>>>   "lastName" NVARCHAR(50) NOT NULL,
>>>   CONSTRAINT "Person_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,131 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,133 [Schema                        ] Check of existence of
>>> "Country" returned no table
>>> 20:48:15,133 [Schema                        ] Creating table "Country"
>>> 20:48:15,134 [Schema                        ] CREATE TABLE "Country"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "alpha2Code" NVARCHAR(2) NOT NULL,
>>>   "name" NVARCHAR(50) NOT NULL,
>>>   "reference" NVARCHAR(24) NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   CONSTRAINT "Country_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,135 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,137 [Schema                        ] Check of existence of "Lease"
>>> returned no table
>>> 20:48:15,137 [Schema                        ] Creating table "Lease"
>>> 20:48:15,137 [Schema                        ] CREATE TABLE "Lease"
>>> (
>>>   "id" BIGINT NOT NULL,
>>>   "leaseTypeId" BIGINT NULL,
>>>   "paidByBankMandateId" BIGINT NULL,
>>>   "status" NVARCHAR(20) NOT NULL,
>>>   "tenancyEndDate" DATE NULL,
>>>   "tenancyStartDate" DATE NULL,
>>>   CONSTRAINT "Lease_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,138 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,140 [Schema                        ] Check of existence of
>>> "LeaseItem" returned no table
>>> 20:48:15,140 [Schema                        ] Creating table "LeaseItem"
>>> 20:48:15,140 [Schema                        ] CREATE TABLE "LeaseItem"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "chargeId" BIGINT NOT NULL,
>>>   "endDate" DATE NULL,
>>>   "epochDate" DATE NULL,
>>>   "invoicingFrequency" NVARCHAR(30) NOT NULL,
>>>   "leaseId" BIGINT NOT NULL,
>>>   "nextDueDate" DATE NULL,
>>>   "paymentMethod" NVARCHAR(30) NOT NULL,
>>>   "sequence" NUMERIC NOT NULL,
>>>   "startDate" DATE NULL,
>>>   "status" NVARCHAR(20) NOT NULL,
>>>   "type" NVARCHAR(30) NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   CONSTRAINT "LeaseItem_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,142 [Schema                        ] Execution Time = 2 ms
>>> 20:48:15,144 [Schema                        ] Check of existence of
>>> "AgreementRoleCommunicationChannelType" returned no table
>>> 20:48:15,144 [Schema                        ] Creating table
>>> "AgreementRoleCommunicationChannelType"
>>> 20:48:15,144 [Schema                        ] CREATE TABLE
>>> "AgreementRoleCommunicationChannelType"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "appliesToAgreementTypeId" BIGINT NOT NULL,
>>>   "title" NVARCHAR(50) NOT NULL,
>>>   CONSTRAINT "AgreementRoleCommunicationChannelType_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,145 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,148 [Schema                        ] Check of existence of
>>> "LeaseType" returned no table
>>> 20:48:15,148 [Schema                        ] Creating table "LeaseType"
>>> 20:48:15,148 [Schema                        ] CREATE TABLE "LeaseType"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "name" NVARCHAR(50) NOT NULL,
>>>   "reference" NVARCHAR(24) NOT NULL,
>>>   CONSTRAINT "LeaseType_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,149 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,151 [Schema                        ] Check of existence of
>>> "AgreementRoleCommunicationChannel" returned no table
>>> 20:48:15,151 [Schema                        ] Creating table
>>> "AgreementRoleCommunicationChannel"
>>> 20:48:15,151 [Schema                        ] CREATE TABLE
>>> "AgreementRoleCommunicationChannel"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "communicationChannelId" BIGINT NOT NULL,
>>>   "endDate" DATE NULL,
>>>   "agreementRoleId" BIGINT NOT NULL,
>>>   "startDate" DATE NULL,
>>>   "typeId" BIGINT NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   CONSTRAINT "AgreementRoleCommunicationChannel_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,153 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,155 [Schema                        ] Check of existence of
>>> "AgreementType" returned no table
>>> 20:48:15,155 [Schema                        ] Creating table "AgreementType"
>>> 20:48:15,155 [Schema                        ] CREATE TABLE "AgreementType"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "title" NVARCHAR(50) NOT NULL,
>>>   CONSTRAINT "AgreementType_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,156 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,158 [Schema                        ] Check of existence of
>>> "Occupancy" returned no table
>>> 20:48:15,158 [Schema                        ] Creating table "Occupancy"
>>> 20:48:15,158 [Schema                        ] CREATE TABLE "Occupancy"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "activityId" BIGINT NULL,
>>>   "brandId" BIGINT NULL,
>>>   "endDate" DATE NULL,
>>>   "leaseId" BIGINT NOT NULL,
>>>   "reportOCR" NVARCHAR(30) NOT NULL,
>>>   "reportRent" NVARCHAR(30) NOT NULL,
>>>   "reportTurnover" NVARCHAR(30) NOT NULL,
>>>   "sectorId" BIGINT NULL,
>>>   "startDate" DATE NULL,
>>>   "unitId" BIGINT NOT NULL,
>>>   "unitSizeId" BIGINT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   CONSTRAINT "Occupancy_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,160 [Schema                        ] Execution Time = 2 ms
>>> 20:48:15,161 [Schema                        ] Check of existence of
>>> "IndexBase" returned no table
>>> 20:48:15,161 [Schema                        ] Creating table "IndexBase"
>>> 20:48:15,161 [Schema                        ] CREATE TABLE "IndexBase"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "factor" DECIMAL(19,4) NULL,
>>>   "indexId" BIGINT NOT NULL,
>>>   "nextIndexBaseId" BIGINT NULL,
>>>   "startDate" DATE NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   CONSTRAINT "IndexBase_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,162 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,164 [Schema                        ] Check of existence of "Index"
>>> returned no table
>>> 20:48:15,164 [Schema                        ] Creating table "Index"
>>> 20:48:15,164 [Schema                        ] CREATE TABLE "Index"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "name" NVARCHAR(50) NOT NULL,
>>>   "reference" NVARCHAR(24) NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   CONSTRAINT "Index_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,165 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,167 [Schema                        ] Check of existence of
>>> "AgreementRole" returned no table
>>> 20:48:15,167 [Schema                        ] Creating table "AgreementRole"
>>> 20:48:15,167 [Schema                        ] CREATE TABLE "AgreementRole"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "agreementId" BIGINT NOT NULL,
>>>   "endDate" DATE NULL,
>>>   "partyId" BIGINT NOT NULL,
>>>   "startDate" DATE NULL,
>>>   "typeId" BIGINT NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   CONSTRAINT "AgreementRole_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,168 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,170 [Schema                        ] Check of existence of
>>> "Sector" returned no table
>>> 20:48:15,170 [Schema                        ] Creating table "Sector"
>>> 20:48:15,170 [Schema                        ] CREATE TABLE "Sector"
>>> (
>>>   "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>>   "name" NVARCHAR(50) NOT NULL,
>>>   "version" BIGINT NOT NULL,
>>>   CONSTRAINT "Sector_PK" PRIMARY KEY ("id")
>>> )
>>> 20:48:15,171 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,176 [Schema                        ] Creating foreign key
>>> constraint : "CommunicationChannel_FK2" in catalog "" schema ""
>>> 20:48:15,176 [Schema                        ] ALTER TABLE
>>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK2" FOREIGN
>>> KEY ("stateId") REFERENCES "State" ("id")
>>> 20:48:15,178 [Schema                        ] Execution Time = 2 ms
>>> 20:48:15,178 [Schema                        ] Creating foreign key
>>> constraint : "CommunicationChannel_FK1" in catalog "" schema ""
>>> 20:48:15,178 [Schema                        ] ALTER TABLE
>>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK1" FOREIGN
>>> KEY ("countryId") REFERENCES "Country" ("id")
>>> 20:48:15,180 [Schema                        ] Execution Time = 2 ms
>>> 20:48:15,180 [Schema                        ] Creating foreign key
>>> constraint : "CommunicationChannel_FK4" in catalog "" schema ""
>>> 20:48:15,180 [Schema                        ] ALTER TABLE
>>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK4" FOREIGN
>>> KEY ("ownerPersonId") REFERENCES "Person" ("id")
>>> 20:48:15,181 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,181 [Schema                        ] Creating foreign key
>>> constraint : "CommunicationChannel_FK3" in catalog "" schema ""
>>> 20:48:15,181 [Schema                        ] ALTER TABLE
>>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK3" FOREIGN
>>> KEY ("ownerOrganisationId") REFERENCES "Organisation" ("id")
>>> 20:48:15,182 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,182 [Schema                        ] Creating foreign key
>>> constraint : "CommunicationChannel_FK6" in catalog "" schema ""
>>> 20:48:15,182 [Schema                        ] ALTER TABLE
>>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK6" FOREIGN
>>> KEY ("ownerUnitId") REFERENCES "Unit" ("id")
>>> 20:48:15,183 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,183 [Schema                        ] Creating foreign key
>>> constraint : "CommunicationChannel_FK5" in catalog "" schema ""
>>> 20:48:15,183 [Schema                        ] ALTER TABLE
>>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK5" FOREIGN
>>> KEY ("ownerPropertyId") REFERENCES "Property" ("id")
>>> 20:48:15,184 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,186 [Schema                        ] Creating index
>>> "CommunicationChannel_N53" in catalog "" schema ""
>>> 20:48:15,186 [Schema                        ] CREATE INDEX
>>> "CommunicationChannel_N53" ON "CommunicationChannel" ("countryId")
>>> 20:48:15,187 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,187 [Schema                        ] Creating index
>>> "CommunicationChannel_N54" in catalog "" schema ""
>>> 20:48:15,187 [Schema                        ] CREATE INDEX
>>> "CommunicationChannel_N54" ON "CommunicationChannel" ("ownerUnitId")
>>> 20:48:15,187 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,187 [Schema                        ] Creating index
>>> "CommunicationChannel_N51" in catalog "" schema ""
>>> 20:48:15,187 [Schema                        ] CREATE INDEX
>>> "CommunicationChannel_N51" ON "CommunicationChannel" ("ownerPropertyId")
>>> 20:48:15,187 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,187 [Schema                        ] Creating index
>>> "CommunicationChannel_N52" in catalog "" schema ""
>>> 20:48:15,187 [Schema                        ] CREATE INDEX
>>> "CommunicationChannel_N52" ON "CommunicationChannel" ("stateId")
>>> 20:48:15,188 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,188 [Schema                        ] Creating index
>>> "PhoneNumber_phoneNumber_IDX" in catalog "" schema ""
>>> 20:48:15,188 [Schema                        ] CREATE INDEX
>>> "PhoneNumber_phoneNumber_IDX" ON "CommunicationChannel" ("phoneNumber")
>>> 20:48:15,188 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,188 [Schema                        ] Creating index
>>> "PostalAddress_main_idx" in catalog "" schema ""
>>> 20:48:15,188 [Schema                        ] CREATE INDEX
>>> "PostalAddress_main_idx" ON "CommunicationChannel"
>>> ("ownerOrganisationId","ownerPersonId","ownerPropertyId","ownerUnitId","address1","postalCode","city","countryId")
>>> 20:48:15,188 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,188 [Schema                        ] Creating index
>>> "CommunicationChannel_N49" in catalog "" schema ""
>>> 20:48:15,188 [Schema                        ] CREATE INDEX
>>> "CommunicationChannel_N49" ON "CommunicationChannel" ("ownerOrganisationId")
>>> 20:48:15,189 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,189 [Schema                        ] Creating index
>>> "CommunicationChannel_N50" in catalog "" schema ""
>>> 20:48:15,189 [Schema                        ] CREATE INDEX
>>> "CommunicationChannel_N50" ON "CommunicationChannel" ("ownerPersonId")
>>> 20:48:15,189 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,189 [Schema                        ] Creating index
>>> "EmailAddress_emailAddress_IDX" in catalog "" schema ""
>>> 20:48:15,189 [Schema                        ] CREATE INDEX
>>> "EmailAddress_emailAddress_IDX" ON "CommunicationChannel" ("emailAddress")
>>> 20:48:15,190 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,190 [Schema                        ] Creating foreign key
>>> constraint : "LeaseTerm_FK2" in catalog "" schema ""
>>> 20:48:15,190 [Schema                        ] ALTER TABLE "LeaseTerm" ADD
>>> CONSTRAINT "LeaseTerm_FK2" FOREIGN KEY ("indexId") REFERENCES "Index"
>>> ("id")
>>> 20:48:15,192 [Schema                        ] Execution Time = 2 ms
>>> 20:48:15,192 [Schema                        ] Creating foreign key
>>> constraint : "LeaseTerm_FK3" in catalog "" schema ""
>>> 20:48:15,192 [Schema                        ] ALTER TABLE "LeaseTerm" ADD
>>> CONSTRAINT "LeaseTerm_FK3" FOREIGN KEY ("nextLeaseTermId") REFERENCES
>>> "LeaseTerm" ("id")
>>> 20:48:15,194 [Schema                        ] Execution Time = 2 ms
>>> 20:48:15,194 [Schema                        ] Creating foreign key
>>> constraint : "LeaseTerm_FK1" in catalog "" schema ""
>>> 20:48:15,194 [Schema                        ] ALTER TABLE "LeaseTerm" ADD
>>> CONSTRAINT "LeaseTerm_FK1" FOREIGN KEY ("leaseItemId") REFERENCES
>>> "LeaseItem" ("id")
>>> 20:48:15,195 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,196 [Schema                        ] Creating index
>>> "LeaseTerm_N50" in catalog "" schema ""
>>> 20:48:15,196 [Schema                        ] CREATE INDEX "LeaseTerm_N50"
>>> ON "LeaseTerm" ("indexId")
>>> 20:48:15,196 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,196 [Schema                        ] Creating index
>>> "LeaseTerm_leaseItem_startDate_IDX" in catalog "" schema ""
>>> 20:48:15,196 [Schema                        ] CREATE INDEX
>>> "LeaseTerm_leaseItem_startDate_IDX" ON "LeaseTerm"
>>> ("leaseItemId","startDate")
>>> 20:48:15,196 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,196 [Schema                        ] Creating index
>>> "LeaseTerm_N51" in catalog "" schema ""
>>> 20:48:15,196 [Schema                        ] CREATE INDEX "LeaseTerm_N51"
>>> ON "LeaseTerm" ("leaseItemId")
>>> 20:48:15,197 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,197 [Schema                        ] Creating index
>>> "LeaseTerm_N49" in catalog "" schema ""
>>> 20:48:15,197 [Schema                        ] CREATE INDEX "LeaseTerm_N49"
>>> ON "LeaseTerm" ("nextLeaseTermId")
>>> 20:48:15,197 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,197 [Schema                        ] Creating index
>>> "LeaseTerm_leaseItem_sequence_IDX" in catalog "" schema ""
>>> 20:48:15,197 [Schema                        ] CREATE INDEX
>>> "LeaseTerm_leaseItem_sequence_IDX" ON "LeaseTerm" ("leaseItemId","sequence")
>>> 20:48:15,197 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,198 [Schema                        ] Creating foreign key
>>> constraint : "Unit_FK1" in catalog "" schema ""
>>> 20:48:15,198 [Schema                        ] ALTER TABLE "Unit" ADD
>>> CONSTRAINT "Unit_FK1" FOREIGN KEY ("id") REFERENCES "FixedAsset" ("id")
>>> 20:48:15,199 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,199 [Schema                        ] Creating foreign key
>>> constraint : "Unit_FK2" in catalog "" schema ""
>>> 20:48:15,199 [Schema                        ] ALTER TABLE "Unit" ADD
>>> CONSTRAINT "Unit_FK2" FOREIGN KEY ("propertyId") REFERENCES "Property"
>>> ("id")
>>> 20:48:15,200 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,200 [Schema                        ] Creating index "Unit_N49" in
>>> catalog "" schema ""
>>> 20:48:15,200 [Schema                        ] CREATE INDEX "Unit_N49" ON
>>> "Unit" ("propertyId")
>>> 20:48:15,200 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,200 [Schema                        ] Unique metadata defined to
>>> use field notificationDate which doesn't exist in this class
>>> 20:48:15,200 [Schema                        ] Creating foreign key
>>> constraint : "BreakOption_FK1" in catalog "" schema ""
>>> 20:48:15,200 [Schema                        ] ALTER TABLE "BreakOption" ADD
>>> CONSTRAINT "BreakOption_FK1" FOREIGN KEY ("leaseId") REFERENCES "Lease"
>>> ("id")
>>> 20:48:15,202 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,202 [Schema                        ] Creating index
>>> "BreakOption_N49" in catalog "" schema ""
>>> 20:48:15,202 [Schema                        ] CREATE INDEX
>>> "BreakOption_N49" ON "BreakOption" ("leaseId")
>>> 20:48:15,203 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,203 [Schema                        ] Creating foreign key
>>> constraint : "InvoiceItem_FK4" in catalog "" schema ""
>>> 20:48:15,203 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
>>> CONSTRAINT "InvoiceItem_FK4" FOREIGN KEY ("invoiceId") REFERENCES "Invoice"
>>> ("id")
>>> 20:48:15,204 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,204 [Schema                        ] Creating foreign key
>>> constraint : "InvoiceItem_FK3" in catalog "" schema ""
>>> 20:48:15,204 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
>>> CONSTRAINT "InvoiceItem_FK3" FOREIGN KEY ("leaseTermId") REFERENCES
>>> "LeaseTerm" ("id")
>>> 20:48:15,205 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,205 [Schema                        ] Creating foreign key
>>> constraint : "InvoiceItem_FK2" in catalog "" schema ""
>>> 20:48:15,205 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
>>> CONSTRAINT "InvoiceItem_FK2" FOREIGN KEY ("chargeId") REFERENCES "Charge"
>>> ("id")
>>> 20:48:15,206 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,206 [Schema                        ] Creating foreign key
>>> constraint : "InvoiceItem_FK1" in catalog "" schema ""
>>> 20:48:15,206 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
>>> CONSTRAINT "InvoiceItem_FK1" FOREIGN KEY ("taxId") REFERENCES "Tax" ("id")
>>> 20:48:15,207 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,208 [Schema                        ] Creating index
>>> "InvoiceItem_N51" in catalog "" schema ""
>>> 20:48:15,208 [Schema                        ] CREATE INDEX
>>> "InvoiceItem_N51" ON "InvoiceItem" ("taxId")
>>> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,208 [Schema                        ] Creating index
>>> "InvoiceItem_N50" in catalog "" schema ""
>>> 20:48:15,208 [Schema                        ] CREATE INDEX
>>> "InvoiceItem_N50" ON "InvoiceItem" ("invoiceId")
>>> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,208 [Schema                        ] Creating index
>>> "InvoiceItem_N52" in catalog "" schema ""
>>> 20:48:15,208 [Schema                        ] CREATE INDEX
>>> "InvoiceItem_N52" ON "InvoiceItem" ("leaseTermId")
>>> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,208 [Schema                        ] Creating index
>>> "InvoiceItemForLease_LeaseTerm_StartDate_EndDate_DueDate_IDX" in catalog ""
>>> schema ""
>>> 20:48:15,208 [Schema                        ] CREATE INDEX
>>> "InvoiceItemForLease_LeaseTerm_StartDate_EndDate_DueDate_IDX" ON
>>> "InvoiceItem" ("leaseTermId","startDate","endDate","dueDate")
>>> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,208 [Schema                        ] Creating index
>>> "InvoiceItem_N49" in catalog "" schema ""
>>> 20:48:15,208 [Schema                        ] CREATE INDEX
>>> "InvoiceItem_N49" ON "InvoiceItem" ("chargeId")
>>> 20:48:15,209 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,209 [Schema                        ] Creating candidate key
>>> "Brand_name_UNQ" in catalog "" schema ""
>>> 20:48:15,209 [Schema                        ] ALTER TABLE "Brand" ADD
>>> CONSTRAINT "Brand_name_UNQ" UNIQUE ("name")
>>> 20:48:15,209 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,209 [Schema                        ] Creating foreign key
>>> constraint : "FixedAssetRole_FK1" in catalog "" schema ""
>>> 20:48:15,209 [Schema                        ] ALTER TABLE "FixedAssetRole"
>>> ADD CONSTRAINT "FixedAssetRole_FK1" FOREIGN KEY ("assetId") REFERENCES
>>> "FixedAsset" ("id")
>>> 20:48:15,210 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,210 [Schema                        ] Creating foreign key
>>> constraint : "FixedAssetRole_FK2" in catalog "" schema ""
>>> 20:48:15,210 [Schema                        ] ALTER TABLE "FixedAssetRole"
>>> ADD CONSTRAINT "FixedAssetRole_FK2" FOREIGN KEY ("partyId") REFERENCES
>>> "Party" ("id")
>>> 20:48:15,211 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,211 [Schema                        ] Creating index
>>> "FixedAssetRole_N50" in catalog "" schema ""
>>> 20:48:15,211 [Schema                        ] CREATE INDEX
>>> "FixedAssetRole_N50" ON "FixedAssetRole" ("assetId")
>>> 20:48:15,211 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,212 [Schema                        ] Creating index
>>> "FixedAssetRole_N49" in catalog "" schema ""
>>> 20:48:15,212 [Schema                        ] CREATE INDEX
>>> "FixedAssetRole_N49" ON "FixedAssetRole" ("partyId")
>>> 20:48:15,212 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,212 [Schema                        ] Creating candidate key
>>> "Agreement_reference_UNQ" in catalog "" schema ""
>>> 20:48:15,212 [Schema                        ] ALTER TABLE "Agreement" ADD
>>> CONSTRAINT "Agreement_reference_UNQ" UNIQUE ("reference")
>>> 20:48:15,213 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,213 [Schema                        ] Creating foreign key
>>> constraint : "Agreement_FK1" in catalog "" schema ""
>>> 20:48:15,213 [Schema                        ] ALTER TABLE "Agreement" ADD
>>> CONSTRAINT "Agreement_FK1" FOREIGN KEY ("typeId") REFERENCES
>>> "AgreementType" ("id")
>>> 20:48:15,214 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,214 [Schema                        ] Creating foreign key
>>> constraint : "Agreement_FK2" in catalog "" schema ""
>>> 20:48:15,214 [Schema                        ] ALTER TABLE "Agreement" ADD
>>> CONSTRAINT "Agreement_FK2" FOREIGN KEY ("nextAgreementId") REFERENCES
>>> "Agreement" ("id")
>>> 20:48:15,214 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,215 [Schema                        ] Creating index
>>> "Lease_reference_name_IDX" in catalog "" schema ""
>>> 20:48:15,215 [Schema                        ] CREATE INDEX
>>> "Lease_reference_name_IDX" ON "Agreement" ("reference","name")
>>> 20:48:15,215 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,215 [Schema                        ] Creating index
>>> "Agreement_N50" in catalog "" schema ""
>>> 20:48:15,215 [Schema                        ] CREATE INDEX "Agreement_N50"
>>> ON "Agreement" ("typeId")
>>> 20:48:15,215 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,215 [Schema                        ] Creating index
>>> "Agreement_N49" in catalog "" schema ""
>>> 20:48:15,215 [Schema                        ] CREATE INDEX "Agreement_N49"
>>> ON "Agreement" ("nextAgreementId")
>>> 20:48:15,215 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,215 [Schema                        ] Creating foreign key
>>> constraint : "BankMandate_FK1" in catalog "" schema ""
>>> 20:48:15,215 [Schema                        ] ALTER TABLE "BankMandate" ADD
>>> CONSTRAINT "BankMandate_FK1" FOREIGN KEY ("id") REFERENCES "Agreement"
>>> ("id")
>>> 20:48:15,216 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,216 [Schema                        ] Creating foreign key
>>> constraint : "BankMandate_FK2" in catalog "" schema ""
>>> 20:48:15,216 [Schema                        ] ALTER TABLE "BankMandate" ADD
>>> CONSTRAINT "BankMandate_FK2" FOREIGN KEY ("bankAccountId") REFERENCES
>>> "FinancialAccount" ("id")
>>> 20:48:15,216 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,217 [Schema                        ] Creating index
>>> "BankMandate_N49" in catalog "" schema ""
>>> 20:48:15,217 [Schema                        ] CREATE INDEX
>>> "BankMandate_N49" ON "BankMandate" ("bankAccountId")
>>> 20:48:15,217 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,217 [Schema                        ] Creating foreign key
>>> constraint : "Event_FK1" in catalog "" schema ""
>>> 20:48:15,217 [Schema                        ] ALTER TABLE "Event" ADD
>>> CONSTRAINT "Event_FK1" FOREIGN KEY ("subjectBreakOptionId") REFERENCES
>>> "BreakOption" ("id")
>>> 20:48:15,218 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,218 [Schema                        ] Creating index "Event_N49" in
>>> catalog "" schema ""
>>> 20:48:15,218 [Schema                        ] CREATE INDEX "Event_N49" ON
>>> "Event" ("subjectBreakOptionId")
>>> 20:48:15,218 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,218 [Schema                        ] Creating candidate key
>>> "ChargeGroup_reference_UNQ" in catalog "" schema ""
>>> 20:48:15,218 [Schema                        ] ALTER TABLE "ChargeGroup" ADD
>>> CONSTRAINT "ChargeGroup_reference_UNQ" UNIQUE ("reference")
>>> 20:48:15,219 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,219 [Schema                        ] Creating candidate key
>>> "Currency_reference_UNQ" in catalog "" schema ""
>>> 20:48:15,219 [Schema                        ] ALTER TABLE "Currency" ADD
>>> CONSTRAINT "Currency_reference_UNQ" UNIQUE ("reference")
>>> 20:48:15,219 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,220 [Schema                        ] Creating candidate key
>>> "Currency_name_UNQ" in catalog "" schema ""
>>> 20:48:15,220 [Schema                        ] ALTER TABLE "Currency" ADD
>>> CONSTRAINT "Currency_name_UNQ" UNIQUE ("name")
>>> 20:48:15,221 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,221 [Schema                        ] Creating foreign key
>>> constraint : "TaxRate_FK1" in catalog "" schema ""
>>> 20:48:15,221 [Schema                        ] ALTER TABLE "TaxRate" ADD
>>> CONSTRAINT "TaxRate_FK1" FOREIGN KEY ("taxId") REFERENCES "Tax" ("id")
>>> 20:48:15,222 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,222 [Schema                        ] Creating foreign key
>>> constraint : "TaxRate_FK2" in catalog "" schema ""
>>> 20:48:15,222 [Schema                        ] ALTER TABLE "TaxRate" ADD
>>> CONSTRAINT "TaxRate_FK2" FOREIGN KEY ("nextTaxRateId") REFERENCES "TaxRate"
>>> ("id")
>>> 20:48:15,223 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,223 [Schema                        ] Creating index "TaxRate_N49"
>>> in catalog "" schema ""
>>> 20:48:15,223 [Schema                        ] CREATE INDEX "TaxRate_N49" ON
>>> "TaxRate" ("nextTaxRateId")
>>> 20:48:15,223 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,223 [Schema                        ] Creating index "TaxRate_N50"
>>> in catalog "" schema ""
>>> 20:48:15,223 [Schema                        ] CREATE INDEX "TaxRate_N50" ON
>>> "TaxRate" ("taxId")
>>> 20:48:15,223 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,223 [Schema                        ] Creating foreign key
>>> constraint : "PartyRegistration_FK1" in catalog "" schema ""
>>> 20:48:15,224 [Schema                        ] ALTER TABLE
>>> "PartyRegistration" ADD CONSTRAINT "PartyRegistration_FK1" FOREIGN KEY
>>> ("partyId") REFERENCES "Party" ("id")
>>> 20:48:15,225 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,225 [Schema                        ] Creating index
>>> "PartyRegistration_N49" in catalog "" schema ""
>>> 20:48:15,225 [Schema                        ] CREATE INDEX
>>> "PartyRegistration_N49" ON "PartyRegistration" ("partyId")
>>> 20:48:15,225 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,225 [Schema                        ] Creating foreign key
>>> constraint : "AgreementRoleType_FK1" in catalog "" schema ""
>>> 20:48:15,225 [Schema                        ] ALTER TABLE
>>> "AgreementRoleType" ADD CONSTRAINT "AgreementRoleType_FK1" FOREIGN KEY
>>> ("appliesToAgreementTypeId") REFERENCES "AgreementType" ("id")
>>> 20:48:15,226 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,226 [Schema                        ] Creating index
>>> "AgreementRoleType_N49" in catalog "" schema ""
>>> 20:48:15,226 [Schema                        ] CREATE INDEX
>>> "AgreementRoleType_N49" ON "AgreementRoleType" ("appliesToAgreementTypeId")
>>> 20:48:15,227 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,227 [Schema                        ] Creating candidate key
>>> "FinancialAccount_reference_UNQ" in catalog "" schema ""
>>> 20:48:15,227 [Schema                        ] ALTER TABLE
>>> "FinancialAccount" ADD CONSTRAINT "FinancialAccount_reference_UNQ" UNIQUE
>>> ("reference")
>>> 20:48:15,228 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,229 [Schema                        ] Creating foreign key
>>> constraint : "FinancialAccount_FK1" in catalog "" schema ""
>>> 20:48:15,229 [Schema                        ] ALTER TABLE
>>> "FinancialAccount" ADD CONSTRAINT "FinancialAccount_FK1" FOREIGN KEY
>>> ("ownerPartyId") REFERENCES "Party" ("id")
>>> 20:48:15,231 [Schema                        ] Execution Time = 2 ms
>>> 20:48:15,231 [Schema                        ] Creating index
>>> "FinancialAccount_N49" in catalog "" schema ""
>>> 20:48:15,231 [Schema                        ] CREATE INDEX
>>> "FinancialAccount_N49" ON "FinancialAccount" ("ownerPartyId")
>>> 20:48:15,231 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,232 [Schema                        ] Creating foreign key
>>> constraint : "BankAccount_FK1" in catalog "" schema ""
>>> 20:48:15,232 [Schema                        ] ALTER TABLE "BankAccount" ADD
>>> CONSTRAINT "BankAccount_FK1" FOREIGN KEY ("id") REFERENCES
>>> "FinancialAccount" ("id")
>>> 20:48:15,232 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,232 [Schema                        ] Creating foreign key
>>> constraint : "BankAccount_FK2" in catalog "" schema ""
>>> 20:48:15,232 [Schema                        ] ALTER TABLE "BankAccount" ADD
>>> CONSTRAINT "BankAccount_FK2" FOREIGN KEY ("countryId") REFERENCES "Country"
>>> ("id")
>>> 20:48:15,233 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,233 [Schema                        ] Creating foreign key
>>> constraint : "BankAccount_FK3" in catalog "" schema ""
>>> 20:48:15,233 [Schema                        ] ALTER TABLE "BankAccount" ADD
>>> CONSTRAINT "BankAccount_FK3" FOREIGN KEY ("fixedAssetId") REFERENCES
>>> "Property" ("id")
>>> 20:48:15,234 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,234 [Schema                        ] Creating foreign key
>>> constraint : "BankAccount_FK4" in catalog "" schema ""
>>> 20:48:15,234 [Schema                        ] ALTER TABLE "BankAccount" ADD
>>> CONSTRAINT "BankAccount_FK4" FOREIGN KEY ("bankPartyId") REFERENCES "Party"
>>> ("id")
>>> 20:48:15,234 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,235 [Schema                        ] Creating index
>>> "BankAccount_N51" in catalog "" schema ""
>>> 20:48:15,235 [Schema                        ] CREATE INDEX
>>> "BankAccount_N51" ON "BankAccount" ("fixedAssetId")
>>> 20:48:15,235 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,235 [Schema                        ] Creating index
>>> "BankAccount_N50" in catalog "" schema ""
>>> 20:48:15,235 [Schema                        ] CREATE INDEX
>>> "BankAccount_N50" ON "BankAccount" ("bankPartyId")
>>> 20:48:15,235 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,235 [Schema                        ] Creating index
>>> "BankAccount_N49" in catalog "" schema ""
>>> 20:48:15,235 [Schema                        ] CREATE INDEX
>>> "BankAccount_N49" ON "BankAccount" ("countryId")
>>> 20:48:15,235 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,235 [Schema                        ] Creating candidate key
>>> "UnitSize_name_UNQ" in catalog "" schema ""
>>> 20:48:15,235 [Schema                        ] ALTER TABLE "UnitSize" ADD
>>> CONSTRAINT "UnitSize_name_UNQ" UNIQUE ("name")
>>> 20:48:15,236 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,236 [Schema                        ] Creating candidate key
>>> "FixedAsset_reference_UNQ" in catalog "" schema ""
>>> 20:48:15,236 [Schema                        ] ALTER TABLE "FixedAsset" ADD
>>> CONSTRAINT "FixedAsset_reference_UNQ" UNIQUE ("reference")
>>> 20:48:15,237 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,237 [Schema                        ] Creating index
>>> "FixedAsset_reference_name_IDX" in catalog "" schema ""
>>> 20:48:15,237 [Schema                        ] CREATE INDEX
>>> "FixedAsset_reference_name_IDX" ON "FixedAsset" ("reference","name")
>>> 20:48:15,237 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,237 [Schema                        ] Creating foreign key
>>> constraint : "Property_FK2" in catalog "" schema ""
>>> 20:48:15,237 [Schema                        ] ALTER TABLE "Property" ADD
>>> CONSTRAINT "Property_FK2" FOREIGN KEY ("countryId") REFERENCES "Country"
>>> ("id")
>>> 20:48:15,238 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,238 [Schema                        ] Creating foreign key
>>> constraint : "Property_FK1" in catalog "" schema ""
>>> 20:48:15,238 [Schema                        ] ALTER TABLE "Property" ADD
>>> CONSTRAINT "Property_FK1" FOREIGN KEY ("id") REFERENCES "FixedAsset" ("id")
>>> 20:48:15,238 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,238 [Schema                        ] Creating index "Property_N49"
>>> in catalog "" schema ""
>>> 20:48:15,238 [Schema                        ] CREATE INDEX "Property_N49"
>>> ON "Property" ("countryId")
>>> 20:48:15,239 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,239 [Schema                        ] Creating foreign key
>>> constraint : "LeaseAssignment_FK2" in catalog "" schema ""
>>> 20:48:15,239 [Schema                        ] ALTER TABLE "LeaseAssignment"
>>> ADD CONSTRAINT "LeaseAssignment_FK2" FOREIGN KEY ("previousLeaseId")
>>> REFERENCES "Lease" ("id")
>>> 20:48:15,239 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,239 [Schema                        ] Creating foreign key
>>> constraint : "LeaseAssignment_FK1" in catalog "" schema ""
>>> 20:48:15,239 [Schema                        ] ALTER TABLE "LeaseAssignment"
>>> ADD CONSTRAINT "LeaseAssignment_FK1" FOREIGN KEY ("nextLeaseId") REFERENCES
>>> "Lease" ("id")
>>> 20:48:15,240 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,240 [Schema                        ] Creating index
>>> "LeaseAssignment_N49" in catalog "" schema ""
>>> 20:48:15,240 [Schema                        ] CREATE INDEX
>>> "LeaseAssignment_N49" ON "LeaseAssignment" ("previousLeaseId")
>>> 20:48:15,241 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,241 [Schema                        ] Creating index
>>> "LeaseAssignment_N50" in catalog "" schema ""
>>> 20:48:15,241 [Schema                        ] CREATE INDEX
>>> "LeaseAssignment_N50" ON "LeaseAssignment" ("nextLeaseId")
>>> 20:48:15,241 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,241 [Schema                        ] Creating candidate key
>>> "Geography_reference_UNQ" in catalog "" schema ""
>>> 20:48:15,241 [Schema                        ] ALTER TABLE "State" ADD
>>> CONSTRAINT "Geography_reference_UNQ" UNIQUE ("reference")
>>> 20:48:15,242 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,242 [Schema                        ] Creating candidate key
>>> "Geography_name_UNQ" in catalog "" schema ""
>>> 20:48:15,242 [Schema                        ] ALTER TABLE "State" ADD
>>> CONSTRAINT "Geography_name_UNQ" UNIQUE ("name")
>>> 20:48:15,243 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,243 [Schema                        ] Creating foreign key
>>> constraint : "State_FK1" in catalog "" schema ""
>>> 20:48:15,243 [Schema                        ] ALTER TABLE "State" ADD
>>> CONSTRAINT "State_FK1" FOREIGN KEY ("countryId") REFERENCES "Country"
>>> ("id")
>>> 20:48:15,243 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,244 [Schema                        ] Creating index "State_N49" in
>>> catalog "" schema ""
>>> 20:48:15,244 [Schema                        ] CREATE INDEX "State_N49" ON
>>> "State" ("countryId")
>>> 20:48:15,244 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,244 [Schema                        ] Creating foreign key
>>> constraint : "LeaseStatusReason_FK1" in catalog "" schema ""
>>> 20:48:15,244 [Schema                        ] ALTER TABLE
>>> "LeaseStatusReason" ADD CONSTRAINT "LeaseStatusReason_FK1" FOREIGN KEY
>>> ("leaseId") REFERENCES "Lease" ("id")
>>> 20:48:15,245 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,245 [Schema                        ] Creating index
>>> "LeaseStatusReason_N49" in catalog "" schema ""
>>> 20:48:15,245 [Schema                        ] CREATE INDEX
>>> "LeaseStatusReason_N49" ON "LeaseStatusReason" ("leaseId")
>>> 20:48:15,245 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,246 [Schema                        ] Creating candidate key
>>> "Activity_sector_name_UNQ" in catalog "" schema ""
>>> 20:48:15,246 [Schema                        ] ALTER TABLE "Activity" ADD
>>> CONSTRAINT "Activity_sector_name_UNQ" UNIQUE ("sectorId","name")
>>> 20:48:15,246 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,246 [Schema                        ] Creating foreign key
>>> constraint : "Activity_FK1" in catalog "" schema ""
>>> 20:48:15,246 [Schema                        ] ALTER TABLE "Activity" ADD
>>> CONSTRAINT "Activity_FK1" FOREIGN KEY ("sectorId") REFERENCES "Sector"
>>> ("id")
>>> 20:48:15,247 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,247 [Schema                        ] Creating index "Activity_N49"
>>> in catalog "" schema ""
>>> 20:48:15,247 [Schema                        ] CREATE INDEX "Activity_N49"
>>> ON "Activity" ("sectorId")
>>> 20:48:15,248 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,248 [Schema                        ] Creating candidate key
>>> "Party_reference_UNQ" in catalog "" schema ""
>>> 20:48:15,248 [Schema                        ] ALTER TABLE "Party" ADD
>>> CONSTRAINT "Party_reference_UNQ" UNIQUE ("reference")
>>> 20:48:15,248 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,249 [Schema                        ] Creating index
>>> "Party_reference_name_IDX" in catalog "" schema ""
>>> 20:48:15,249 [Schema                        ] CREATE INDEX
>>> "Party_reference_name_IDX" ON "Party" ("reference","name")
>>> 20:48:15,249 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,249 [Schema                        ] Creating foreign key
>>> constraint : "Organisation_FK1" in catalog "" schema ""
>>> 20:48:15,249 [Schema                        ] ALTER TABLE "Organisation"
>>> ADD CONSTRAINT "Organisation_FK1" FOREIGN KEY ("id") REFERENCES "Party"
>>> ("id")
>>> 20:48:15,249 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,250 [Schema                        ] Creating candidate key
>>> "FixedAssetRegistrationType_title_UNQ" in catalog "" schema ""
>>> 20:48:15,250 [Schema                        ] ALTER TABLE
>>> "FixedAssetRegistrationType" ADD CONSTRAINT
>>> "FixedAssetRegistrationType_title_UNQ" UNIQUE ("title")
>>> 20:48:15,250 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,250 [Schema                        ] Creating foreign key
>>> constraint : "FixedAssetRegistration_FK2" in catalog "" schema ""
>>> 20:48:15,250 [Schema                        ] ALTER TABLE
>>> "FixedAssetRegistration" ADD CONSTRAINT "FixedAssetRegistration_FK2"
>>> FOREIGN KEY ("subjectId") REFERENCES "FixedAsset" ("id")
>>> 20:48:15,251 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,251 [Schema                        ] Creating foreign key
>>> constraint : "FixedAssetRegistration_FK1" in catalog "" schema ""
>>> 20:48:15,251 [Schema                        ] ALTER TABLE
>>> "FixedAssetRegistration" ADD CONSTRAINT "FixedAssetRegistration_FK1"
>>> FOREIGN KEY ("typeId") REFERENCES "FixedAssetRegistrationType" ("id")
>>> 20:48:15,252 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,252 [Schema                        ] Creating index
>>> "FixedAssetRegistration_N49" in catalog "" schema ""
>>> 20:48:15,252 [Schema                        ] CREATE INDEX
>>> "FixedAssetRegistration_N49" ON "FixedAssetRegistration" ("subjectId")
>>> 20:48:15,252 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,252 [Schema                        ] Creating index
>>> "FixedAssetRegistration_N50" in catalog "" schema ""
>>> 20:48:15,252 [Schema                        ] CREATE INDEX
>>> "FixedAssetRegistration_N50" ON "FixedAssetRegistration" ("typeId")
>>> 20:48:15,252 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,253 [Schema                        ] Creating foreign key
>>> constraint : "LandRegister_FK1" in catalog "" schema ""
>>> 20:48:15,253 [Schema                        ] ALTER TABLE "LandRegister"
>>> ADD CONSTRAINT "LandRegister_FK1" FOREIGN KEY ("id") REFERENCES
>>> "FixedAssetRegistration" ("id")
>>> 20:48:15,253 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,253 [Schema                        ] Creating candidate key
>>> "Tag_taggable_name_UNQ" in catalog "" schema ""
>>> 20:48:15,253 [Schema                        ] ALTER TABLE "Tag" ADD
>>> CONSTRAINT "Tag_taggable_name_UNQ" UNIQUE
>>> ("taggable_Occupancy_id_EID","name")
>>> 20:48:15,254 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,254 [Schema                        ] Creating foreign key
>>> constraint : "Tag_FK1" in catalog "" schema ""
>>> 20:48:15,254 [Schema                        ] ALTER TABLE "Tag" ADD
>>> CONSTRAINT "Tag_FK1" FOREIGN KEY ("taggable_Occupancy_id_EID") REFERENCES
>>> "Occupancy" ("id")
>>> 20:48:15,255 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,255 [Schema                        ] Creating index "Tag_N49" in
>>> catalog "" schema ""
>>> 20:48:15,255 [Schema                        ] CREATE INDEX "Tag_N49" ON
>>> "Tag" ("taggable_Occupancy_id_EID")
>>> 20:48:15,255 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,255 [Schema                        ] Creating candidate key
>>> "Charge_reference_UNQ" in catalog "" schema ""
>>> 20:48:15,255 [Schema                        ] ALTER TABLE "Charge" ADD
>>> CONSTRAINT "Charge_reference_UNQ" UNIQUE ("reference")
>>> 20:48:15,256 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,256 [Schema                        ] Creating candidate key
>>> "Charge_name_UNQ" in catalog "" schema ""
>>> 20:48:15,256 [Schema                        ] ALTER TABLE "Charge" ADD
>>> CONSTRAINT "Charge_name_UNQ" UNIQUE ("name")
>>> 20:48:15,257 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,257 [Schema                        ] Creating foreign key
>>> constraint : "Charge_FK2" in catalog "" schema ""
>>> 20:48:15,257 [Schema                        ] ALTER TABLE "Charge" ADD
>>> CONSTRAINT "Charge_FK2" FOREIGN KEY ("taxId") REFERENCES "Tax" ("id")
>>> 20:48:15,258 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,258 [Schema                        ] Creating foreign key
>>> constraint : "Charge_FK1" in catalog "" schema ""
>>> 20:48:15,258 [Schema                        ] ALTER TABLE "Charge" ADD
>>> CONSTRAINT "Charge_FK1" FOREIGN KEY ("groupId") REFERENCES "ChargeGroup"
>>> ("id")
>>> 20:48:15,259 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,259 [Schema                        ] Creating index "Charge_N50"
>>> in catalog "" schema ""
>>> 20:48:15,259 [Schema                        ] CREATE INDEX "Charge_N50" ON
>>> "Charge" ("groupId")
>>> 20:48:15,259 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,259 [Schema                        ] Creating index "Charge_N49"
>>> in catalog "" schema ""
>>> 20:48:15,259 [Schema                        ] CREATE INDEX "Charge_N49" ON
>>> "Charge" ("taxId")
>>> 20:48:15,260 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,260 [Schema                        ] Creating foreign key
>>> constraint : "IndexValue_FK1" in catalog "" schema ""
>>> 20:48:15,260 [Schema                        ] ALTER TABLE "IndexValue" ADD
>>> CONSTRAINT "IndexValue_FK1" FOREIGN KEY ("indexBaseId") REFERENCES
>>> "IndexBase" ("id")
>>> 20:48:15,260 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,261 [Schema                        ] Creating index
>>> "IndexValue_N49" in catalog "" schema ""
>>> 20:48:15,261 [Schema                        ] CREATE INDEX "IndexValue_N49"
>>> ON "IndexValue" ("indexBaseId")
>>> 20:48:15,261 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,261 [Schema                        ] Creating candidate key
>>> "Tax_reference_UNQ" in catalog "" schema ""
>>> 20:48:15,261 [Schema                        ] ALTER TABLE "Tax" ADD
>>> CONSTRAINT "Tax_reference_UNQ" UNIQUE ("reference")
>>> 20:48:15,261 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,262 [Schema                        ] Creating foreign key
>>> constraint : "Invoice_FK4" in catalog "" schema ""
>>> 20:48:15,262 [Schema                        ] ALTER TABLE "Invoice" ADD
>>> CONSTRAINT "Invoice_FK4" FOREIGN KEY ("currencyId") REFERENCES "Currency"
>>> ("id")
>>> 20:48:15,262 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,263 [Schema                        ] Creating foreign key
>>> constraint : "Invoice_FK3" in catalog "" schema ""
>>> 20:48:15,263 [Schema                        ] ALTER TABLE "Invoice" ADD
>>> CONSTRAINT "Invoice_FK3" FOREIGN KEY ("sellerPartyId") REFERENCES "Party"
>>> ("id")
>>> 20:48:15,264 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,264 [Schema                        ] Creating foreign key
>>> constraint : "Invoice_FK2" in catalog "" schema ""
>>> 20:48:15,264 [Schema                        ] ALTER TABLE "Invoice" ADD
>>> CONSTRAINT "Invoice_FK2" FOREIGN KEY ("buyerPartyId") REFERENCES "Party"
>>> ("id")
>>> 20:48:15,264 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,265 [Schema                        ] Creating foreign key
>>> constraint : "Invoice_FK1" in catalog "" schema ""
>>> 20:48:15,265 [Schema                        ] ALTER TABLE "Invoice" ADD
>>> CONSTRAINT "Invoice_FK1" FOREIGN KEY ("sourceLeaseId") REFERENCES "Lease"
>>> ("id")
>>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,266 [Schema                        ] Creating index "Invoice_N51"
>>> in catalog "" schema ""
>>> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N51" ON
>>> "Invoice" ("currencyId")
>>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,266 [Schema                        ] Creating index "Invoice_N52"
>>> in catalog "" schema ""
>>> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N52" ON
>>> "Invoice" ("sourceLeaseId")
>>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,266 [Schema                        ] Creating index "Invoice_N49"
>>> in catalog "" schema ""
>>> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N49" ON
>>> "Invoice" ("buyerPartyId")
>>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,266 [Schema                        ] Creating index "Invoice_N50"
>>> in catalog "" schema ""
>>> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N50" ON
>>> "Invoice" ("sellerPartyId")
>>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,267 [Schema                        ] Creating foreign key
>>> constraint : "Person_FK1" in catalog "" schema ""
>>> 20:48:15,267 [Schema                        ] ALTER TABLE "Person" ADD
>>> CONSTRAINT "Person_FK1" FOREIGN KEY ("id") REFERENCES "Party" ("id")
>>> 20:48:15,267 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,267 [Schema                        ] Creating candidate key
>>> "Country_alpha2Code_UNQ" in catalog "" schema ""
>>> 20:48:15,267 [Schema                        ] ALTER TABLE "Country" ADD
>>> CONSTRAINT "Country_alpha2Code_UNQ" UNIQUE ("alpha2Code")
>>> 20:48:15,268 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,269 [Schema                        ] Creating candidate key
>>> "Country_reference_UNQ" in catalog "" schema ""
>>> 20:48:15,269 [Schema                        ] ALTER TABLE "Country" ADD
>>> CONSTRAINT "Country_reference_UNQ" UNIQUE ("reference")
>>> 20:48:15,270 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,270 [Schema                        ] Creating candidate key
>>> "Country_name_UNQ" in catalog "" schema ""
>>> 20:48:15,270 [Schema                        ] ALTER TABLE "Country" ADD
>>> CONSTRAINT "Country_name_UNQ" UNIQUE ("name")
>>> 20:48:15,271 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,271 [Schema                        ] Creating foreign key
>>> constraint : "Lease_FK3" in catalog "" schema ""
>>> 20:48:15,271 [Schema                        ] ALTER TABLE "Lease" ADD
>>> CONSTRAINT "Lease_FK3" FOREIGN KEY ("leaseTypeId") REFERENCES "LeaseType"
>>> ("id")
>>> 20:48:15,272 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,272 [Schema                        ] Creating foreign key
>>> constraint : "Lease_FK2" in catalog "" schema ""
>>> 20:48:15,272 [Schema                        ] ALTER TABLE "Lease" ADD
>>> CONSTRAINT "Lease_FK2" FOREIGN KEY ("paidByBankMandateId") REFERENCES
>>> "BankMandate" ("id")
>>> 20:48:15,273 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,273 [Schema                        ] Creating foreign key
>>> constraint : "Lease_FK1" in catalog "" schema ""
>>> 20:48:15,273 [Schema                        ] ALTER TABLE "Lease" ADD
>>> CONSTRAINT "Lease_FK1" FOREIGN KEY ("id") REFERENCES "Agreement" ("id")
>>> 20:48:15,274 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,274 [Schema                        ] Creating index "Lease_N50" in
>>> catalog "" schema ""
>>> 20:48:15,274 [Schema                        ] CREATE INDEX "Lease_N50" ON
>>> "Lease" ("leaseTypeId")
>>> 20:48:15,274 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,275 [Schema                        ] Creating index "Lease_N49" in
>>> catalog "" schema ""
>>> 20:48:15,275 [Schema                        ] CREATE INDEX "Lease_N49" ON
>>> "Lease" ("paidByBankMandateId")
>>> 20:48:15,275 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,275 [Schema                        ] Creating candidate key
>>> "LeaseItem_lease_type_startDate_sequence_IDX" in catalog "" schema ""
>>> 20:48:15,275 [Schema                        ] ALTER TABLE "LeaseItem" ADD
>>> CONSTRAINT "LeaseItem_lease_type_startDate_sequence_IDX" UNIQUE
>>> ("leaseId","type","startDate","sequence")
>>> 20:48:15,277 [Schema                        ] Execution Time = 2 ms
>>> 20:48:15,277 [Schema                        ] Creating foreign key
>>> constraint : "LeaseItem_FK1" in catalog "" schema ""
>>> 20:48:15,277 [Schema                        ] ALTER TABLE "LeaseItem" ADD
>>> CONSTRAINT "LeaseItem_FK1" FOREIGN KEY ("leaseId") REFERENCES "Lease"
>>> ("id")
>>> 20:48:15,279 [Schema                        ] Execution Time = 2 ms
>>> 20:48:15,279 [Schema                        ] Creating foreign key
>>> constraint : "LeaseItem_FK2" in catalog "" schema ""
>>> 20:48:15,279 [Schema                        ] ALTER TABLE "LeaseItem" ADD
>>> CONSTRAINT "LeaseItem_FK2" FOREIGN KEY ("chargeId") REFERENCES "Charge"
>>> ("id")
>>> 20:48:15,281 [Schema                        ] Execution Time = 2 ms
>>> 20:48:15,281 [Schema                        ] Creating index
>>> "LeaseItem_lease_type_startDate_IDX" in catalog "" schema ""
>>> 20:48:15,281 [Schema                        ] CREATE INDEX
>>> "LeaseItem_lease_type_startDate_IDX" ON "LeaseItem"
>>> ("leaseId","type","startDate")
>>> 20:48:15,282 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,282 [Schema                        ] Creating index
>>> "LeaseItem_N50" in catalog "" schema ""
>>> 20:48:15,282 [Schema                        ] CREATE INDEX "LeaseItem_N50"
>>> ON "LeaseItem" ("leaseId")
>>> 20:48:15,282 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,282 [Schema                        ] Creating index
>>> "LeaseItem_lease_type_sequence_IDX" in catalog "" schema ""
>>> 20:48:15,282 [Schema                        ] CREATE INDEX
>>> "LeaseItem_lease_type_sequence_IDX" ON "LeaseItem"
>>> ("leaseId","type","sequence")
>>> 20:48:15,282 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,282 [Schema                        ] Creating index
>>> "LeaseItem_N49" in catalog "" schema ""
>>> 20:48:15,282 [Schema                        ] CREATE INDEX "LeaseItem_N49"
>>> ON "LeaseItem" ("chargeId")
>>> 20:48:15,283 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,283 [Schema                        ] Creating foreign key
>>> constraint : "AgreementRoleCommunicationChannelType_FK1" in catalog ""
>>> schema ""
>>> 20:48:15,283 [Schema                        ] ALTER TABLE
>>> "AgreementRoleCommunicationChannelType" ADD CONSTRAINT
>>> "AgreementRoleCommunicationChannelType_FK1" FOREIGN KEY
>>> ("appliesToAgreementTypeId") REFERENCES "AgreementType" ("id")
>>> 20:48:15,284 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,284 [Schema                        ] Creating index
>>> "AgreementRoleCommunicationChannelType_N49" in catalog "" schema ""
>>> 20:48:15,284 [Schema                        ] CREATE INDEX
>>> "AgreementRoleCommunicationChannelType_N49" ON
>>> "AgreementRoleCommunicationChannelType" ("appliesToAgreementTypeId")
>>> 20:48:15,284 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,284 [Schema                        ] Creating candidate key
>>> "LeaseType_reference_UNQ" in catalog "" schema ""
>>> 20:48:15,284 [Schema                        ] ALTER TABLE "LeaseType" ADD
>>> CONSTRAINT "LeaseType_reference_UNQ" UNIQUE ("reference")
>>> 20:48:15,285 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,285 [Schema                        ] Creating candidate key
>>> "LeaseType_name_UNQ" in catalog "" schema ""
>>> 20:48:15,285 [Schema                        ] ALTER TABLE "LeaseType" ADD
>>> CONSTRAINT "LeaseType_name_UNQ" UNIQUE ("name")
>>> 20:48:15,286 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,286 [Schema                        ] Creating foreign key
>>> constraint : "AgreementRoleCommunicationChannel_FK3" in catalog "" schema ""
>>> 20:48:15,286 [Schema                        ] ALTER TABLE
>>> "AgreementRoleCommunicationChannel" ADD CONSTRAINT
>>> "AgreementRoleCommunicationChannel_FK3" FOREIGN KEY
>>> ("communicationChannelId") REFERENCES "CommunicationChannel" ("id")
>>> 20:48:15,287 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,287 [Schema                        ] Creating foreign key
>>> constraint : "AgreementRoleCommunicationChannel_FK2" in catalog "" schema ""
>>> 20:48:15,287 [Schema                        ] ALTER TABLE
>>> "AgreementRoleCommunicationChannel" ADD CONSTRAINT
>>> "AgreementRoleCommunicationChannel_FK2" FOREIGN KEY ("agreementRoleId")
>>> REFERENCES "AgreementRole" ("id")
>>> 20:48:15,288 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,289 [Schema                        ] Creating foreign key
>>> constraint : "AgreementRoleCommunicationChannel_FK1" in catalog "" schema ""
>>> 20:48:15,289 [Schema                        ] ALTER TABLE
>>> "AgreementRoleCommunicationChannel" ADD CONSTRAINT
>>> "AgreementRoleCommunicationChannel_FK1" FOREIGN KEY ("typeId") REFERENCES
>>> "AgreementRoleCommunicationChannelType" ("id")
>>> 20:48:15,290 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,290 [Schema                        ] Creating index
>>> "AgreementRoleCommunicationChannel_N49" in catalog "" schema ""
>>> 20:48:15,290 [Schema                        ] CREATE INDEX
>>> "AgreementRoleCommunicationChannel_N49" ON
>>> "AgreementRoleCommunicationChannel" ("communicationChannelId")
>>> 20:48:15,291 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,291 [Schema                        ] Creating index
>>> "AgreementRoleCommunicationChannel_N50" in catalog "" schema ""
>>> 20:48:15,291 [Schema                        ] CREATE INDEX
>>> "AgreementRoleCommunicationChannel_N50" ON
>>> "AgreementRoleCommunicationChannel" ("agreementRoleId")
>>> 20:48:15,291 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,291 [Schema                        ] Creating index
>>> "AgreementRoleCommunicationChannel_N51" in catalog "" schema ""
>>> 20:48:15,291 [Schema                        ] CREATE INDEX
>>> "AgreementRoleCommunicationChannel_N51" ON
>>> "AgreementRoleCommunicationChannel" ("typeId")
>>> 20:48:15,291 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,291 [Schema                        ] Creating candidate key
>>> "AgreementType_title_UNQ" in catalog "" schema ""
>>> 20:48:15,291 [Schema                        ] ALTER TABLE "AgreementType"
>>> ADD CONSTRAINT "AgreementType_title_UNQ" UNIQUE ("title")
>>> 20:48:15,292 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,292 [Schema                        ] Creating candidate key
>>> "Occupancy_lease_unit_startDate_UNQ" in catalog "" schema ""
>>> 20:48:15,292 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>> CONSTRAINT "Occupancy_lease_unit_startDate_UNQ" UNIQUE
>>> ("leaseId","unitId","startDate")
>>> 20:48:15,294 [Schema                        ] Execution Time = 2 ms
>>> 20:48:15,294 [Schema                        ] Creating foreign key
>>> constraint : "Occupancy_FK5" in catalog "" schema ""
>>> 20:48:15,294 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>> CONSTRAINT "Occupancy_FK5" FOREIGN KEY ("sectorId") REFERENCES "Sector"
>>> ("id")
>>> 20:48:15,295 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,296 [Schema                        ] Creating foreign key
>>> constraint : "Occupancy_FK6" in catalog "" schema ""
>>> 20:48:15,296 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>> CONSTRAINT "Occupancy_FK6" FOREIGN KEY ("brandId") REFERENCES "Brand"
>>> ("id")
>>> 20:48:15,297 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,297 [Schema                        ] Creating foreign key
>>> constraint : "Occupancy_FK3" in catalog "" schema ""
>>> 20:48:15,297 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>> CONSTRAINT "Occupancy_FK3" FOREIGN KEY ("activityId") REFERENCES "Activity"
>>> ("id")
>>> 20:48:15,299 [Schema                        ] Execution Time = 2 ms
>>> 20:48:15,299 [Schema                        ] Creating foreign key
>>> constraint : "Occupancy_FK4" in catalog "" schema ""
>>> 20:48:15,299 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>> CONSTRAINT "Occupancy_FK4" FOREIGN KEY ("leaseId") REFERENCES "Lease"
>>> ("id")
>>> 20:48:15,301 [Schema                        ] Execution Time = 2 ms
>>> 20:48:15,301 [Schema                        ] Creating foreign key
>>> constraint : "Occupancy_FK1" in catalog "" schema ""
>>> 20:48:15,301 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>> CONSTRAINT "Occupancy_FK1" FOREIGN KEY ("unitId") REFERENCES "Unit" ("id")
>>> 20:48:15,302 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,303 [Schema                        ] Creating foreign key
>>> constraint : "Occupancy_FK2" in catalog "" schema ""
>>> 20:48:15,303 [Schema                        ] ALTER TABLE "Occupancy" ADD
>>> CONSTRAINT "Occupancy_FK2" FOREIGN KEY ("unitSizeId") REFERENCES "UnitSize"
>>> ("id")
>>> 20:48:15,304 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,304 [Schema                        ] Creating index
>>> "Occupancy_N54" in catalog "" schema ""
>>> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N54"
>>> ON "Occupancy" ("brandId")
>>> 20:48:15,305 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,305 [Schema                        ] Creating index
>>> "Occupancy_N53" in catalog "" schema ""
>>> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N53"
>>> ON "Occupancy" ("unitId")
>>> 20:48:15,305 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,305 [Schema                        ] Creating index
>>> "Occupancy_N52" in catalog "" schema ""
>>> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N52"
>>> ON "Occupancy" ("sectorId")
>>> 20:48:15,305 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,305 [Schema                        ] Creating index
>>> "Occupancy_N51" in catalog "" schema ""
>>> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N51"
>>> ON "Occupancy" ("activityId")
>>> 20:48:15,306 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,306 [Schema                        ] Creating index
>>> "Occupancy_N49" in catalog "" schema ""
>>> 20:48:15,306 [Schema                        ] CREATE INDEX "Occupancy_N49"
>>> ON "Occupancy" ("leaseId")
>>> 20:48:15,306 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,306 [Schema                        ] Creating index
>>> "Occupancy_N50" in catalog "" schema ""
>>> 20:48:15,306 [Schema                        ] CREATE INDEX "Occupancy_N50"
>>> ON "Occupancy" ("unitSizeId")
>>> 20:48:15,306 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,306 [Schema                        ] Creating foreign key
>>> constraint : "IndexBase_FK2" in catalog "" schema ""
>>> 20:48:15,306 [Schema                        ] ALTER TABLE "IndexBase" ADD
>>> CONSTRAINT "IndexBase_FK2" FOREIGN KEY ("indexId") REFERENCES "Index"
>>> ("id")
>>> 20:48:15,307 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,307 [Schema                        ] Creating foreign key
>>> constraint : "IndexBase_FK1" in catalog "" schema ""
>>> 20:48:15,307 [Schema                        ] ALTER TABLE "IndexBase" ADD
>>> CONSTRAINT "IndexBase_FK1" FOREIGN KEY ("nextIndexBaseId") REFERENCES
>>> "IndexBase" ("id")
>>> 20:48:15,308 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,308 [Schema                        ] Creating index
>>> "IndexBase_N50" in catalog "" schema ""
>>> 20:48:15,308 [Schema                        ] CREATE INDEX "IndexBase_N50"
>>> ON "IndexBase" ("indexId")
>>> 20:48:15,309 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,309 [Schema                        ] Creating index
>>> "IndexBase_N49" in catalog "" schema ""
>>> 20:48:15,309 [Schema                        ] CREATE INDEX "IndexBase_N49"
>>> ON "IndexBase" ("nextIndexBaseId")
>>> 20:48:15,309 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,309 [Schema                        ] Creating candidate key
>>> "Index_name_UNQ" in catalog "" schema ""
>>> 20:48:15,309 [Schema                        ] ALTER TABLE "Index" ADD
>>> CONSTRAINT "Index_name_UNQ" UNIQUE ("name")
>>> 20:48:15,310 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,310 [Schema                        ] Creating candidate key
>>> "Index_reference_UNQ" in catalog "" schema ""
>>> 20:48:15,310 [Schema                        ] ALTER TABLE "Index" ADD
>>> CONSTRAINT "Index_reference_UNQ" UNIQUE ("reference")
>>> 20:48:15,311 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,311 [Schema                        ] Creating foreign key
>>> constraint : "AgreementRole_FK3" in catalog "" schema ""
>>> 20:48:15,311 [Schema                        ] ALTER TABLE "AgreementRole"
>>> ADD CONSTRAINT "AgreementRole_FK3" FOREIGN KEY ("agreementId") REFERENCES
>>> "Agreement" ("id")
>>> 20:48:15,312 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,313 [Schema                        ] Creating foreign key
>>> constraint : "AgreementRole_FK2" in catalog "" schema ""
>>> 20:48:15,313 [Schema                        ] ALTER TABLE "AgreementRole"
>>> ADD CONSTRAINT "AgreementRole_FK2" FOREIGN KEY ("typeId") REFERENCES
>>> "AgreementRoleType" ("id")
>>> 20:48:15,314 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,314 [Schema                        ] Creating foreign key
>>> constraint : "AgreementRole_FK1" in catalog "" schema ""
>>> 20:48:15,314 [Schema                        ] ALTER TABLE "AgreementRole"
>>> ADD CONSTRAINT "AgreementRole_FK1" FOREIGN KEY ("partyId") REFERENCES
>>> "Party" ("id")
>>> 20:48:15,315 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,315 [Schema                        ] Creating index
>>> "AgreementRole_N49" in catalog "" schema ""
>>> 20:48:15,315 [Schema                        ] CREATE INDEX
>>> "AgreementRole_N49" ON "AgreementRole" ("agreementId")
>>> 20:48:15,315 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,315 [Schema                        ] Creating index
>>> "AgreementRole_N51" in catalog "" schema ""
>>> 20:48:15,315 [Schema                        ] CREATE INDEX
>>> "AgreementRole_N51" ON "AgreementRole" ("typeId")
>>> 20:48:15,316 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,316 [Schema                        ] Creating index
>>> "AgreementRole_N50" in catalog "" schema ""
>>> 20:48:15,316 [Schema                        ] CREATE INDEX
>>> "AgreementRole_N50" ON "AgreementRole" ("partyId")
>>> 20:48:15,316 [Schema                        ] Execution Time = 0 ms
>>> 20:48:15,316 [Schema                        ] Creating candidate key
>>> "Sector_name_UNQ" in catalog "" schema ""
>>> 20:48:15,316 [Schema                        ] ALTER TABLE "Sector" ADD
>>> CONSTRAINT "Sector_name_UNQ" UNIQUE ("name")
>>> 20:48:15,317 [Schema                        ] Execution Time = 1 ms
>>> 20:48:15,318 [Schema                        ] Check of existence of
>>> "InvoiceSummaryForPropertyDueDate" returned no table
>>> 20:48:15,318 [Schema                        ] Creating table
>>> "InvoiceSummaryForPropertyDueDate"
>>> 20:48:15,318 [Schema                        ] CREATE VIEW
>>> "InvoiceSummaryForPropertyDueDate" (   "reference",   "dueDate",   "total",
>>> "netAmount",   "vatAmount",   "grossAmount" ) AS SELECT
>>> "FixedAsset"."reference" ,    "Invoice"."dueDate",
>>> COUNT(DISTINCT("Invoice"."id")) AS "total",
>>> SUM("InvoiceItem"."netAmount") AS "netAmount",
>>> SUM("InvoiceItem"."vatAmount") AS "vatAmount",
>>> SUM("InvoiceItem"."grossAmount") AS "grossAmount"   FROM "Invoice"   INNER
>>> JOIN "Lease"       ON "Invoice"."sourceLeaseId" = "Lease"."id"   INNER JOIN
>>> "Occupancy"     ON "Lease"."id"              = "Occupancy"."leaseId"
>>> INNER JOIN "Unit"       ON "Unit"."id"               = "Occupancy"."unitId"
>>> INNER JOIN "Property"     ON "Property"."id"           =
>>> "Unit"."propertyId"   INNER JOIN "FixedAsset"     ON "FixedAsset"."id"
>>>   = "Property"."id"   INNER JOIN "InvoiceItem"     ON
>>> "InvoiceItem"."invoiceId" = "Invoice"."id" GROUP BY
>>> "FixedAsset"."reference",  "Invoice"."dueDate"
>>> 
>>> 
>>> 
>>> On 13 January 2014 18:47, GESCONSULTOR - Óscar Bou
>>> <o....@gesconsultor.com>wrote:
>>> 
>>>> 
>>>> Hi, Dharmesh.
>>>> 
>>>> Can you copy on an email the class definition for
>>>> org.atos.tfgm.basket.ShoppingBasketItem?
>>>> 
>>>> Perhaps the JDO annotations for identity are not properly defined.
>>>> 
>>>> See [1] for an example. The relevant ones are:
>>>> 
>>>> 
>>>> @javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
>>>> @javax.jdo.annotations.DatastoreIdentity(
>>>>       strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY,
>>>>        column="id")
>>>> @javax.jdo.annotations.Version(
>>>>       strategy=VersionStrategy.VERSION_NUMBER,
>>>>       column="version")
>>>> 
>>>> 
>>>> 
>>>> 
>>>> Regards,
>>>> 
>>>> Oscar
>>>> 
>>>> 
>>>> [1]
>>>> https://github.com/apache/isis/blob/master/example/archetype/quickstart_wicket_restful_jdo/src/main/resources/archetype-resources/dom/src/main/java/dom/todo/ToDoItem.java
>>>> 
>>>> 
>>>> 
>>>> El 13/01/2014, a las 18:03, Chohan, Dharmesh <dh...@atos.net>
>>>> escribió:
>>>> 
>>>>> Hello
>>>>> 
>>>>> I have sorted out the issue below, however I have encountered another
>>>> problem,
>>>>> 
>>>>> Data already exists
>>>>> 
>>>>> integrity constraint violation: NOT NULL check constraint; SYS_CT_10102
>>>> table: "ShoppingBasketItem" column: "shoppingBasket_id_OID"
>>>>> 
>>>>> This is the log output and am not sure why shoppingBasket_id_OID is NULL
>>>>> 
>>>>>   [exec] 16:58:55,845  [Native               qtp1742392524-31 DEBUG]
>>>> INSERT INTO "ShoppingBasketItem"
>>>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>>>> VALUES (<'123456789001'>,<'Please_Select'>,<'Item
>>>> 1'>,<'▒5'>,<null>,<1>,<null>)
>>>>>   [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]
>>>> Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b"
>>>> using statement "INSERT INTO "ShoppingBasketItem"
>>>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>>>> VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL
>>>> check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column:
>>>> "shoppingBasket_id_OID"
>>>>>   [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]
>>>> Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b"
>>>> using statement "INSERT INTO "ShoppingBasketItem"
>>>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>>>> VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL
>>>> check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column:
>>>> "shoppingBasket_id_OID"
>>>>>   [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]
>>>> Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b"
>>>> using statement "INSERT INTO "ShoppingBasketItem"
>>>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>>>> VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL
>>>> check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column:
>>>> "shoppingBasket_id_OID"
>>>>>   [exec] 16:58:55,945  [IsisTransaction      qtp1742392524-31 INFO ]
>>>> abort transaction IsisTransaction@2fab0086[state=MUST_ABORT,commands=0]
>>>>> 
>>>>> Regards
>>>>> Dharmesh
>>>>> 
>>>>> -----Original Message-----
>>>>> From: Chohan, Dharmesh [mailto:dharmesh.chohan@atos.net]
>>>>> Sent: Monday, January 13, 2014 4:09 PM
>>>>> To: users@isis.apache.org
>>>>> Subject: Domain Mappings 1:m Exception
>>>>> 
>>>>> Hi
>>>>> 
>>>>> I am implementing a domain object mapping of 1 to many.  I have followed
>>>> the documentation on
>>>> http://isis.apache.org/components/objectstores/jdo/managed-1-to-m-relationships.html
>>>>> 
>>>>> This is what I have implemented,
>>>>> 
>>>>> @javax.jdo.annotations.Persistent(mappedBy="shoppingBasket")
>>>>>      private SortedSet<ShoppingBasketItem> shoppingBasketItem = new
>>>> TreeSet<ShoppingBasketItem>();
>>>>> 
>>>>>      @javax.jdo.annotations.Column(allowsNull="false")
>>>>>  @MemberOrder(sequence = "3")
>>>>>      public SortedSet <ShoppingBasketItem> getShoppingBasketItem() {
>>>>>              return shoppingBasketItem;
>>>>>      }
>>>>> 
>>>>>      public void setShoppingBasketItem(SortedSet <ShoppingBasketItem>
>>>> shoppingBasketItem) {
>>>>>              this.shoppingBasketItem = shoppingBasketItem;
>>>>>      }
>>>>> 
>>>>> public class ShoppingBasketItem implements
>>>> Comparable<ShoppingBasketItem> {
>>>>> 
>>>>>      private ShoppingBasket shoppingBasket;
>>>>> 
>>>>>      @javax.jdo.annotations.Column(allowsNull="false")
>>>>>      public ShoppingBasket getShoppingBasket() {
>>>>>              return shoppingBasket;
>>>>>      }
>>>>> 
>>>>>      public void setShoppingBasket(ShoppingBasket shoppingBasket) {
>>>>>              this.shoppingBasket = shoppingBasket;
>>>>>      }
>>>>> 
>>>>> ...
>>>>> 
>>>>> When I run ISIS and test the screen, I am getting the following
>>>> exception,
>>>>> 
>>>>> *       java.lang.IllegalArgumentException
>>>>> *       No such method ' getShoppingBasketItem' or 'isShoppingBasketItem'
>>>>> *
>>>> org.apache.isis.applib.util.Clause#getValueOf(ObjectContracts.java:204)
>>>>> *
>>>> org.apache.isis.applib.util.ObjectContracts#compare(ObjectContracts.java:45)
>>>>> *
>>>> org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:117)
>>>>> *
>>>> org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:15)
>>>>> *       java.util.TreeMap#put(TreeMap.java:545)
>>>>> *       java.util.TreeSet#add(TreeSet.java:238)
>>>>> *
>>>> org.atos.tfgm.basket.ShoppingBaskets#getBasket(ShoppingBaskets.java:150)
>>>>> *
>>>> sun.reflect.NativeMethodAccessorImpl#invoke0(NativeMethodAccessorImpl.java:-2)
>>>>> *
>>>> sun.reflect.NativeMethodAccessorImpl#invoke(NativeMethodAccessorImpl.java:39)
>>>>> *
>>>> sun.reflect.DelegatingMethodAccessorImpl#invoke(DelegatingMethodAccessorImpl.java:25)
>>>>> *       java.lang.reflect.Method#invoke(Method.java:597)
>>>>> 
>>>>> 
>>>>> Have I implemented the relationship incorrectly or missing something.
>>>>> 
>>>>> 
>>>>> Regards
>>>>> Dharmesh
>>>>> 
>>>> 
>>>> 


RE: Domain Mappings 1:m Exception

Posted by "Chohan, Dharmesh" <dh...@atos.net>.
Thanks for your responses but my issue still exists and I am close to the problem but do not understand what the framework is doing.

@Dan, the framework does generate the relationship.

@Oscar, see class definition

@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
@javax.jdo.annotations.DatastoreIdentity(
        strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY, column="id")
@javax.jdo.annotations.Version(
        strategy=VersionStrategy.VERSION_NUMBER, column="version")

public class ShoppingBasketItem implements Comparable<ShoppingBasketItem> {



CREATE TABLE "ShoppingBasketItem"
     [exec] (
     [exec]     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
     [exec]     "amount" NVARCHAR(255) NOT NULL,
     [exec]     "cardNumber" NVARCHAR(255) NOT NULL,
     [exec]     "description" NVARCHAR(255) NULL,
     [exec]     "location" NVARCHAR(255) NOT NULL,
     [exec]     "shoppingBasket_id_OID" BIGINT NOT NULL,
     [exec]     "version" BIGINT NOT NULL,
     [exec]     "shoppingBasketItem_id_OID" BIGINT NULL,
     [exec]     CONSTRAINT "ShoppingBasketItem_PK" PRIMARY KEY ("id")
     [exec] )

CREATE TABLE "ShoppingBasket"
     [exec] (
     [exec]     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
     [exec]     "cardNumber" NVARCHAR(255) NOT NULL,
     [exec]     "orderTotal" INTEGER NOT NULL,
     [exec]     "version" BIGINT NOT NULL,
     [exec]     CONSTRAINT "ShoppingBasket_PK" PRIMARY KEY ("id")
     [exec] )

ALTER TABLE "ShoppingBasketItem" ADD CONSTRAINT "ShoppingBasketItem_FK2" FOREIGN KEY ("shoppingBasketItem_id_OID") REFERENCES "ShoppingBasket" ("id")

 ALTER TABLE "ShoppingBasketItem" ADD CONSTRAINT "ShoppingBasketItem_FK1" FOREIGN KEY ("shoppingBasket_id_OID") REFERENCES "ShoppingBasket" ("id")

INSERT INTO "ShoppingBasket" ("cardNumber","orderTotal","version") VALUES (<'123456789001'>,<15>,<1>)
    
INSERT INTO "ShoppingBasketItem" ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID") 
	VALUES (<'123456789001'>,<'Please_Select'>,<'Item 1'>,<'▒5'>,<null>,<1>,<0>)

The error is Data already exists
integrity constraint violation: NOT NULL check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column: "shoppingBasket_id_OID"

The column shoppingBasket_id_OID is setting NULL in ShoppingBasketItem table which I am not sure where it is coming from?


Thanks
Dharmesh

-----Original Message-----
From: GESCONSULTOR - Óscar Bou [mailto:o.bou@gesconsultor.com] 
Sent: Tuesday, January 14, 2014 8:21 AM
To: users@isis.apache.org
Subject: Re: Domain Mappings 1:m Exception



Seems that the validation behavior is configurable, also for constraints, as per [1].

HTH,

Oscar

[1] http://www.datanucleus.org/products/accessplatform_2_2/rdbms/schema.html




El 14/01/2014, a las 08:23, Jeroen van der Wal <je...@stromboli.it> escribió:

> Just a sidenote: datanucleus only adds non-existing constraints. If
> you've changed your model it might be possible that you have to delete
> constraints manually in order to make things work.
> 
> On Mon, Jan 13, 2014 at 11:54 PM, Dan Haywood
> <da...@haywood-associates.co.uk> wrote:
>> Looking at how Estatio [1] boots up (see log below), it seems that JDO does
>> the CREATE TABLE first, then adds foreign key constraints afterwards using
>> ALTER TABLE.
>> 
>> HTH
>> Dan
>> 
>> [1] https://github.com/estatio/estatio
>> 
>> extract of Estatio's startup log:
>> 
>> 20:48:14,974 [Schema                        ] CREATE TABLE
>> "CommunicationChannel"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "description" NVARCHAR(254) NULL,
>>    "legal" BOOLEAN NOT NULL,
>>    "ownerOrganisationId" BIGINT NULL,
>>    "ownerPersonId" BIGINT NULL,
>>    "ownerPropertyId" BIGINT NULL,
>>    "ownerUnitId" BIGINT NULL,
>>    "reference" NVARCHAR(24) NULL,
>>    "type" NVARCHAR(30) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    "discriminator" NVARCHAR(255) NOT NULL,
>>    "emailAddress" NVARCHAR(50) NULL,
>>    "address1" NVARCHAR(100) NULL,
>>    "address2" NVARCHAR(100) NULL,
>>    "city" NVARCHAR(50) NULL,
>>    "countryId" BIGINT NULL,
>>    "postalCode" NVARCHAR(12) NULL,
>>    "stateId" BIGINT NULL,
>>    "phoneNumber" NVARCHAR(20) NULL,
>>    CONSTRAINT "CommunicationChannel_PK" PRIMARY KEY ("id")
>> )
>> 20:48:14,977 [Schema                        ] Execution Time = 3 ms
>> 20:48:14,982 [Schema                        ] Check of existence of
>> "LeaseTerm" returned no table
>> 20:48:14,982 [Schema                        ] Creating table "LeaseTerm"
>> 20:48:14,982 [Schema                        ] CREATE TABLE "LeaseTerm"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "endDate" DATE NULL,
>>    "frequency" NVARCHAR(30) NOT NULL,
>>    "leaseItemId" BIGINT NOT NULL,
>>    "nextLeaseTermId" BIGINT NULL,
>>    "sequence" NUMERIC NULL,
>>    "startDate" DATE NULL,
>>    "status" NVARCHAR(20) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    "discriminator" NVARCHAR(255) NOT NULL,
>>    "auditedTurnover" DECIMAL(19,2) NULL,
>>    "budgetedTurnover" DECIMAL(19,2) NULL,
>>    "contractualRent" DECIMAL(19,2) NULL,
>>    "turnoverRentRule" NVARCHAR(254) NULL,
>>    "turnoverRentValue" DECIMAL(19,2) NULL,
>>    "baseIndexStartDate" DATE NULL,
>>    "baseIndexValue" DECIMAL(19,1) NULL,
>>    "baseValue" DECIMAL(19,2) NULL,
>>    "effectiveDate" DATE NULL,
>>    "indexId" BIGINT NULL,
>>    "indexationPercentage" DECIMAL(19,1) NULL,
>>    "indexedValue" DECIMAL(19,2) NULL,
>>    "levellingPercentage" DECIMAL(19,1) NULL,
>>    "nextIndexStartDate" DATE NULL,
>>    "nextIndexValue" DECIMAL(19,1) NULL,
>>    "rebaseFactor" DECIMAL(19,3) NULL,
>>    "settledValue" DECIMAL(19,2) NULL,
>>    "auditedValue" DECIMAL(19,2) NULL,
>>    "budgetedValue" DECIMAL(19,2) NULL,
>>    CONSTRAINT "LeaseTerm_PK" PRIMARY KEY ("id")
>> )
>> 20:48:14,984 [Schema                        ] Execution Time = 2 ms
>> 20:48:14,987 [Schema                        ] Check of existence of "Unit"
>> returned no table
>> 20:48:14,987 [Schema                        ] Creating table "Unit"
>> 20:48:14,987 [Schema                        ] CREATE TABLE "Unit"
>> (
>>    "id" BIGINT NOT NULL,
>>    "area" DECIMAL(19,2) NULL,
>>    "dehorsArea" DECIMAL(19,2) NULL,
>>    "endDate" DATE NULL,
>>    "mezzanineArea" DECIMAL(19,2) NULL,
>>    "propertyId" BIGINT NOT NULL,
>>    "salesArea" DECIMAL(19,2) NULL,
>>    "startDate" DATE NULL,
>>    "storageArea" DECIMAL(19,2) NULL,
>>    "type" NVARCHAR(30) NOT NULL,
>>    CONSTRAINT "Unit_PK" PRIMARY KEY ("id")
>> )
>> 20:48:14,988 [Schema                        ] Execution Time = 1 ms
>> 20:48:14,991 [Schema                        ] Check of existence of
>> "BreakOption" returned no table
>> 20:48:14,991 [Schema                        ] Creating table "BreakOption"
>> 20:48:14,992 [Schema                        ] CREATE TABLE "BreakOption"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "breakDate" DATE NOT NULL,
>>    "description" NVARCHAR(254) NULL,
>>    "exerciseDate" DATE NOT NULL,
>>    "exerciseType" NVARCHAR(20) NOT NULL,
>>    "leaseId" BIGINT NOT NULL,
>>    "notificationPeriod" NVARCHAR(20) NULL,
>>    "type" NVARCHAR(30) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    "discriminator" NVARCHAR(255) NOT NULL,
>>    "reminderDate" DATE NULL,
>>    CONSTRAINT "BreakOption_PK" PRIMARY KEY ("id")
>> )
>> 20:48:14,994 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,000 [Schema                        ] Check of existence of
>> "InvoiceItem" returned no table
>> 20:48:15,000 [Schema                        ] Creating table "InvoiceItem"
>> 20:48:15,000 [Schema                        ] CREATE TABLE "InvoiceItem"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "chargeId" BIGINT NULL,
>>    "description" NVARCHAR(254) NULL,
>>    "dueDate" DATE NOT NULL,
>>    "endDate" DATE NULL,
>>    "grossAmount" DECIMAL(19,2) NULL,
>>    "invoiceId" BIGINT NULL,
>>    "netAmount" DECIMAL(19,2) NULL,
>>    "quantity" DECIMAL(19,2) NULL,
>>    "sequence" NUMERIC NOT NULL,
>>    "startDate" DATE NULL,
>>    "taxId" BIGINT NULL,
>>    "vatAmount" DECIMAL(19,2) NULL,
>>    "version" BIGINT NOT NULL,
>>    "discriminator" NVARCHAR(255) NOT NULL,
>>    "leaseTermId" BIGINT NULL,
>>    CONSTRAINT "InvoiceItem_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,002 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,007 [Schema                        ] Check of existence of "Brand"
>> returned no table
>> 20:48:15,008 [Schema                        ] Creating table "Brand"
>> 20:48:15,008 [Schema                        ] CREATE TABLE "Brand"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Brand_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,009 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,013 [Schema                        ] Check of existence of
>> "FixedAssetRole" returned no table
>> 20:48:15,013 [Schema                        ] Creating table
>> "FixedAssetRole"
>> 20:48:15,013 [Schema                        ] CREATE TABLE "FixedAssetRole"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "assetId" BIGINT NOT NULL,
>>    "endDate" DATE NULL,
>>    "partyId" BIGINT NOT NULL,
>>    "startDate" DATE NULL,
>>    "type" NVARCHAR(30) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "FixedAssetRole_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,015 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,019 [Schema                        ] Check of existence of
>> "Numerator" returned no table
>> 20:48:15,019 [Schema                        ] Creating table "Numerator"
>> 20:48:15,019 [Schema                        ] CREATE TABLE "Numerator"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "format" NVARCHAR(30) NOT NULL,
>>    "lastIncrement" NUMERIC NOT NULL,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "objectIdentifier" NVARCHAR(20) NULL,
>>    "objectType" NVARCHAR(254) NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Numerator_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,020 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,022 [Schema                        ] Check of existence of
>> "Agreement" returned no table
>> 20:48:15,022 [Schema                        ] Creating table "Agreement"
>> 20:48:15,022 [Schema                        ] CREATE TABLE "Agreement"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "endDate" DATE NULL,
>>    "name" NVARCHAR(50) NULL,
>>    "nextAgreementId" BIGINT NULL,
>>    "reference" NVARCHAR(24) NOT NULL,
>>    "startDate" DATE NULL,
>>    "typeId" BIGINT NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    "discriminator" NVARCHAR(255) NOT NULL,
>>    CONSTRAINT "Agreement_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,023 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,025 [Schema                        ] Check of existence of
>> "BankMandate" returned no table
>> 20:48:15,025 [Schema                        ] Creating table "BankMandate"
>> 20:48:15,025 [Schema                        ] CREATE TABLE "BankMandate"
>> (
>>    "id" BIGINT NOT NULL,
>>    "bankAccountId" BIGINT NOT NULL,
>>    CONSTRAINT "BankMandate_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,026 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,028 [Schema                        ] Check of existence of "Event"
>> returned no table
>> 20:48:15,028 [Schema                        ] Creating table "Event"
>> 20:48:15,028 [Schema                        ] CREATE TABLE "Event"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "calendarName" NVARCHAR(254) NOT NULL,
>>    "date" DATE NOT NULL,
>>    "notes" NVARCHAR(4000) NULL,
>>    "subjectBreakOptionId" BIGINT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Event_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,029 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,031 [Schema                        ] Check of existence of
>> "ChargeGroup" returned no table
>> 20:48:15,031 [Schema                        ] Creating table "ChargeGroup"
>> 20:48:15,031 [Schema                        ] CREATE TABLE "ChargeGroup"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "reference" NVARCHAR(24) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "ChargeGroup_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,032 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,034 [Schema                        ] Check of existence of
>> "UserSetting" returned no table
>> 20:48:15,034 [Schema                        ] Creating table "UserSetting"
>> 20:48:15,034 [Schema                        ] CREATE TABLE "UserSetting"
>> (
>>    "key" NVARCHAR(128) NOT NULL,
>>    "user" NVARCHAR(50) NOT NULL,
>>    "description" NVARCHAR(254) NULL,
>>    "type" NVARCHAR(20) NOT NULL,
>>    "valueRaw" NVARCHAR(255) NOT NULL,
>>    CONSTRAINT "UserSetting_PK" PRIMARY KEY ("key","user")
>> )
>> 20:48:15,035 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,038 [Schema                        ] Check of existence of
>> "Currency" returned no table
>> 20:48:15,038 [Schema                        ] Creating table "Currency"
>> 20:48:15,038 [Schema                        ] CREATE TABLE "Currency"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "reference" NVARCHAR(24) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Currency_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,039 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,043 [Schema                        ] Check of existence of
>> "TaxRate" returned no table
>> 20:48:15,043 [Schema                        ] Creating table "TaxRate"
>> 20:48:15,043 [Schema                        ] CREATE TABLE "TaxRate"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "endDate" DATE NULL,
>>    "externalReference" NVARCHAR(50) NULL,
>>    "nextTaxRateId" BIGINT NULL,
>>    "percentage" DECIMAL(19,2) NULL,
>>    "startDate" DATE NULL,
>>    "taxId" BIGINT NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "TaxRate_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,043 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,046 [Schema                        ] Check of existence of
>> "PartyRegistration" returned no table
>> 20:48:15,046 [Schema                        ] Creating table
>> "PartyRegistration"
>> 20:48:15,046 [Schema                        ] CREATE TABLE
>> "PartyRegistration"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "endDate" DATE NULL,
>>    "partyId" BIGINT NOT NULL,
>>    "startDate" DATE NULL,
>>    "type" NVARCHAR(30) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "PartyRegistration_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,047 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,050 [Schema                        ] Check of existence of
>> "AgreementRoleType" returned no table
>> 20:48:15,050 [Schema                        ] Creating table
>> "AgreementRoleType"
>> 20:48:15,050 [Schema                        ] CREATE TABLE
>> "AgreementRoleType"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "appliesToAgreementTypeId" BIGINT NOT NULL,
>>    "title" NVARCHAR(50) NOT NULL,
>>    CONSTRAINT "AgreementRoleType_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,051 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,055 [Schema                        ] Check of existence of
>> "AuditEntry" returned no table
>> 20:48:15,055 [Schema                        ] Creating table "AuditEntry"
>> 20:48:15,056 [Schema                        ] CREATE TABLE "AuditEntry"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "identifier" NVARCHAR(20) NOT NULL,
>>    "objectType" NVARCHAR(254) NOT NULL,
>>    "postValue" NVARCHAR(255) NULL,
>>    "preValue" NVARCHAR(255) NULL,
>>    "timestampEpoch" BIGINT NOT NULL,
>>    "user" NVARCHAR(50) NULL,
>>    CONSTRAINT "AuditEntry_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,057 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,060 [Schema                        ] Check of existence of
>> "FinancialAccount" returned no table
>> 20:48:15,060 [Schema                        ] Creating table
>> "FinancialAccount"
>> 20:48:15,060 [Schema                        ] CREATE TABLE
>> "FinancialAccount"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "ownerPartyId" BIGINT NOT NULL,
>>    "reference" NVARCHAR(24) NOT NULL,
>>    "type" NVARCHAR(30) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    "discriminator" NVARCHAR(255) NOT NULL,
>>    CONSTRAINT "FinancialAccount_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,062 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,068 [Schema                        ] Check of existence of
>> "BankAccount" returned no table
>> 20:48:15,068 [Schema                        ] Creating table "BankAccount"
>> 20:48:15,068 [Schema                        ] CREATE TABLE "BankAccount"
>> (
>>    "id" BIGINT NOT NULL,
>>    "accountNumber" NVARCHAR(20) NULL,
>>    "bankPartyId" BIGINT NULL,
>>    "bankAccountType" NVARCHAR(30) NOT NULL,
>>    "branchCode" NVARCHAR(20) NULL,
>>    "countryId" BIGINT NULL,
>>    "iban" NVARCHAR(32) NULL,
>>    "nationalBankCode" NVARCHAR(20) NULL,
>>    "nationalCheckCode" NVARCHAR(20) NULL,
>>    "fixedAssetId" BIGINT NULL,
>>    CONSTRAINT "BankAccount_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,070 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,072 [Schema                        ] Check of existence of
>> "UnitSize" returned no table
>> 20:48:15,072 [Schema                        ] Creating table "UnitSize"
>> 20:48:15,072 [Schema                        ] CREATE TABLE "UnitSize"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "UnitSize_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,073 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,075 [Schema                        ] Check of existence of
>> "ApplicationSetting" returned no table
>> 20:48:15,075 [Schema                        ] Creating table
>> "ApplicationSetting"
>> 20:48:15,075 [Schema                        ] CREATE TABLE
>> "ApplicationSetting"
>> (
>>    "key" NVARCHAR(128) NOT NULL,
>>    "description" NVARCHAR(254) NULL,
>>    "type" NVARCHAR(20) NOT NULL,
>>    "valueRaw" NVARCHAR(255) NOT NULL,
>>    CONSTRAINT "ApplicationSetting_PK" PRIMARY KEY ("key")
>> )
>> 20:48:15,076 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,079 [Schema                        ] Check of existence of
>> "FixedAsset" returned no table
>> 20:48:15,079 [Schema                        ] Creating table "FixedAsset"
>> 20:48:15,079 [Schema                        ] CREATE TABLE "FixedAsset"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "reference" NVARCHAR(24) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    "discriminator" NVARCHAR(255) NOT NULL,
>>    CONSTRAINT "FixedAsset_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,080 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,082 [Schema                        ] Check of existence of
>> "Property" returned no table
>> 20:48:15,082 [Schema                        ] Creating table "Property"
>> 20:48:15,082 [Schema                        ] CREATE TABLE "Property"
>> (
>>    "id" BIGINT NOT NULL,
>>    "acquireDate" DATE NULL,
>>    "area" DECIMAL(19,2) NULL,
>>    "city" NVARCHAR(50) NULL,
>>    "countryId" BIGINT NULL,
>>    "disposalDate" DATE NULL,
>>    "location" BLOB NULL,
>>    "openingDate" DATE NULL,
>>    "type" NVARCHAR(30) NOT NULL,
>>    CONSTRAINT "Property_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,083 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,085 [Schema                        ] Check of existence of
>> "LeaseAssignment" returned no table
>> 20:48:15,085 [Schema                        ] Creating table
>> "LeaseAssignment"
>> 20:48:15,085 [Schema                        ] CREATE TABLE "LeaseAssignment"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "assignmentDate" DATE NOT NULL,
>>    "nextLeaseId" BIGINT NULL,
>>    "previousLeaseId" BIGINT NULL,
>>    "type" NVARCHAR(30) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "LeaseAssignment_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,086 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,087 [Schema                        ] Check of existence of "State"
>> returned no table
>> 20:48:15,087 [Schema                        ] Creating table "State"
>> 20:48:15,087 [Schema                        ] CREATE TABLE "State"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "countryId" BIGINT NOT NULL,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "reference" NVARCHAR(6) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "State_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,088 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,090 [Schema                        ] Check of existence of
>> "LeaseStatusReason" returned no table
>> 20:48:15,090 [Schema                        ] Creating table
>> "LeaseStatusReason"
>> 20:48:15,090 [Schema                        ] CREATE TABLE
>> "LeaseStatusReason"
>> (
>>    "LeaseStatusReason_ID" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "leaseId" BIGINT NOT NULL,
>>    "reason" NVARCHAR(4000) NOT NULL,
>>    "status" NVARCHAR(20) NOT NULL,
>>    "timestamp" BIGINT NOT NULL,
>>    "user" NVARCHAR(50) NOT NULL,
>>    CONSTRAINT "LeaseStatusReason_PK" PRIMARY KEY ("LeaseStatusReason_ID")
>> )
>> 20:48:15,091 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,092 [Schema                        ] Check of existence of
>> "Activity" returned no table
>> 20:48:15,092 [Schema                        ] Creating table "Activity"
>> 20:48:15,093 [Schema                        ] CREATE TABLE "Activity"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "sectorId" BIGINT NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Activity_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,093 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,095 [Schema                        ] Check of existence of "Party"
>> returned no table
>> 20:48:15,095 [Schema                        ] Creating table "Party"
>> 20:48:15,095 [Schema                        ] CREATE TABLE "Party"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "name" NVARCHAR(80) NOT NULL,
>>    "reference" NVARCHAR(24) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    "discriminator" NVARCHAR(255) NOT NULL,
>>    CONSTRAINT "Party_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,096 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,098 [Schema                        ] Check of existence of
>> "Organisation" returned no table
>> 20:48:15,098 [Schema                        ] Creating table "Organisation"
>> 20:48:15,098 [Schema                        ] CREATE TABLE "Organisation"
>> (
>>    "id" BIGINT NOT NULL,
>>    "fiscalCode" NVARCHAR(30) NULL,
>>    "vatCode" NVARCHAR(30) NULL,
>>    CONSTRAINT "Organisation_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,099 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,101 [Schema                        ] Check of existence of
>> "FixedAssetRegistrationType" returned no table
>> 20:48:15,101 [Schema                        ] Creating table
>> "FixedAssetRegistrationType"
>> 20:48:15,101 [Schema                        ] CREATE TABLE
>> "FixedAssetRegistrationType"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "fullyQualifiedClassName" NVARCHAR(254) NOT NULL,
>>    "title" NVARCHAR(50) NOT NULL,
>>    CONSTRAINT "FixedAssetRegistrationType_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,103 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,105 [Schema                        ] Check of existence of
>> "FixedAssetRegistration" returned no table
>> 20:48:15,105 [Schema                        ] Creating table
>> "FixedAssetRegistration"
>> 20:48:15,106 [Schema                        ] CREATE TABLE
>> "FixedAssetRegistration"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "subjectId" BIGINT NOT NULL,
>>    "typeId" BIGINT NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    "discriminator" NVARCHAR(255) NOT NULL,
>>    CONSTRAINT "FixedAssetRegistration_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,107 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,109 [Schema                        ] Check of existence of
>> "LandRegister" returned no table
>> 20:48:15,109 [Schema                        ] Creating table "LandRegister"
>> 20:48:15,110 [Schema                        ] CREATE TABLE "LandRegister"
>> (
>>    "id" BIGINT NOT NULL,
>>    "categoria" NVARCHAR(255) NULL,
>>    "classe" NVARCHAR(255) NULL,
>>    "codiceComuneCatastale" NVARCHAR(255) NULL,
>>    "comuneAmministrativo" NVARCHAR(255) NULL,
>>    "comuneCatastale" NVARCHAR(255) NULL,
>>    "consistenza" NVARCHAR(255) NULL,
>>    "foglio" NVARCHAR(255) NULL,
>>    "particella" NVARCHAR(255) NULL,
>>    "rendita" NVARCHAR(255) NULL,
>>    "subalterno" NVARCHAR(255) NULL,
>>    CONSTRAINT "LandRegister_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,110 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,112 [Schema                        ] Check of existence of "Tag"
>> returned no table
>> 20:48:15,112 [Schema                        ] Creating table "Tag"
>> 20:48:15,112 [Schema                        ] CREATE TABLE "Tag"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "objectType" NVARCHAR(254) NOT NULL,
>>    "taggable_Occupancy_id_EID" BIGINT NULL,
>>    "value" NVARCHAR(255) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Tag_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,114 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,116 [Schema                        ] Check of existence of
>> "Charge" returned no table
>> 20:48:15,116 [Schema                        ] Creating table "Charge"
>> 20:48:15,116 [Schema                        ] CREATE TABLE "Charge"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "description" NVARCHAR(254) NOT NULL,
>>    "externalReference" NVARCHAR(50) NULL,
>>    "groupId" BIGINT NOT NULL,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "reference" NVARCHAR(24) NOT NULL,
>>    "sortOrder" NVARCHAR(24) NULL,
>>    "taxId" BIGINT NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Charge_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,117 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,120 [Schema                        ] Check of existence of
>> "IndexValue" returned no table
>> 20:48:15,120 [Schema                        ] Creating table "IndexValue"
>> 20:48:15,120 [Schema                        ] CREATE TABLE "IndexValue"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "indexBaseId" BIGINT NOT NULL,
>>    "startDate" DATE NOT NULL,
>>    "value" DECIMAL(19,4) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "IndexValue_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,121 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,124 [Schema                        ] Check of existence of "Tax"
>> returned no table
>> 20:48:15,124 [Schema                        ] Creating table "Tax"
>> 20:48:15,124 [Schema                        ] CREATE TABLE "Tax"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "externalReference" NVARCHAR(50) NULL,
>>    "name" NVARCHAR(50) NULL,
>>    "reference" NVARCHAR(24) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Tax_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,125 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,127 [Schema                        ] Check of existence of
>> "Invoice" returned no table
>> 20:48:15,127 [Schema                        ] Creating table "Invoice"
>> 20:48:15,127 [Schema                        ] CREATE TABLE "Invoice"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "buyerPartyId" BIGINT NOT NULL,
>>    "collectionNumber" NVARCHAR(16) NULL,
>>    "currencyId" BIGINT NULL,
>>    "dueDate" DATE NOT NULL,
>>    "invoiceDate" DATE NULL,
>>    "invoiceNumber" NVARCHAR(16) NULL,
>>    "lastItemSequence" NUMERIC NULL,
>>    "sourceLeaseId" BIGINT NULL,
>>    "paymentMethod" NVARCHAR(30) NOT NULL,
>>    "sellerPartyId" BIGINT NOT NULL,
>>    "status" NVARCHAR(20) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Invoice_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,129 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,130 [Schema                        ] Check of existence of
>> "Person" returned no table
>> 20:48:15,130 [Schema                        ] Creating table "Person"
>> 20:48:15,131 [Schema                        ] CREATE TABLE "Person"
>> (
>>    "id" BIGINT NOT NULL,
>>    "firstName" NVARCHAR(50) NULL,
>>    "gender" NVARCHAR(30) NOT NULL,
>>    "initials" NVARCHAR(3) NULL,
>>    "lastName" NVARCHAR(50) NOT NULL,
>>    CONSTRAINT "Person_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,131 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,133 [Schema                        ] Check of existence of
>> "Country" returned no table
>> 20:48:15,133 [Schema                        ] Creating table "Country"
>> 20:48:15,134 [Schema                        ] CREATE TABLE "Country"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "alpha2Code" NVARCHAR(2) NOT NULL,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "reference" NVARCHAR(24) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Country_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,135 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,137 [Schema                        ] Check of existence of "Lease"
>> returned no table
>> 20:48:15,137 [Schema                        ] Creating table "Lease"
>> 20:48:15,137 [Schema                        ] CREATE TABLE "Lease"
>> (
>>    "id" BIGINT NOT NULL,
>>    "leaseTypeId" BIGINT NULL,
>>    "paidByBankMandateId" BIGINT NULL,
>>    "status" NVARCHAR(20) NOT NULL,
>>    "tenancyEndDate" DATE NULL,
>>    "tenancyStartDate" DATE NULL,
>>    CONSTRAINT "Lease_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,138 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,140 [Schema                        ] Check of existence of
>> "LeaseItem" returned no table
>> 20:48:15,140 [Schema                        ] Creating table "LeaseItem"
>> 20:48:15,140 [Schema                        ] CREATE TABLE "LeaseItem"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "chargeId" BIGINT NOT NULL,
>>    "endDate" DATE NULL,
>>    "epochDate" DATE NULL,
>>    "invoicingFrequency" NVARCHAR(30) NOT NULL,
>>    "leaseId" BIGINT NOT NULL,
>>    "nextDueDate" DATE NULL,
>>    "paymentMethod" NVARCHAR(30) NOT NULL,
>>    "sequence" NUMERIC NOT NULL,
>>    "startDate" DATE NULL,
>>    "status" NVARCHAR(20) NOT NULL,
>>    "type" NVARCHAR(30) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "LeaseItem_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,142 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,144 [Schema                        ] Check of existence of
>> "AgreementRoleCommunicationChannelType" returned no table
>> 20:48:15,144 [Schema                        ] Creating table
>> "AgreementRoleCommunicationChannelType"
>> 20:48:15,144 [Schema                        ] CREATE TABLE
>> "AgreementRoleCommunicationChannelType"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "appliesToAgreementTypeId" BIGINT NOT NULL,
>>    "title" NVARCHAR(50) NOT NULL,
>>    CONSTRAINT "AgreementRoleCommunicationChannelType_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,145 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,148 [Schema                        ] Check of existence of
>> "LeaseType" returned no table
>> 20:48:15,148 [Schema                        ] Creating table "LeaseType"
>> 20:48:15,148 [Schema                        ] CREATE TABLE "LeaseType"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "reference" NVARCHAR(24) NOT NULL,
>>    CONSTRAINT "LeaseType_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,149 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,151 [Schema                        ] Check of existence of
>> "AgreementRoleCommunicationChannel" returned no table
>> 20:48:15,151 [Schema                        ] Creating table
>> "AgreementRoleCommunicationChannel"
>> 20:48:15,151 [Schema                        ] CREATE TABLE
>> "AgreementRoleCommunicationChannel"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "communicationChannelId" BIGINT NOT NULL,
>>    "endDate" DATE NULL,
>>    "agreementRoleId" BIGINT NOT NULL,
>>    "startDate" DATE NULL,
>>    "typeId" BIGINT NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "AgreementRoleCommunicationChannel_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,153 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,155 [Schema                        ] Check of existence of
>> "AgreementType" returned no table
>> 20:48:15,155 [Schema                        ] Creating table "AgreementType"
>> 20:48:15,155 [Schema                        ] CREATE TABLE "AgreementType"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "title" NVARCHAR(50) NOT NULL,
>>    CONSTRAINT "AgreementType_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,156 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,158 [Schema                        ] Check of existence of
>> "Occupancy" returned no table
>> 20:48:15,158 [Schema                        ] Creating table "Occupancy"
>> 20:48:15,158 [Schema                        ] CREATE TABLE "Occupancy"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "activityId" BIGINT NULL,
>>    "brandId" BIGINT NULL,
>>    "endDate" DATE NULL,
>>    "leaseId" BIGINT NOT NULL,
>>    "reportOCR" NVARCHAR(30) NOT NULL,
>>    "reportRent" NVARCHAR(30) NOT NULL,
>>    "reportTurnover" NVARCHAR(30) NOT NULL,
>>    "sectorId" BIGINT NULL,
>>    "startDate" DATE NULL,
>>    "unitId" BIGINT NOT NULL,
>>    "unitSizeId" BIGINT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Occupancy_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,160 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,161 [Schema                        ] Check of existence of
>> "IndexBase" returned no table
>> 20:48:15,161 [Schema                        ] Creating table "IndexBase"
>> 20:48:15,161 [Schema                        ] CREATE TABLE "IndexBase"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "factor" DECIMAL(19,4) NULL,
>>    "indexId" BIGINT NOT NULL,
>>    "nextIndexBaseId" BIGINT NULL,
>>    "startDate" DATE NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "IndexBase_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,162 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,164 [Schema                        ] Check of existence of "Index"
>> returned no table
>> 20:48:15,164 [Schema                        ] Creating table "Index"
>> 20:48:15,164 [Schema                        ] CREATE TABLE "Index"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "reference" NVARCHAR(24) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Index_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,165 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,167 [Schema                        ] Check of existence of
>> "AgreementRole" returned no table
>> 20:48:15,167 [Schema                        ] Creating table "AgreementRole"
>> 20:48:15,167 [Schema                        ] CREATE TABLE "AgreementRole"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "agreementId" BIGINT NOT NULL,
>>    "endDate" DATE NULL,
>>    "partyId" BIGINT NOT NULL,
>>    "startDate" DATE NULL,
>>    "typeId" BIGINT NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "AgreementRole_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,168 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,170 [Schema                        ] Check of existence of
>> "Sector" returned no table
>> 20:48:15,170 [Schema                        ] Creating table "Sector"
>> 20:48:15,170 [Schema                        ] CREATE TABLE "Sector"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Sector_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,171 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,176 [Schema                        ] Creating foreign key
>> constraint : "CommunicationChannel_FK2" in catalog "" schema ""
>> 20:48:15,176 [Schema                        ] ALTER TABLE
>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK2" FOREIGN
>> KEY ("stateId") REFERENCES "State" ("id")
>> 20:48:15,178 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,178 [Schema                        ] Creating foreign key
>> constraint : "CommunicationChannel_FK1" in catalog "" schema ""
>> 20:48:15,178 [Schema                        ] ALTER TABLE
>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK1" FOREIGN
>> KEY ("countryId") REFERENCES "Country" ("id")
>> 20:48:15,180 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,180 [Schema                        ] Creating foreign key
>> constraint : "CommunicationChannel_FK4" in catalog "" schema ""
>> 20:48:15,180 [Schema                        ] ALTER TABLE
>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK4" FOREIGN
>> KEY ("ownerPersonId") REFERENCES "Person" ("id")
>> 20:48:15,181 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,181 [Schema                        ] Creating foreign key
>> constraint : "CommunicationChannel_FK3" in catalog "" schema ""
>> 20:48:15,181 [Schema                        ] ALTER TABLE
>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK3" FOREIGN
>> KEY ("ownerOrganisationId") REFERENCES "Organisation" ("id")
>> 20:48:15,182 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,182 [Schema                        ] Creating foreign key
>> constraint : "CommunicationChannel_FK6" in catalog "" schema ""
>> 20:48:15,182 [Schema                        ] ALTER TABLE
>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK6" FOREIGN
>> KEY ("ownerUnitId") REFERENCES "Unit" ("id")
>> 20:48:15,183 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,183 [Schema                        ] Creating foreign key
>> constraint : "CommunicationChannel_FK5" in catalog "" schema ""
>> 20:48:15,183 [Schema                        ] ALTER TABLE
>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK5" FOREIGN
>> KEY ("ownerPropertyId") REFERENCES "Property" ("id")
>> 20:48:15,184 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,186 [Schema                        ] Creating index
>> "CommunicationChannel_N53" in catalog "" schema ""
>> 20:48:15,186 [Schema                        ] CREATE INDEX
>> "CommunicationChannel_N53" ON "CommunicationChannel" ("countryId")
>> 20:48:15,187 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,187 [Schema                        ] Creating index
>> "CommunicationChannel_N54" in catalog "" schema ""
>> 20:48:15,187 [Schema                        ] CREATE INDEX
>> "CommunicationChannel_N54" ON "CommunicationChannel" ("ownerUnitId")
>> 20:48:15,187 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,187 [Schema                        ] Creating index
>> "CommunicationChannel_N51" in catalog "" schema ""
>> 20:48:15,187 [Schema                        ] CREATE INDEX
>> "CommunicationChannel_N51" ON "CommunicationChannel" ("ownerPropertyId")
>> 20:48:15,187 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,187 [Schema                        ] Creating index
>> "CommunicationChannel_N52" in catalog "" schema ""
>> 20:48:15,187 [Schema                        ] CREATE INDEX
>> "CommunicationChannel_N52" ON "CommunicationChannel" ("stateId")
>> 20:48:15,188 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,188 [Schema                        ] Creating index
>> "PhoneNumber_phoneNumber_IDX" in catalog "" schema ""
>> 20:48:15,188 [Schema                        ] CREATE INDEX
>> "PhoneNumber_phoneNumber_IDX" ON "CommunicationChannel" ("phoneNumber")
>> 20:48:15,188 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,188 [Schema                        ] Creating index
>> "PostalAddress_main_idx" in catalog "" schema ""
>> 20:48:15,188 [Schema                        ] CREATE INDEX
>> "PostalAddress_main_idx" ON "CommunicationChannel"
>> ("ownerOrganisationId","ownerPersonId","ownerPropertyId","ownerUnitId","address1","postalCode","city","countryId")
>> 20:48:15,188 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,188 [Schema                        ] Creating index
>> "CommunicationChannel_N49" in catalog "" schema ""
>> 20:48:15,188 [Schema                        ] CREATE INDEX
>> "CommunicationChannel_N49" ON "CommunicationChannel" ("ownerOrganisationId")
>> 20:48:15,189 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,189 [Schema                        ] Creating index
>> "CommunicationChannel_N50" in catalog "" schema ""
>> 20:48:15,189 [Schema                        ] CREATE INDEX
>> "CommunicationChannel_N50" ON "CommunicationChannel" ("ownerPersonId")
>> 20:48:15,189 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,189 [Schema                        ] Creating index
>> "EmailAddress_emailAddress_IDX" in catalog "" schema ""
>> 20:48:15,189 [Schema                        ] CREATE INDEX
>> "EmailAddress_emailAddress_IDX" ON "CommunicationChannel" ("emailAddress")
>> 20:48:15,190 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,190 [Schema                        ] Creating foreign key
>> constraint : "LeaseTerm_FK2" in catalog "" schema ""
>> 20:48:15,190 [Schema                        ] ALTER TABLE "LeaseTerm" ADD
>> CONSTRAINT "LeaseTerm_FK2" FOREIGN KEY ("indexId") REFERENCES "Index"
>> ("id")
>> 20:48:15,192 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,192 [Schema                        ] Creating foreign key
>> constraint : "LeaseTerm_FK3" in catalog "" schema ""
>> 20:48:15,192 [Schema                        ] ALTER TABLE "LeaseTerm" ADD
>> CONSTRAINT "LeaseTerm_FK3" FOREIGN KEY ("nextLeaseTermId") REFERENCES
>> "LeaseTerm" ("id")
>> 20:48:15,194 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,194 [Schema                        ] Creating foreign key
>> constraint : "LeaseTerm_FK1" in catalog "" schema ""
>> 20:48:15,194 [Schema                        ] ALTER TABLE "LeaseTerm" ADD
>> CONSTRAINT "LeaseTerm_FK1" FOREIGN KEY ("leaseItemId") REFERENCES
>> "LeaseItem" ("id")
>> 20:48:15,195 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,196 [Schema                        ] Creating index
>> "LeaseTerm_N50" in catalog "" schema ""
>> 20:48:15,196 [Schema                        ] CREATE INDEX "LeaseTerm_N50"
>> ON "LeaseTerm" ("indexId")
>> 20:48:15,196 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,196 [Schema                        ] Creating index
>> "LeaseTerm_leaseItem_startDate_IDX" in catalog "" schema ""
>> 20:48:15,196 [Schema                        ] CREATE INDEX
>> "LeaseTerm_leaseItem_startDate_IDX" ON "LeaseTerm"
>> ("leaseItemId","startDate")
>> 20:48:15,196 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,196 [Schema                        ] Creating index
>> "LeaseTerm_N51" in catalog "" schema ""
>> 20:48:15,196 [Schema                        ] CREATE INDEX "LeaseTerm_N51"
>> ON "LeaseTerm" ("leaseItemId")
>> 20:48:15,197 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,197 [Schema                        ] Creating index
>> "LeaseTerm_N49" in catalog "" schema ""
>> 20:48:15,197 [Schema                        ] CREATE INDEX "LeaseTerm_N49"
>> ON "LeaseTerm" ("nextLeaseTermId")
>> 20:48:15,197 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,197 [Schema                        ] Creating index
>> "LeaseTerm_leaseItem_sequence_IDX" in catalog "" schema ""
>> 20:48:15,197 [Schema                        ] CREATE INDEX
>> "LeaseTerm_leaseItem_sequence_IDX" ON "LeaseTerm" ("leaseItemId","sequence")
>> 20:48:15,197 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,198 [Schema                        ] Creating foreign key
>> constraint : "Unit_FK1" in catalog "" schema ""
>> 20:48:15,198 [Schema                        ] ALTER TABLE "Unit" ADD
>> CONSTRAINT "Unit_FK1" FOREIGN KEY ("id") REFERENCES "FixedAsset" ("id")
>> 20:48:15,199 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,199 [Schema                        ] Creating foreign key
>> constraint : "Unit_FK2" in catalog "" schema ""
>> 20:48:15,199 [Schema                        ] ALTER TABLE "Unit" ADD
>> CONSTRAINT "Unit_FK2" FOREIGN KEY ("propertyId") REFERENCES "Property"
>> ("id")
>> 20:48:15,200 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,200 [Schema                        ] Creating index "Unit_N49" in
>> catalog "" schema ""
>> 20:48:15,200 [Schema                        ] CREATE INDEX "Unit_N49" ON
>> "Unit" ("propertyId")
>> 20:48:15,200 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,200 [Schema                        ] Unique metadata defined to
>> use field notificationDate which doesn't exist in this class
>> 20:48:15,200 [Schema                        ] Creating foreign key
>> constraint : "BreakOption_FK1" in catalog "" schema ""
>> 20:48:15,200 [Schema                        ] ALTER TABLE "BreakOption" ADD
>> CONSTRAINT "BreakOption_FK1" FOREIGN KEY ("leaseId") REFERENCES "Lease"
>> ("id")
>> 20:48:15,202 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,202 [Schema                        ] Creating index
>> "BreakOption_N49" in catalog "" schema ""
>> 20:48:15,202 [Schema                        ] CREATE INDEX
>> "BreakOption_N49" ON "BreakOption" ("leaseId")
>> 20:48:15,203 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,203 [Schema                        ] Creating foreign key
>> constraint : "InvoiceItem_FK4" in catalog "" schema ""
>> 20:48:15,203 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
>> CONSTRAINT "InvoiceItem_FK4" FOREIGN KEY ("invoiceId") REFERENCES "Invoice"
>> ("id")
>> 20:48:15,204 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,204 [Schema                        ] Creating foreign key
>> constraint : "InvoiceItem_FK3" in catalog "" schema ""
>> 20:48:15,204 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
>> CONSTRAINT "InvoiceItem_FK3" FOREIGN KEY ("leaseTermId") REFERENCES
>> "LeaseTerm" ("id")
>> 20:48:15,205 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,205 [Schema                        ] Creating foreign key
>> constraint : "InvoiceItem_FK2" in catalog "" schema ""
>> 20:48:15,205 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
>> CONSTRAINT "InvoiceItem_FK2" FOREIGN KEY ("chargeId") REFERENCES "Charge"
>> ("id")
>> 20:48:15,206 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,206 [Schema                        ] Creating foreign key
>> constraint : "InvoiceItem_FK1" in catalog "" schema ""
>> 20:48:15,206 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
>> CONSTRAINT "InvoiceItem_FK1" FOREIGN KEY ("taxId") REFERENCES "Tax" ("id")
>> 20:48:15,207 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,208 [Schema                        ] Creating index
>> "InvoiceItem_N51" in catalog "" schema ""
>> 20:48:15,208 [Schema                        ] CREATE INDEX
>> "InvoiceItem_N51" ON "InvoiceItem" ("taxId")
>> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,208 [Schema                        ] Creating index
>> "InvoiceItem_N50" in catalog "" schema ""
>> 20:48:15,208 [Schema                        ] CREATE INDEX
>> "InvoiceItem_N50" ON "InvoiceItem" ("invoiceId")
>> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,208 [Schema                        ] Creating index
>> "InvoiceItem_N52" in catalog "" schema ""
>> 20:48:15,208 [Schema                        ] CREATE INDEX
>> "InvoiceItem_N52" ON "InvoiceItem" ("leaseTermId")
>> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,208 [Schema                        ] Creating index
>> "InvoiceItemForLease_LeaseTerm_StartDate_EndDate_DueDate_IDX" in catalog ""
>> schema ""
>> 20:48:15,208 [Schema                        ] CREATE INDEX
>> "InvoiceItemForLease_LeaseTerm_StartDate_EndDate_DueDate_IDX" ON
>> "InvoiceItem" ("leaseTermId","startDate","endDate","dueDate")
>> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,208 [Schema                        ] Creating index
>> "InvoiceItem_N49" in catalog "" schema ""
>> 20:48:15,208 [Schema                        ] CREATE INDEX
>> "InvoiceItem_N49" ON "InvoiceItem" ("chargeId")
>> 20:48:15,209 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,209 [Schema                        ] Creating candidate key
>> "Brand_name_UNQ" in catalog "" schema ""
>> 20:48:15,209 [Schema                        ] ALTER TABLE "Brand" ADD
>> CONSTRAINT "Brand_name_UNQ" UNIQUE ("name")
>> 20:48:15,209 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,209 [Schema                        ] Creating foreign key
>> constraint : "FixedAssetRole_FK1" in catalog "" schema ""
>> 20:48:15,209 [Schema                        ] ALTER TABLE "FixedAssetRole"
>> ADD CONSTRAINT "FixedAssetRole_FK1" FOREIGN KEY ("assetId") REFERENCES
>> "FixedAsset" ("id")
>> 20:48:15,210 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,210 [Schema                        ] Creating foreign key
>> constraint : "FixedAssetRole_FK2" in catalog "" schema ""
>> 20:48:15,210 [Schema                        ] ALTER TABLE "FixedAssetRole"
>> ADD CONSTRAINT "FixedAssetRole_FK2" FOREIGN KEY ("partyId") REFERENCES
>> "Party" ("id")
>> 20:48:15,211 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,211 [Schema                        ] Creating index
>> "FixedAssetRole_N50" in catalog "" schema ""
>> 20:48:15,211 [Schema                        ] CREATE INDEX
>> "FixedAssetRole_N50" ON "FixedAssetRole" ("assetId")
>> 20:48:15,211 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,212 [Schema                        ] Creating index
>> "FixedAssetRole_N49" in catalog "" schema ""
>> 20:48:15,212 [Schema                        ] CREATE INDEX
>> "FixedAssetRole_N49" ON "FixedAssetRole" ("partyId")
>> 20:48:15,212 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,212 [Schema                        ] Creating candidate key
>> "Agreement_reference_UNQ" in catalog "" schema ""
>> 20:48:15,212 [Schema                        ] ALTER TABLE "Agreement" ADD
>> CONSTRAINT "Agreement_reference_UNQ" UNIQUE ("reference")
>> 20:48:15,213 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,213 [Schema                        ] Creating foreign key
>> constraint : "Agreement_FK1" in catalog "" schema ""
>> 20:48:15,213 [Schema                        ] ALTER TABLE "Agreement" ADD
>> CONSTRAINT "Agreement_FK1" FOREIGN KEY ("typeId") REFERENCES
>> "AgreementType" ("id")
>> 20:48:15,214 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,214 [Schema                        ] Creating foreign key
>> constraint : "Agreement_FK2" in catalog "" schema ""
>> 20:48:15,214 [Schema                        ] ALTER TABLE "Agreement" ADD
>> CONSTRAINT "Agreement_FK2" FOREIGN KEY ("nextAgreementId") REFERENCES
>> "Agreement" ("id")
>> 20:48:15,214 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,215 [Schema                        ] Creating index
>> "Lease_reference_name_IDX" in catalog "" schema ""
>> 20:48:15,215 [Schema                        ] CREATE INDEX
>> "Lease_reference_name_IDX" ON "Agreement" ("reference","name")
>> 20:48:15,215 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,215 [Schema                        ] Creating index
>> "Agreement_N50" in catalog "" schema ""
>> 20:48:15,215 [Schema                        ] CREATE INDEX "Agreement_N50"
>> ON "Agreement" ("typeId")
>> 20:48:15,215 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,215 [Schema                        ] Creating index
>> "Agreement_N49" in catalog "" schema ""
>> 20:48:15,215 [Schema                        ] CREATE INDEX "Agreement_N49"
>> ON "Agreement" ("nextAgreementId")
>> 20:48:15,215 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,215 [Schema                        ] Creating foreign key
>> constraint : "BankMandate_FK1" in catalog "" schema ""
>> 20:48:15,215 [Schema                        ] ALTER TABLE "BankMandate" ADD
>> CONSTRAINT "BankMandate_FK1" FOREIGN KEY ("id") REFERENCES "Agreement"
>> ("id")
>> 20:48:15,216 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,216 [Schema                        ] Creating foreign key
>> constraint : "BankMandate_FK2" in catalog "" schema ""
>> 20:48:15,216 [Schema                        ] ALTER TABLE "BankMandate" ADD
>> CONSTRAINT "BankMandate_FK2" FOREIGN KEY ("bankAccountId") REFERENCES
>> "FinancialAccount" ("id")
>> 20:48:15,216 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,217 [Schema                        ] Creating index
>> "BankMandate_N49" in catalog "" schema ""
>> 20:48:15,217 [Schema                        ] CREATE INDEX
>> "BankMandate_N49" ON "BankMandate" ("bankAccountId")
>> 20:48:15,217 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,217 [Schema                        ] Creating foreign key
>> constraint : "Event_FK1" in catalog "" schema ""
>> 20:48:15,217 [Schema                        ] ALTER TABLE "Event" ADD
>> CONSTRAINT "Event_FK1" FOREIGN KEY ("subjectBreakOptionId") REFERENCES
>> "BreakOption" ("id")
>> 20:48:15,218 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,218 [Schema                        ] Creating index "Event_N49" in
>> catalog "" schema ""
>> 20:48:15,218 [Schema                        ] CREATE INDEX "Event_N49" ON
>> "Event" ("subjectBreakOptionId")
>> 20:48:15,218 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,218 [Schema                        ] Creating candidate key
>> "ChargeGroup_reference_UNQ" in catalog "" schema ""
>> 20:48:15,218 [Schema                        ] ALTER TABLE "ChargeGroup" ADD
>> CONSTRAINT "ChargeGroup_reference_UNQ" UNIQUE ("reference")
>> 20:48:15,219 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,219 [Schema                        ] Creating candidate key
>> "Currency_reference_UNQ" in catalog "" schema ""
>> 20:48:15,219 [Schema                        ] ALTER TABLE "Currency" ADD
>> CONSTRAINT "Currency_reference_UNQ" UNIQUE ("reference")
>> 20:48:15,219 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,220 [Schema                        ] Creating candidate key
>> "Currency_name_UNQ" in catalog "" schema ""
>> 20:48:15,220 [Schema                        ] ALTER TABLE "Currency" ADD
>> CONSTRAINT "Currency_name_UNQ" UNIQUE ("name")
>> 20:48:15,221 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,221 [Schema                        ] Creating foreign key
>> constraint : "TaxRate_FK1" in catalog "" schema ""
>> 20:48:15,221 [Schema                        ] ALTER TABLE "TaxRate" ADD
>> CONSTRAINT "TaxRate_FK1" FOREIGN KEY ("taxId") REFERENCES "Tax" ("id")
>> 20:48:15,222 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,222 [Schema                        ] Creating foreign key
>> constraint : "TaxRate_FK2" in catalog "" schema ""
>> 20:48:15,222 [Schema                        ] ALTER TABLE "TaxRate" ADD
>> CONSTRAINT "TaxRate_FK2" FOREIGN KEY ("nextTaxRateId") REFERENCES "TaxRate"
>> ("id")
>> 20:48:15,223 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,223 [Schema                        ] Creating index "TaxRate_N49"
>> in catalog "" schema ""
>> 20:48:15,223 [Schema                        ] CREATE INDEX "TaxRate_N49" ON
>> "TaxRate" ("nextTaxRateId")
>> 20:48:15,223 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,223 [Schema                        ] Creating index "TaxRate_N50"
>> in catalog "" schema ""
>> 20:48:15,223 [Schema                        ] CREATE INDEX "TaxRate_N50" ON
>> "TaxRate" ("taxId")
>> 20:48:15,223 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,223 [Schema                        ] Creating foreign key
>> constraint : "PartyRegistration_FK1" in catalog "" schema ""
>> 20:48:15,224 [Schema                        ] ALTER TABLE
>> "PartyRegistration" ADD CONSTRAINT "PartyRegistration_FK1" FOREIGN KEY
>> ("partyId") REFERENCES "Party" ("id")
>> 20:48:15,225 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,225 [Schema                        ] Creating index
>> "PartyRegistration_N49" in catalog "" schema ""
>> 20:48:15,225 [Schema                        ] CREATE INDEX
>> "PartyRegistration_N49" ON "PartyRegistration" ("partyId")
>> 20:48:15,225 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,225 [Schema                        ] Creating foreign key
>> constraint : "AgreementRoleType_FK1" in catalog "" schema ""
>> 20:48:15,225 [Schema                        ] ALTER TABLE
>> "AgreementRoleType" ADD CONSTRAINT "AgreementRoleType_FK1" FOREIGN KEY
>> ("appliesToAgreementTypeId") REFERENCES "AgreementType" ("id")
>> 20:48:15,226 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,226 [Schema                        ] Creating index
>> "AgreementRoleType_N49" in catalog "" schema ""
>> 20:48:15,226 [Schema                        ] CREATE INDEX
>> "AgreementRoleType_N49" ON "AgreementRoleType" ("appliesToAgreementTypeId")
>> 20:48:15,227 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,227 [Schema                        ] Creating candidate key
>> "FinancialAccount_reference_UNQ" in catalog "" schema ""
>> 20:48:15,227 [Schema                        ] ALTER TABLE
>> "FinancialAccount" ADD CONSTRAINT "FinancialAccount_reference_UNQ" UNIQUE
>> ("reference")
>> 20:48:15,228 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,229 [Schema                        ] Creating foreign key
>> constraint : "FinancialAccount_FK1" in catalog "" schema ""
>> 20:48:15,229 [Schema                        ] ALTER TABLE
>> "FinancialAccount" ADD CONSTRAINT "FinancialAccount_FK1" FOREIGN KEY
>> ("ownerPartyId") REFERENCES "Party" ("id")
>> 20:48:15,231 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,231 [Schema                        ] Creating index
>> "FinancialAccount_N49" in catalog "" schema ""
>> 20:48:15,231 [Schema                        ] CREATE INDEX
>> "FinancialAccount_N49" ON "FinancialAccount" ("ownerPartyId")
>> 20:48:15,231 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,232 [Schema                        ] Creating foreign key
>> constraint : "BankAccount_FK1" in catalog "" schema ""
>> 20:48:15,232 [Schema                        ] ALTER TABLE "BankAccount" ADD
>> CONSTRAINT "BankAccount_FK1" FOREIGN KEY ("id") REFERENCES
>> "FinancialAccount" ("id")
>> 20:48:15,232 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,232 [Schema                        ] Creating foreign key
>> constraint : "BankAccount_FK2" in catalog "" schema ""
>> 20:48:15,232 [Schema                        ] ALTER TABLE "BankAccount" ADD
>> CONSTRAINT "BankAccount_FK2" FOREIGN KEY ("countryId") REFERENCES "Country"
>> ("id")
>> 20:48:15,233 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,233 [Schema                        ] Creating foreign key
>> constraint : "BankAccount_FK3" in catalog "" schema ""
>> 20:48:15,233 [Schema                        ] ALTER TABLE "BankAccount" ADD
>> CONSTRAINT "BankAccount_FK3" FOREIGN KEY ("fixedAssetId") REFERENCES
>> "Property" ("id")
>> 20:48:15,234 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,234 [Schema                        ] Creating foreign key
>> constraint : "BankAccount_FK4" in catalog "" schema ""
>> 20:48:15,234 [Schema                        ] ALTER TABLE "BankAccount" ADD
>> CONSTRAINT "BankAccount_FK4" FOREIGN KEY ("bankPartyId") REFERENCES "Party"
>> ("id")
>> 20:48:15,234 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,235 [Schema                        ] Creating index
>> "BankAccount_N51" in catalog "" schema ""
>> 20:48:15,235 [Schema                        ] CREATE INDEX
>> "BankAccount_N51" ON "BankAccount" ("fixedAssetId")
>> 20:48:15,235 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,235 [Schema                        ] Creating index
>> "BankAccount_N50" in catalog "" schema ""
>> 20:48:15,235 [Schema                        ] CREATE INDEX
>> "BankAccount_N50" ON "BankAccount" ("bankPartyId")
>> 20:48:15,235 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,235 [Schema                        ] Creating index
>> "BankAccount_N49" in catalog "" schema ""
>> 20:48:15,235 [Schema                        ] CREATE INDEX
>> "BankAccount_N49" ON "BankAccount" ("countryId")
>> 20:48:15,235 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,235 [Schema                        ] Creating candidate key
>> "UnitSize_name_UNQ" in catalog "" schema ""
>> 20:48:15,235 [Schema                        ] ALTER TABLE "UnitSize" ADD
>> CONSTRAINT "UnitSize_name_UNQ" UNIQUE ("name")
>> 20:48:15,236 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,236 [Schema                        ] Creating candidate key
>> "FixedAsset_reference_UNQ" in catalog "" schema ""
>> 20:48:15,236 [Schema                        ] ALTER TABLE "FixedAsset" ADD
>> CONSTRAINT "FixedAsset_reference_UNQ" UNIQUE ("reference")
>> 20:48:15,237 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,237 [Schema                        ] Creating index
>> "FixedAsset_reference_name_IDX" in catalog "" schema ""
>> 20:48:15,237 [Schema                        ] CREATE INDEX
>> "FixedAsset_reference_name_IDX" ON "FixedAsset" ("reference","name")
>> 20:48:15,237 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,237 [Schema                        ] Creating foreign key
>> constraint : "Property_FK2" in catalog "" schema ""
>> 20:48:15,237 [Schema                        ] ALTER TABLE "Property" ADD
>> CONSTRAINT "Property_FK2" FOREIGN KEY ("countryId") REFERENCES "Country"
>> ("id")
>> 20:48:15,238 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,238 [Schema                        ] Creating foreign key
>> constraint : "Property_FK1" in catalog "" schema ""
>> 20:48:15,238 [Schema                        ] ALTER TABLE "Property" ADD
>> CONSTRAINT "Property_FK1" FOREIGN KEY ("id") REFERENCES "FixedAsset" ("id")
>> 20:48:15,238 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,238 [Schema                        ] Creating index "Property_N49"
>> in catalog "" schema ""
>> 20:48:15,238 [Schema                        ] CREATE INDEX "Property_N49"
>> ON "Property" ("countryId")
>> 20:48:15,239 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,239 [Schema                        ] Creating foreign key
>> constraint : "LeaseAssignment_FK2" in catalog "" schema ""
>> 20:48:15,239 [Schema                        ] ALTER TABLE "LeaseAssignment"
>> ADD CONSTRAINT "LeaseAssignment_FK2" FOREIGN KEY ("previousLeaseId")
>> REFERENCES "Lease" ("id")
>> 20:48:15,239 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,239 [Schema                        ] Creating foreign key
>> constraint : "LeaseAssignment_FK1" in catalog "" schema ""
>> 20:48:15,239 [Schema                        ] ALTER TABLE "LeaseAssignment"
>> ADD CONSTRAINT "LeaseAssignment_FK1" FOREIGN KEY ("nextLeaseId") REFERENCES
>> "Lease" ("id")
>> 20:48:15,240 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,240 [Schema                        ] Creating index
>> "LeaseAssignment_N49" in catalog "" schema ""
>> 20:48:15,240 [Schema                        ] CREATE INDEX
>> "LeaseAssignment_N49" ON "LeaseAssignment" ("previousLeaseId")
>> 20:48:15,241 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,241 [Schema                        ] Creating index
>> "LeaseAssignment_N50" in catalog "" schema ""
>> 20:48:15,241 [Schema                        ] CREATE INDEX
>> "LeaseAssignment_N50" ON "LeaseAssignment" ("nextLeaseId")
>> 20:48:15,241 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,241 [Schema                        ] Creating candidate key
>> "Geography_reference_UNQ" in catalog "" schema ""
>> 20:48:15,241 [Schema                        ] ALTER TABLE "State" ADD
>> CONSTRAINT "Geography_reference_UNQ" UNIQUE ("reference")
>> 20:48:15,242 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,242 [Schema                        ] Creating candidate key
>> "Geography_name_UNQ" in catalog "" schema ""
>> 20:48:15,242 [Schema                        ] ALTER TABLE "State" ADD
>> CONSTRAINT "Geography_name_UNQ" UNIQUE ("name")
>> 20:48:15,243 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,243 [Schema                        ] Creating foreign key
>> constraint : "State_FK1" in catalog "" schema ""
>> 20:48:15,243 [Schema                        ] ALTER TABLE "State" ADD
>> CONSTRAINT "State_FK1" FOREIGN KEY ("countryId") REFERENCES "Country"
>> ("id")
>> 20:48:15,243 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,244 [Schema                        ] Creating index "State_N49" in
>> catalog "" schema ""
>> 20:48:15,244 [Schema                        ] CREATE INDEX "State_N49" ON
>> "State" ("countryId")
>> 20:48:15,244 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,244 [Schema                        ] Creating foreign key
>> constraint : "LeaseStatusReason_FK1" in catalog "" schema ""
>> 20:48:15,244 [Schema                        ] ALTER TABLE
>> "LeaseStatusReason" ADD CONSTRAINT "LeaseStatusReason_FK1" FOREIGN KEY
>> ("leaseId") REFERENCES "Lease" ("id")
>> 20:48:15,245 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,245 [Schema                        ] Creating index
>> "LeaseStatusReason_N49" in catalog "" schema ""
>> 20:48:15,245 [Schema                        ] CREATE INDEX
>> "LeaseStatusReason_N49" ON "LeaseStatusReason" ("leaseId")
>> 20:48:15,245 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,246 [Schema                        ] Creating candidate key
>> "Activity_sector_name_UNQ" in catalog "" schema ""
>> 20:48:15,246 [Schema                        ] ALTER TABLE "Activity" ADD
>> CONSTRAINT "Activity_sector_name_UNQ" UNIQUE ("sectorId","name")
>> 20:48:15,246 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,246 [Schema                        ] Creating foreign key
>> constraint : "Activity_FK1" in catalog "" schema ""
>> 20:48:15,246 [Schema                        ] ALTER TABLE "Activity" ADD
>> CONSTRAINT "Activity_FK1" FOREIGN KEY ("sectorId") REFERENCES "Sector"
>> ("id")
>> 20:48:15,247 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,247 [Schema                        ] Creating index "Activity_N49"
>> in catalog "" schema ""
>> 20:48:15,247 [Schema                        ] CREATE INDEX "Activity_N49"
>> ON "Activity" ("sectorId")
>> 20:48:15,248 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,248 [Schema                        ] Creating candidate key
>> "Party_reference_UNQ" in catalog "" schema ""
>> 20:48:15,248 [Schema                        ] ALTER TABLE "Party" ADD
>> CONSTRAINT "Party_reference_UNQ" UNIQUE ("reference")
>> 20:48:15,248 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,249 [Schema                        ] Creating index
>> "Party_reference_name_IDX" in catalog "" schema ""
>> 20:48:15,249 [Schema                        ] CREATE INDEX
>> "Party_reference_name_IDX" ON "Party" ("reference","name")
>> 20:48:15,249 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,249 [Schema                        ] Creating foreign key
>> constraint : "Organisation_FK1" in catalog "" schema ""
>> 20:48:15,249 [Schema                        ] ALTER TABLE "Organisation"
>> ADD CONSTRAINT "Organisation_FK1" FOREIGN KEY ("id") REFERENCES "Party"
>> ("id")
>> 20:48:15,249 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,250 [Schema                        ] Creating candidate key
>> "FixedAssetRegistrationType_title_UNQ" in catalog "" schema ""
>> 20:48:15,250 [Schema                        ] ALTER TABLE
>> "FixedAssetRegistrationType" ADD CONSTRAINT
>> "FixedAssetRegistrationType_title_UNQ" UNIQUE ("title")
>> 20:48:15,250 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,250 [Schema                        ] Creating foreign key
>> constraint : "FixedAssetRegistration_FK2" in catalog "" schema ""
>> 20:48:15,250 [Schema                        ] ALTER TABLE
>> "FixedAssetRegistration" ADD CONSTRAINT "FixedAssetRegistration_FK2"
>> FOREIGN KEY ("subjectId") REFERENCES "FixedAsset" ("id")
>> 20:48:15,251 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,251 [Schema                        ] Creating foreign key
>> constraint : "FixedAssetRegistration_FK1" in catalog "" schema ""
>> 20:48:15,251 [Schema                        ] ALTER TABLE
>> "FixedAssetRegistration" ADD CONSTRAINT "FixedAssetRegistration_FK1"
>> FOREIGN KEY ("typeId") REFERENCES "FixedAssetRegistrationType" ("id")
>> 20:48:15,252 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,252 [Schema                        ] Creating index
>> "FixedAssetRegistration_N49" in catalog "" schema ""
>> 20:48:15,252 [Schema                        ] CREATE INDEX
>> "FixedAssetRegistration_N49" ON "FixedAssetRegistration" ("subjectId")
>> 20:48:15,252 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,252 [Schema                        ] Creating index
>> "FixedAssetRegistration_N50" in catalog "" schema ""
>> 20:48:15,252 [Schema                        ] CREATE INDEX
>> "FixedAssetRegistration_N50" ON "FixedAssetRegistration" ("typeId")
>> 20:48:15,252 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,253 [Schema                        ] Creating foreign key
>> constraint : "LandRegister_FK1" in catalog "" schema ""
>> 20:48:15,253 [Schema                        ] ALTER TABLE "LandRegister"
>> ADD CONSTRAINT "LandRegister_FK1" FOREIGN KEY ("id") REFERENCES
>> "FixedAssetRegistration" ("id")
>> 20:48:15,253 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,253 [Schema                        ] Creating candidate key
>> "Tag_taggable_name_UNQ" in catalog "" schema ""
>> 20:48:15,253 [Schema                        ] ALTER TABLE "Tag" ADD
>> CONSTRAINT "Tag_taggable_name_UNQ" UNIQUE
>> ("taggable_Occupancy_id_EID","name")
>> 20:48:15,254 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,254 [Schema                        ] Creating foreign key
>> constraint : "Tag_FK1" in catalog "" schema ""
>> 20:48:15,254 [Schema                        ] ALTER TABLE "Tag" ADD
>> CONSTRAINT "Tag_FK1" FOREIGN KEY ("taggable_Occupancy_id_EID") REFERENCES
>> "Occupancy" ("id")
>> 20:48:15,255 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,255 [Schema                        ] Creating index "Tag_N49" in
>> catalog "" schema ""
>> 20:48:15,255 [Schema                        ] CREATE INDEX "Tag_N49" ON
>> "Tag" ("taggable_Occupancy_id_EID")
>> 20:48:15,255 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,255 [Schema                        ] Creating candidate key
>> "Charge_reference_UNQ" in catalog "" schema ""
>> 20:48:15,255 [Schema                        ] ALTER TABLE "Charge" ADD
>> CONSTRAINT "Charge_reference_UNQ" UNIQUE ("reference")
>> 20:48:15,256 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,256 [Schema                        ] Creating candidate key
>> "Charge_name_UNQ" in catalog "" schema ""
>> 20:48:15,256 [Schema                        ] ALTER TABLE "Charge" ADD
>> CONSTRAINT "Charge_name_UNQ" UNIQUE ("name")
>> 20:48:15,257 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,257 [Schema                        ] Creating foreign key
>> constraint : "Charge_FK2" in catalog "" schema ""
>> 20:48:15,257 [Schema                        ] ALTER TABLE "Charge" ADD
>> CONSTRAINT "Charge_FK2" FOREIGN KEY ("taxId") REFERENCES "Tax" ("id")
>> 20:48:15,258 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,258 [Schema                        ] Creating foreign key
>> constraint : "Charge_FK1" in catalog "" schema ""
>> 20:48:15,258 [Schema                        ] ALTER TABLE "Charge" ADD
>> CONSTRAINT "Charge_FK1" FOREIGN KEY ("groupId") REFERENCES "ChargeGroup"
>> ("id")
>> 20:48:15,259 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,259 [Schema                        ] Creating index "Charge_N50"
>> in catalog "" schema ""
>> 20:48:15,259 [Schema                        ] CREATE INDEX "Charge_N50" ON
>> "Charge" ("groupId")
>> 20:48:15,259 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,259 [Schema                        ] Creating index "Charge_N49"
>> in catalog "" schema ""
>> 20:48:15,259 [Schema                        ] CREATE INDEX "Charge_N49" ON
>> "Charge" ("taxId")
>> 20:48:15,260 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,260 [Schema                        ] Creating foreign key
>> constraint : "IndexValue_FK1" in catalog "" schema ""
>> 20:48:15,260 [Schema                        ] ALTER TABLE "IndexValue" ADD
>> CONSTRAINT "IndexValue_FK1" FOREIGN KEY ("indexBaseId") REFERENCES
>> "IndexBase" ("id")
>> 20:48:15,260 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,261 [Schema                        ] Creating index
>> "IndexValue_N49" in catalog "" schema ""
>> 20:48:15,261 [Schema                        ] CREATE INDEX "IndexValue_N49"
>> ON "IndexValue" ("indexBaseId")
>> 20:48:15,261 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,261 [Schema                        ] Creating candidate key
>> "Tax_reference_UNQ" in catalog "" schema ""
>> 20:48:15,261 [Schema                        ] ALTER TABLE "Tax" ADD
>> CONSTRAINT "Tax_reference_UNQ" UNIQUE ("reference")
>> 20:48:15,261 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,262 [Schema                        ] Creating foreign key
>> constraint : "Invoice_FK4" in catalog "" schema ""
>> 20:48:15,262 [Schema                        ] ALTER TABLE "Invoice" ADD
>> CONSTRAINT "Invoice_FK4" FOREIGN KEY ("currencyId") REFERENCES "Currency"
>> ("id")
>> 20:48:15,262 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,263 [Schema                        ] Creating foreign key
>> constraint : "Invoice_FK3" in catalog "" schema ""
>> 20:48:15,263 [Schema                        ] ALTER TABLE "Invoice" ADD
>> CONSTRAINT "Invoice_FK3" FOREIGN KEY ("sellerPartyId") REFERENCES "Party"
>> ("id")
>> 20:48:15,264 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,264 [Schema                        ] Creating foreign key
>> constraint : "Invoice_FK2" in catalog "" schema ""
>> 20:48:15,264 [Schema                        ] ALTER TABLE "Invoice" ADD
>> CONSTRAINT "Invoice_FK2" FOREIGN KEY ("buyerPartyId") REFERENCES "Party"
>> ("id")
>> 20:48:15,264 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,265 [Schema                        ] Creating foreign key
>> constraint : "Invoice_FK1" in catalog "" schema ""
>> 20:48:15,265 [Schema                        ] ALTER TABLE "Invoice" ADD
>> CONSTRAINT "Invoice_FK1" FOREIGN KEY ("sourceLeaseId") REFERENCES "Lease"
>> ("id")
>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,266 [Schema                        ] Creating index "Invoice_N51"
>> in catalog "" schema ""
>> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N51" ON
>> "Invoice" ("currencyId")
>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,266 [Schema                        ] Creating index "Invoice_N52"
>> in catalog "" schema ""
>> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N52" ON
>> "Invoice" ("sourceLeaseId")
>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,266 [Schema                        ] Creating index "Invoice_N49"
>> in catalog "" schema ""
>> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N49" ON
>> "Invoice" ("buyerPartyId")
>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,266 [Schema                        ] Creating index "Invoice_N50"
>> in catalog "" schema ""
>> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N50" ON
>> "Invoice" ("sellerPartyId")
>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,267 [Schema                        ] Creating foreign key
>> constraint : "Person_FK1" in catalog "" schema ""
>> 20:48:15,267 [Schema                        ] ALTER TABLE "Person" ADD
>> CONSTRAINT "Person_FK1" FOREIGN KEY ("id") REFERENCES "Party" ("id")
>> 20:48:15,267 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,267 [Schema                        ] Creating candidate key
>> "Country_alpha2Code_UNQ" in catalog "" schema ""
>> 20:48:15,267 [Schema                        ] ALTER TABLE "Country" ADD
>> CONSTRAINT "Country_alpha2Code_UNQ" UNIQUE ("alpha2Code")
>> 20:48:15,268 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,269 [Schema                        ] Creating candidate key
>> "Country_reference_UNQ" in catalog "" schema ""
>> 20:48:15,269 [Schema                        ] ALTER TABLE "Country" ADD
>> CONSTRAINT "Country_reference_UNQ" UNIQUE ("reference")
>> 20:48:15,270 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,270 [Schema                        ] Creating candidate key
>> "Country_name_UNQ" in catalog "" schema ""
>> 20:48:15,270 [Schema                        ] ALTER TABLE "Country" ADD
>> CONSTRAINT "Country_name_UNQ" UNIQUE ("name")
>> 20:48:15,271 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,271 [Schema                        ] Creating foreign key
>> constraint : "Lease_FK3" in catalog "" schema ""
>> 20:48:15,271 [Schema                        ] ALTER TABLE "Lease" ADD
>> CONSTRAINT "Lease_FK3" FOREIGN KEY ("leaseTypeId") REFERENCES "LeaseType"
>> ("id")
>> 20:48:15,272 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,272 [Schema                        ] Creating foreign key
>> constraint : "Lease_FK2" in catalog "" schema ""
>> 20:48:15,272 [Schema                        ] ALTER TABLE "Lease" ADD
>> CONSTRAINT "Lease_FK2" FOREIGN KEY ("paidByBankMandateId") REFERENCES
>> "BankMandate" ("id")
>> 20:48:15,273 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,273 [Schema                        ] Creating foreign key
>> constraint : "Lease_FK1" in catalog "" schema ""
>> 20:48:15,273 [Schema                        ] ALTER TABLE "Lease" ADD
>> CONSTRAINT "Lease_FK1" FOREIGN KEY ("id") REFERENCES "Agreement" ("id")
>> 20:48:15,274 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,274 [Schema                        ] Creating index "Lease_N50" in
>> catalog "" schema ""
>> 20:48:15,274 [Schema                        ] CREATE INDEX "Lease_N50" ON
>> "Lease" ("leaseTypeId")
>> 20:48:15,274 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,275 [Schema                        ] Creating index "Lease_N49" in
>> catalog "" schema ""
>> 20:48:15,275 [Schema                        ] CREATE INDEX "Lease_N49" ON
>> "Lease" ("paidByBankMandateId")
>> 20:48:15,275 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,275 [Schema                        ] Creating candidate key
>> "LeaseItem_lease_type_startDate_sequence_IDX" in catalog "" schema ""
>> 20:48:15,275 [Schema                        ] ALTER TABLE "LeaseItem" ADD
>> CONSTRAINT "LeaseItem_lease_type_startDate_sequence_IDX" UNIQUE
>> ("leaseId","type","startDate","sequence")
>> 20:48:15,277 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,277 [Schema                        ] Creating foreign key
>> constraint : "LeaseItem_FK1" in catalog "" schema ""
>> 20:48:15,277 [Schema                        ] ALTER TABLE "LeaseItem" ADD
>> CONSTRAINT "LeaseItem_FK1" FOREIGN KEY ("leaseId") REFERENCES "Lease"
>> ("id")
>> 20:48:15,279 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,279 [Schema                        ] Creating foreign key
>> constraint : "LeaseItem_FK2" in catalog "" schema ""
>> 20:48:15,279 [Schema                        ] ALTER TABLE "LeaseItem" ADD
>> CONSTRAINT "LeaseItem_FK2" FOREIGN KEY ("chargeId") REFERENCES "Charge"
>> ("id")
>> 20:48:15,281 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,281 [Schema                        ] Creating index
>> "LeaseItem_lease_type_startDate_IDX" in catalog "" schema ""
>> 20:48:15,281 [Schema                        ] CREATE INDEX
>> "LeaseItem_lease_type_startDate_IDX" ON "LeaseItem"
>> ("leaseId","type","startDate")
>> 20:48:15,282 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,282 [Schema                        ] Creating index
>> "LeaseItem_N50" in catalog "" schema ""
>> 20:48:15,282 [Schema                        ] CREATE INDEX "LeaseItem_N50"
>> ON "LeaseItem" ("leaseId")
>> 20:48:15,282 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,282 [Schema                        ] Creating index
>> "LeaseItem_lease_type_sequence_IDX" in catalog "" schema ""
>> 20:48:15,282 [Schema                        ] CREATE INDEX
>> "LeaseItem_lease_type_sequence_IDX" ON "LeaseItem"
>> ("leaseId","type","sequence")
>> 20:48:15,282 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,282 [Schema                        ] Creating index
>> "LeaseItem_N49" in catalog "" schema ""
>> 20:48:15,282 [Schema                        ] CREATE INDEX "LeaseItem_N49"
>> ON "LeaseItem" ("chargeId")
>> 20:48:15,283 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,283 [Schema                        ] Creating foreign key
>> constraint : "AgreementRoleCommunicationChannelType_FK1" in catalog ""
>> schema ""
>> 20:48:15,283 [Schema                        ] ALTER TABLE
>> "AgreementRoleCommunicationChannelType" ADD CONSTRAINT
>> "AgreementRoleCommunicationChannelType_FK1" FOREIGN KEY
>> ("appliesToAgreementTypeId") REFERENCES "AgreementType" ("id")
>> 20:48:15,284 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,284 [Schema                        ] Creating index
>> "AgreementRoleCommunicationChannelType_N49" in catalog "" schema ""
>> 20:48:15,284 [Schema                        ] CREATE INDEX
>> "AgreementRoleCommunicationChannelType_N49" ON
>> "AgreementRoleCommunicationChannelType" ("appliesToAgreementTypeId")
>> 20:48:15,284 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,284 [Schema                        ] Creating candidate key
>> "LeaseType_reference_UNQ" in catalog "" schema ""
>> 20:48:15,284 [Schema                        ] ALTER TABLE "LeaseType" ADD
>> CONSTRAINT "LeaseType_reference_UNQ" UNIQUE ("reference")
>> 20:48:15,285 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,285 [Schema                        ] Creating candidate key
>> "LeaseType_name_UNQ" in catalog "" schema ""
>> 20:48:15,285 [Schema                        ] ALTER TABLE "LeaseType" ADD
>> CONSTRAINT "LeaseType_name_UNQ" UNIQUE ("name")
>> 20:48:15,286 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,286 [Schema                        ] Creating foreign key
>> constraint : "AgreementRoleCommunicationChannel_FK3" in catalog "" schema ""
>> 20:48:15,286 [Schema                        ] ALTER TABLE
>> "AgreementRoleCommunicationChannel" ADD CONSTRAINT
>> "AgreementRoleCommunicationChannel_FK3" FOREIGN KEY
>> ("communicationChannelId") REFERENCES "CommunicationChannel" ("id")
>> 20:48:15,287 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,287 [Schema                        ] Creating foreign key
>> constraint : "AgreementRoleCommunicationChannel_FK2" in catalog "" schema ""
>> 20:48:15,287 [Schema                        ] ALTER TABLE
>> "AgreementRoleCommunicationChannel" ADD CONSTRAINT
>> "AgreementRoleCommunicationChannel_FK2" FOREIGN KEY ("agreementRoleId")
>> REFERENCES "AgreementRole" ("id")
>> 20:48:15,288 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,289 [Schema                        ] Creating foreign key
>> constraint : "AgreementRoleCommunicationChannel_FK1" in catalog "" schema ""
>> 20:48:15,289 [Schema                        ] ALTER TABLE
>> "AgreementRoleCommunicationChannel" ADD CONSTRAINT
>> "AgreementRoleCommunicationChannel_FK1" FOREIGN KEY ("typeId") REFERENCES
>> "AgreementRoleCommunicationChannelType" ("id")
>> 20:48:15,290 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,290 [Schema                        ] Creating index
>> "AgreementRoleCommunicationChannel_N49" in catalog "" schema ""
>> 20:48:15,290 [Schema                        ] CREATE INDEX
>> "AgreementRoleCommunicationChannel_N49" ON
>> "AgreementRoleCommunicationChannel" ("communicationChannelId")
>> 20:48:15,291 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,291 [Schema                        ] Creating index
>> "AgreementRoleCommunicationChannel_N50" in catalog "" schema ""
>> 20:48:15,291 [Schema                        ] CREATE INDEX
>> "AgreementRoleCommunicationChannel_N50" ON
>> "AgreementRoleCommunicationChannel" ("agreementRoleId")
>> 20:48:15,291 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,291 [Schema                        ] Creating index
>> "AgreementRoleCommunicationChannel_N51" in catalog "" schema ""
>> 20:48:15,291 [Schema                        ] CREATE INDEX
>> "AgreementRoleCommunicationChannel_N51" ON
>> "AgreementRoleCommunicationChannel" ("typeId")
>> 20:48:15,291 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,291 [Schema                        ] Creating candidate key
>> "AgreementType_title_UNQ" in catalog "" schema ""
>> 20:48:15,291 [Schema                        ] ALTER TABLE "AgreementType"
>> ADD CONSTRAINT "AgreementType_title_UNQ" UNIQUE ("title")
>> 20:48:15,292 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,292 [Schema                        ] Creating candidate key
>> "Occupancy_lease_unit_startDate_UNQ" in catalog "" schema ""
>> 20:48:15,292 [Schema                        ] ALTER TABLE "Occupancy" ADD
>> CONSTRAINT "Occupancy_lease_unit_startDate_UNQ" UNIQUE
>> ("leaseId","unitId","startDate")
>> 20:48:15,294 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,294 [Schema                        ] Creating foreign key
>> constraint : "Occupancy_FK5" in catalog "" schema ""
>> 20:48:15,294 [Schema                        ] ALTER TABLE "Occupancy" ADD
>> CONSTRAINT "Occupancy_FK5" FOREIGN KEY ("sectorId") REFERENCES "Sector"
>> ("id")
>> 20:48:15,295 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,296 [Schema                        ] Creating foreign key
>> constraint : "Occupancy_FK6" in catalog "" schema ""
>> 20:48:15,296 [Schema                        ] ALTER TABLE "Occupancy" ADD
>> CONSTRAINT "Occupancy_FK6" FOREIGN KEY ("brandId") REFERENCES "Brand"
>> ("id")
>> 20:48:15,297 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,297 [Schema                        ] Creating foreign key
>> constraint : "Occupancy_FK3" in catalog "" schema ""
>> 20:48:15,297 [Schema                        ] ALTER TABLE "Occupancy" ADD
>> CONSTRAINT "Occupancy_FK3" FOREIGN KEY ("activityId") REFERENCES "Activity"
>> ("id")
>> 20:48:15,299 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,299 [Schema                        ] Creating foreign key
>> constraint : "Occupancy_FK4" in catalog "" schema ""
>> 20:48:15,299 [Schema                        ] ALTER TABLE "Occupancy" ADD
>> CONSTRAINT "Occupancy_FK4" FOREIGN KEY ("leaseId") REFERENCES "Lease"
>> ("id")
>> 20:48:15,301 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,301 [Schema                        ] Creating foreign key
>> constraint : "Occupancy_FK1" in catalog "" schema ""
>> 20:48:15,301 [Schema                        ] ALTER TABLE "Occupancy" ADD
>> CONSTRAINT "Occupancy_FK1" FOREIGN KEY ("unitId") REFERENCES "Unit" ("id")
>> 20:48:15,302 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,303 [Schema                        ] Creating foreign key
>> constraint : "Occupancy_FK2" in catalog "" schema ""
>> 20:48:15,303 [Schema                        ] ALTER TABLE "Occupancy" ADD
>> CONSTRAINT "Occupancy_FK2" FOREIGN KEY ("unitSizeId") REFERENCES "UnitSize"
>> ("id")
>> 20:48:15,304 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,304 [Schema                        ] Creating index
>> "Occupancy_N54" in catalog "" schema ""
>> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N54"
>> ON "Occupancy" ("brandId")
>> 20:48:15,305 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,305 [Schema                        ] Creating index
>> "Occupancy_N53" in catalog "" schema ""
>> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N53"
>> ON "Occupancy" ("unitId")
>> 20:48:15,305 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,305 [Schema                        ] Creating index
>> "Occupancy_N52" in catalog "" schema ""
>> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N52"
>> ON "Occupancy" ("sectorId")
>> 20:48:15,305 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,305 [Schema                        ] Creating index
>> "Occupancy_N51" in catalog "" schema ""
>> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N51"
>> ON "Occupancy" ("activityId")
>> 20:48:15,306 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,306 [Schema                        ] Creating index
>> "Occupancy_N49" in catalog "" schema ""
>> 20:48:15,306 [Schema                        ] CREATE INDEX "Occupancy_N49"
>> ON "Occupancy" ("leaseId")
>> 20:48:15,306 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,306 [Schema                        ] Creating index
>> "Occupancy_N50" in catalog "" schema ""
>> 20:48:15,306 [Schema                        ] CREATE INDEX "Occupancy_N50"
>> ON "Occupancy" ("unitSizeId")
>> 20:48:15,306 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,306 [Schema                        ] Creating foreign key
>> constraint : "IndexBase_FK2" in catalog "" schema ""
>> 20:48:15,306 [Schema                        ] ALTER TABLE "IndexBase" ADD
>> CONSTRAINT "IndexBase_FK2" FOREIGN KEY ("indexId") REFERENCES "Index"
>> ("id")
>> 20:48:15,307 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,307 [Schema                        ] Creating foreign key
>> constraint : "IndexBase_FK1" in catalog "" schema ""
>> 20:48:15,307 [Schema                        ] ALTER TABLE "IndexBase" ADD
>> CONSTRAINT "IndexBase_FK1" FOREIGN KEY ("nextIndexBaseId") REFERENCES
>> "IndexBase" ("id")
>> 20:48:15,308 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,308 [Schema                        ] Creating index
>> "IndexBase_N50" in catalog "" schema ""
>> 20:48:15,308 [Schema                        ] CREATE INDEX "IndexBase_N50"
>> ON "IndexBase" ("indexId")
>> 20:48:15,309 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,309 [Schema                        ] Creating index
>> "IndexBase_N49" in catalog "" schema ""
>> 20:48:15,309 [Schema                        ] CREATE INDEX "IndexBase_N49"
>> ON "IndexBase" ("nextIndexBaseId")
>> 20:48:15,309 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,309 [Schema                        ] Creating candidate key
>> "Index_name_UNQ" in catalog "" schema ""
>> 20:48:15,309 [Schema                        ] ALTER TABLE "Index" ADD
>> CONSTRAINT "Index_name_UNQ" UNIQUE ("name")
>> 20:48:15,310 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,310 [Schema                        ] Creating candidate key
>> "Index_reference_UNQ" in catalog "" schema ""
>> 20:48:15,310 [Schema                        ] ALTER TABLE "Index" ADD
>> CONSTRAINT "Index_reference_UNQ" UNIQUE ("reference")
>> 20:48:15,311 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,311 [Schema                        ] Creating foreign key
>> constraint : "AgreementRole_FK3" in catalog "" schema ""
>> 20:48:15,311 [Schema                        ] ALTER TABLE "AgreementRole"
>> ADD CONSTRAINT "AgreementRole_FK3" FOREIGN KEY ("agreementId") REFERENCES
>> "Agreement" ("id")
>> 20:48:15,312 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,313 [Schema                        ] Creating foreign key
>> constraint : "AgreementRole_FK2" in catalog "" schema ""
>> 20:48:15,313 [Schema                        ] ALTER TABLE "AgreementRole"
>> ADD CONSTRAINT "AgreementRole_FK2" FOREIGN KEY ("typeId") REFERENCES
>> "AgreementRoleType" ("id")
>> 20:48:15,314 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,314 [Schema                        ] Creating foreign key
>> constraint : "AgreementRole_FK1" in catalog "" schema ""
>> 20:48:15,314 [Schema                        ] ALTER TABLE "AgreementRole"
>> ADD CONSTRAINT "AgreementRole_FK1" FOREIGN KEY ("partyId") REFERENCES
>> "Party" ("id")
>> 20:48:15,315 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,315 [Schema                        ] Creating index
>> "AgreementRole_N49" in catalog "" schema ""
>> 20:48:15,315 [Schema                        ] CREATE INDEX
>> "AgreementRole_N49" ON "AgreementRole" ("agreementId")
>> 20:48:15,315 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,315 [Schema                        ] Creating index
>> "AgreementRole_N51" in catalog "" schema ""
>> 20:48:15,315 [Schema                        ] CREATE INDEX
>> "AgreementRole_N51" ON "AgreementRole" ("typeId")
>> 20:48:15,316 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,316 [Schema                        ] Creating index
>> "AgreementRole_N50" in catalog "" schema ""
>> 20:48:15,316 [Schema                        ] CREATE INDEX
>> "AgreementRole_N50" ON "AgreementRole" ("partyId")
>> 20:48:15,316 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,316 [Schema                        ] Creating candidate key
>> "Sector_name_UNQ" in catalog "" schema ""
>> 20:48:15,316 [Schema                        ] ALTER TABLE "Sector" ADD
>> CONSTRAINT "Sector_name_UNQ" UNIQUE ("name")
>> 20:48:15,317 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,318 [Schema                        ] Check of existence of
>> "InvoiceSummaryForPropertyDueDate" returned no table
>> 20:48:15,318 [Schema                        ] Creating table
>> "InvoiceSummaryForPropertyDueDate"
>> 20:48:15,318 [Schema                        ] CREATE VIEW
>> "InvoiceSummaryForPropertyDueDate" (   "reference",   "dueDate",   "total",
>>  "netAmount",   "vatAmount",   "grossAmount" ) AS SELECT
>> "FixedAsset"."reference" ,    "Invoice"."dueDate",
>> COUNT(DISTINCT("Invoice"."id")) AS "total",
>> SUM("InvoiceItem"."netAmount") AS "netAmount",
>> SUM("InvoiceItem"."vatAmount") AS "vatAmount",
>> SUM("InvoiceItem"."grossAmount") AS "grossAmount"   FROM "Invoice"   INNER
>> JOIN "Lease"       ON "Invoice"."sourceLeaseId" = "Lease"."id"   INNER JOIN
>> "Occupancy"     ON "Lease"."id"              = "Occupancy"."leaseId"
>> INNER JOIN "Unit"       ON "Unit"."id"               = "Occupancy"."unitId"
>>  INNER JOIN "Property"     ON "Property"."id"           =
>> "Unit"."propertyId"   INNER JOIN "FixedAsset"     ON "FixedAsset"."id"
>>    = "Property"."id"   INNER JOIN "InvoiceItem"     ON
>> "InvoiceItem"."invoiceId" = "Invoice"."id" GROUP BY
>> "FixedAsset"."reference",  "Invoice"."dueDate"
>> 
>> 
>> 
>> On 13 January 2014 18:47, GESCONSULTOR - Óscar Bou
>> <o....@gesconsultor.com>wrote:
>> 
>>> 
>>> Hi, Dharmesh.
>>> 
>>> Can you copy on an email the class definition for
>>> org.atos.tfgm.basket.ShoppingBasketItem?
>>> 
>>> Perhaps the JDO annotations for identity are not properly defined.
>>> 
>>> See [1] for an example. The relevant ones are:
>>> 
>>> 
>>> @javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
>>> @javax.jdo.annotations.DatastoreIdentity(
>>>        strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY,
>>>         column="id")
>>> @javax.jdo.annotations.Version(
>>>        strategy=VersionStrategy.VERSION_NUMBER,
>>>        column="version")
>>> 
>>> 
>>> 
>>> 
>>> Regards,
>>> 
>>> Oscar
>>> 
>>> 
>>> [1]
>>> https://github.com/apache/isis/blob/master/example/archetype/quickstart_wicket_restful_jdo/src/main/resources/archetype-resources/dom/src/main/java/dom/todo/ToDoItem.java
>>> 
>>> 
>>> 
>>> El 13/01/2014, a las 18:03, Chohan, Dharmesh <dh...@atos.net>
>>> escribió:
>>> 
>>>> Hello
>>>> 
>>>> I have sorted out the issue below, however I have encountered another
>>> problem,
>>>> 
>>>> Data already exists
>>>> 
>>>> integrity constraint violation: NOT NULL check constraint; SYS_CT_10102
>>> table: "ShoppingBasketItem" column: "shoppingBasket_id_OID"
>>>> 
>>>> This is the log output and am not sure why shoppingBasket_id_OID is NULL
>>>> 
>>>>    [exec] 16:58:55,845  [Native               qtp1742392524-31 DEBUG]
>>> INSERT INTO "ShoppingBasketItem"
>>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>>> VALUES (<'123456789001'>,<'Please_Select'>,<'Item
>>> 1'>,<'▒5'>,<null>,<1>,<null>)
>>>>    [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]
>>> Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b"
>>> using statement "INSERT INTO "ShoppingBasketItem"
>>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>>> VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL
>>> check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column:
>>> "shoppingBasket_id_OID"
>>>>    [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]
>>> Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b"
>>> using statement "INSERT INTO "ShoppingBasketItem"
>>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>>> VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL
>>> check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column:
>>> "shoppingBasket_id_OID"
>>>>    [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]
>>> Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b"
>>> using statement "INSERT INTO "ShoppingBasketItem"
>>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>>> VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL
>>> check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column:
>>> "shoppingBasket_id_OID"
>>>>    [exec] 16:58:55,945  [IsisTransaction      qtp1742392524-31 INFO ]
>>> abort transaction IsisTransaction@2fab0086[state=MUST_ABORT,commands=0]
>>>> 
>>>> Regards
>>>> Dharmesh
>>>> 
>>>> -----Original Message-----
>>>> From: Chohan, Dharmesh [mailto:dharmesh.chohan@atos.net]
>>>> Sent: Monday, January 13, 2014 4:09 PM
>>>> To: users@isis.apache.org
>>>> Subject: Domain Mappings 1:m Exception
>>>> 
>>>> Hi
>>>> 
>>>> I am implementing a domain object mapping of 1 to many.  I have followed
>>> the documentation on
>>> http://isis.apache.org/components/objectstores/jdo/managed-1-to-m-relationships.html
>>>> 
>>>> This is what I have implemented,
>>>> 
>>>> @javax.jdo.annotations.Persistent(mappedBy="shoppingBasket")
>>>>       private SortedSet<ShoppingBasketItem> shoppingBasketItem = new
>>> TreeSet<ShoppingBasketItem>();
>>>> 
>>>>       @javax.jdo.annotations.Column(allowsNull="false")
>>>>   @MemberOrder(sequence = "3")
>>>>       public SortedSet <ShoppingBasketItem> getShoppingBasketItem() {
>>>>               return shoppingBasketItem;
>>>>       }
>>>> 
>>>>       public void setShoppingBasketItem(SortedSet <ShoppingBasketItem>
>>> shoppingBasketItem) {
>>>>               this.shoppingBasketItem = shoppingBasketItem;
>>>>       }
>>>> 
>>>> public class ShoppingBasketItem implements
>>> Comparable<ShoppingBasketItem> {
>>>> 
>>>>       private ShoppingBasket shoppingBasket;
>>>> 
>>>>       @javax.jdo.annotations.Column(allowsNull="false")
>>>>       public ShoppingBasket getShoppingBasket() {
>>>>               return shoppingBasket;
>>>>       }
>>>> 
>>>>       public void setShoppingBasket(ShoppingBasket shoppingBasket) {
>>>>               this.shoppingBasket = shoppingBasket;
>>>>       }
>>>> 
>>>> ...
>>>> 
>>>> When I run ISIS and test the screen, I am getting the following
>>> exception,
>>>> 
>>>> *       java.lang.IllegalArgumentException
>>>> *       No such method ' getShoppingBasketItem' or 'isShoppingBasketItem'
>>>> *
>>> org.apache.isis.applib.util.Clause#getValueOf(ObjectContracts.java:204)
>>>> *
>>> org.apache.isis.applib.util.ObjectContracts#compare(ObjectContracts.java:45)
>>>> *
>>> org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:117)
>>>> *
>>> org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:15)
>>>> *       java.util.TreeMap#put(TreeMap.java:545)
>>>> *       java.util.TreeSet#add(TreeSet.java:238)
>>>> *
>>> org.atos.tfgm.basket.ShoppingBaskets#getBasket(ShoppingBaskets.java:150)
>>>> *
>>> sun.reflect.NativeMethodAccessorImpl#invoke0(NativeMethodAccessorImpl.java:-2)
>>>> *
>>> sun.reflect.NativeMethodAccessorImpl#invoke(NativeMethodAccessorImpl.java:39)
>>>> *
>>> sun.reflect.DelegatingMethodAccessorImpl#invoke(DelegatingMethodAccessorImpl.java:25)
>>>> *       java.lang.reflect.Method#invoke(Method.java:597)
>>>> 
>>>> 
>>>> Have I implemented the relationship incorrectly or missing something.
>>>> 
>>>> 
>>>> Regards
>>>> Dharmesh
>>>> 
>>> 
>>> 

Re: Domain Mappings 1:m Exception

Posted by GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>.
Seems that the validation behavior is configurable, also for constraints, as per [1].

HTH,

Oscar

[1] http://www.datanucleus.org/products/accessplatform_2_2/rdbms/schema.html




El 14/01/2014, a las 08:23, Jeroen van der Wal <je...@stromboli.it> escribió:

> Just a sidenote: datanucleus only adds non-existing constraints. If
> you've changed your model it might be possible that you have to delete
> constraints manually in order to make things work.
> 
> On Mon, Jan 13, 2014 at 11:54 PM, Dan Haywood
> <da...@haywood-associates.co.uk> wrote:
>> Looking at how Estatio [1] boots up (see log below), it seems that JDO does
>> the CREATE TABLE first, then adds foreign key constraints afterwards using
>> ALTER TABLE.
>> 
>> HTH
>> Dan
>> 
>> [1] https://github.com/estatio/estatio
>> 
>> extract of Estatio's startup log:
>> 
>> 20:48:14,974 [Schema                        ] CREATE TABLE
>> "CommunicationChannel"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "description" NVARCHAR(254) NULL,
>>    "legal" BOOLEAN NOT NULL,
>>    "ownerOrganisationId" BIGINT NULL,
>>    "ownerPersonId" BIGINT NULL,
>>    "ownerPropertyId" BIGINT NULL,
>>    "ownerUnitId" BIGINT NULL,
>>    "reference" NVARCHAR(24) NULL,
>>    "type" NVARCHAR(30) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    "discriminator" NVARCHAR(255) NOT NULL,
>>    "emailAddress" NVARCHAR(50) NULL,
>>    "address1" NVARCHAR(100) NULL,
>>    "address2" NVARCHAR(100) NULL,
>>    "city" NVARCHAR(50) NULL,
>>    "countryId" BIGINT NULL,
>>    "postalCode" NVARCHAR(12) NULL,
>>    "stateId" BIGINT NULL,
>>    "phoneNumber" NVARCHAR(20) NULL,
>>    CONSTRAINT "CommunicationChannel_PK" PRIMARY KEY ("id")
>> )
>> 20:48:14,977 [Schema                        ] Execution Time = 3 ms
>> 20:48:14,982 [Schema                        ] Check of existence of
>> "LeaseTerm" returned no table
>> 20:48:14,982 [Schema                        ] Creating table "LeaseTerm"
>> 20:48:14,982 [Schema                        ] CREATE TABLE "LeaseTerm"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "endDate" DATE NULL,
>>    "frequency" NVARCHAR(30) NOT NULL,
>>    "leaseItemId" BIGINT NOT NULL,
>>    "nextLeaseTermId" BIGINT NULL,
>>    "sequence" NUMERIC NULL,
>>    "startDate" DATE NULL,
>>    "status" NVARCHAR(20) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    "discriminator" NVARCHAR(255) NOT NULL,
>>    "auditedTurnover" DECIMAL(19,2) NULL,
>>    "budgetedTurnover" DECIMAL(19,2) NULL,
>>    "contractualRent" DECIMAL(19,2) NULL,
>>    "turnoverRentRule" NVARCHAR(254) NULL,
>>    "turnoverRentValue" DECIMAL(19,2) NULL,
>>    "baseIndexStartDate" DATE NULL,
>>    "baseIndexValue" DECIMAL(19,1) NULL,
>>    "baseValue" DECIMAL(19,2) NULL,
>>    "effectiveDate" DATE NULL,
>>    "indexId" BIGINT NULL,
>>    "indexationPercentage" DECIMAL(19,1) NULL,
>>    "indexedValue" DECIMAL(19,2) NULL,
>>    "levellingPercentage" DECIMAL(19,1) NULL,
>>    "nextIndexStartDate" DATE NULL,
>>    "nextIndexValue" DECIMAL(19,1) NULL,
>>    "rebaseFactor" DECIMAL(19,3) NULL,
>>    "settledValue" DECIMAL(19,2) NULL,
>>    "auditedValue" DECIMAL(19,2) NULL,
>>    "budgetedValue" DECIMAL(19,2) NULL,
>>    CONSTRAINT "LeaseTerm_PK" PRIMARY KEY ("id")
>> )
>> 20:48:14,984 [Schema                        ] Execution Time = 2 ms
>> 20:48:14,987 [Schema                        ] Check of existence of "Unit"
>> returned no table
>> 20:48:14,987 [Schema                        ] Creating table "Unit"
>> 20:48:14,987 [Schema                        ] CREATE TABLE "Unit"
>> (
>>    "id" BIGINT NOT NULL,
>>    "area" DECIMAL(19,2) NULL,
>>    "dehorsArea" DECIMAL(19,2) NULL,
>>    "endDate" DATE NULL,
>>    "mezzanineArea" DECIMAL(19,2) NULL,
>>    "propertyId" BIGINT NOT NULL,
>>    "salesArea" DECIMAL(19,2) NULL,
>>    "startDate" DATE NULL,
>>    "storageArea" DECIMAL(19,2) NULL,
>>    "type" NVARCHAR(30) NOT NULL,
>>    CONSTRAINT "Unit_PK" PRIMARY KEY ("id")
>> )
>> 20:48:14,988 [Schema                        ] Execution Time = 1 ms
>> 20:48:14,991 [Schema                        ] Check of existence of
>> "BreakOption" returned no table
>> 20:48:14,991 [Schema                        ] Creating table "BreakOption"
>> 20:48:14,992 [Schema                        ] CREATE TABLE "BreakOption"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "breakDate" DATE NOT NULL,
>>    "description" NVARCHAR(254) NULL,
>>    "exerciseDate" DATE NOT NULL,
>>    "exerciseType" NVARCHAR(20) NOT NULL,
>>    "leaseId" BIGINT NOT NULL,
>>    "notificationPeriod" NVARCHAR(20) NULL,
>>    "type" NVARCHAR(30) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    "discriminator" NVARCHAR(255) NOT NULL,
>>    "reminderDate" DATE NULL,
>>    CONSTRAINT "BreakOption_PK" PRIMARY KEY ("id")
>> )
>> 20:48:14,994 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,000 [Schema                        ] Check of existence of
>> "InvoiceItem" returned no table
>> 20:48:15,000 [Schema                        ] Creating table "InvoiceItem"
>> 20:48:15,000 [Schema                        ] CREATE TABLE "InvoiceItem"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "chargeId" BIGINT NULL,
>>    "description" NVARCHAR(254) NULL,
>>    "dueDate" DATE NOT NULL,
>>    "endDate" DATE NULL,
>>    "grossAmount" DECIMAL(19,2) NULL,
>>    "invoiceId" BIGINT NULL,
>>    "netAmount" DECIMAL(19,2) NULL,
>>    "quantity" DECIMAL(19,2) NULL,
>>    "sequence" NUMERIC NOT NULL,
>>    "startDate" DATE NULL,
>>    "taxId" BIGINT NULL,
>>    "vatAmount" DECIMAL(19,2) NULL,
>>    "version" BIGINT NOT NULL,
>>    "discriminator" NVARCHAR(255) NOT NULL,
>>    "leaseTermId" BIGINT NULL,
>>    CONSTRAINT "InvoiceItem_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,002 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,007 [Schema                        ] Check of existence of "Brand"
>> returned no table
>> 20:48:15,008 [Schema                        ] Creating table "Brand"
>> 20:48:15,008 [Schema                        ] CREATE TABLE "Brand"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Brand_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,009 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,013 [Schema                        ] Check of existence of
>> "FixedAssetRole" returned no table
>> 20:48:15,013 [Schema                        ] Creating table
>> "FixedAssetRole"
>> 20:48:15,013 [Schema                        ] CREATE TABLE "FixedAssetRole"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "assetId" BIGINT NOT NULL,
>>    "endDate" DATE NULL,
>>    "partyId" BIGINT NOT NULL,
>>    "startDate" DATE NULL,
>>    "type" NVARCHAR(30) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "FixedAssetRole_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,015 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,019 [Schema                        ] Check of existence of
>> "Numerator" returned no table
>> 20:48:15,019 [Schema                        ] Creating table "Numerator"
>> 20:48:15,019 [Schema                        ] CREATE TABLE "Numerator"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "format" NVARCHAR(30) NOT NULL,
>>    "lastIncrement" NUMERIC NOT NULL,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "objectIdentifier" NVARCHAR(20) NULL,
>>    "objectType" NVARCHAR(254) NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Numerator_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,020 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,022 [Schema                        ] Check of existence of
>> "Agreement" returned no table
>> 20:48:15,022 [Schema                        ] Creating table "Agreement"
>> 20:48:15,022 [Schema                        ] CREATE TABLE "Agreement"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "endDate" DATE NULL,
>>    "name" NVARCHAR(50) NULL,
>>    "nextAgreementId" BIGINT NULL,
>>    "reference" NVARCHAR(24) NOT NULL,
>>    "startDate" DATE NULL,
>>    "typeId" BIGINT NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    "discriminator" NVARCHAR(255) NOT NULL,
>>    CONSTRAINT "Agreement_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,023 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,025 [Schema                        ] Check of existence of
>> "BankMandate" returned no table
>> 20:48:15,025 [Schema                        ] Creating table "BankMandate"
>> 20:48:15,025 [Schema                        ] CREATE TABLE "BankMandate"
>> (
>>    "id" BIGINT NOT NULL,
>>    "bankAccountId" BIGINT NOT NULL,
>>    CONSTRAINT "BankMandate_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,026 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,028 [Schema                        ] Check of existence of "Event"
>> returned no table
>> 20:48:15,028 [Schema                        ] Creating table "Event"
>> 20:48:15,028 [Schema                        ] CREATE TABLE "Event"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "calendarName" NVARCHAR(254) NOT NULL,
>>    "date" DATE NOT NULL,
>>    "notes" NVARCHAR(4000) NULL,
>>    "subjectBreakOptionId" BIGINT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Event_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,029 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,031 [Schema                        ] Check of existence of
>> "ChargeGroup" returned no table
>> 20:48:15,031 [Schema                        ] Creating table "ChargeGroup"
>> 20:48:15,031 [Schema                        ] CREATE TABLE "ChargeGroup"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "reference" NVARCHAR(24) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "ChargeGroup_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,032 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,034 [Schema                        ] Check of existence of
>> "UserSetting" returned no table
>> 20:48:15,034 [Schema                        ] Creating table "UserSetting"
>> 20:48:15,034 [Schema                        ] CREATE TABLE "UserSetting"
>> (
>>    "key" NVARCHAR(128) NOT NULL,
>>    "user" NVARCHAR(50) NOT NULL,
>>    "description" NVARCHAR(254) NULL,
>>    "type" NVARCHAR(20) NOT NULL,
>>    "valueRaw" NVARCHAR(255) NOT NULL,
>>    CONSTRAINT "UserSetting_PK" PRIMARY KEY ("key","user")
>> )
>> 20:48:15,035 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,038 [Schema                        ] Check of existence of
>> "Currency" returned no table
>> 20:48:15,038 [Schema                        ] Creating table "Currency"
>> 20:48:15,038 [Schema                        ] CREATE TABLE "Currency"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "reference" NVARCHAR(24) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Currency_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,039 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,043 [Schema                        ] Check of existence of
>> "TaxRate" returned no table
>> 20:48:15,043 [Schema                        ] Creating table "TaxRate"
>> 20:48:15,043 [Schema                        ] CREATE TABLE "TaxRate"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "endDate" DATE NULL,
>>    "externalReference" NVARCHAR(50) NULL,
>>    "nextTaxRateId" BIGINT NULL,
>>    "percentage" DECIMAL(19,2) NULL,
>>    "startDate" DATE NULL,
>>    "taxId" BIGINT NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "TaxRate_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,043 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,046 [Schema                        ] Check of existence of
>> "PartyRegistration" returned no table
>> 20:48:15,046 [Schema                        ] Creating table
>> "PartyRegistration"
>> 20:48:15,046 [Schema                        ] CREATE TABLE
>> "PartyRegistration"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "endDate" DATE NULL,
>>    "partyId" BIGINT NOT NULL,
>>    "startDate" DATE NULL,
>>    "type" NVARCHAR(30) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "PartyRegistration_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,047 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,050 [Schema                        ] Check of existence of
>> "AgreementRoleType" returned no table
>> 20:48:15,050 [Schema                        ] Creating table
>> "AgreementRoleType"
>> 20:48:15,050 [Schema                        ] CREATE TABLE
>> "AgreementRoleType"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "appliesToAgreementTypeId" BIGINT NOT NULL,
>>    "title" NVARCHAR(50) NOT NULL,
>>    CONSTRAINT "AgreementRoleType_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,051 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,055 [Schema                        ] Check of existence of
>> "AuditEntry" returned no table
>> 20:48:15,055 [Schema                        ] Creating table "AuditEntry"
>> 20:48:15,056 [Schema                        ] CREATE TABLE "AuditEntry"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "identifier" NVARCHAR(20) NOT NULL,
>>    "objectType" NVARCHAR(254) NOT NULL,
>>    "postValue" NVARCHAR(255) NULL,
>>    "preValue" NVARCHAR(255) NULL,
>>    "timestampEpoch" BIGINT NOT NULL,
>>    "user" NVARCHAR(50) NULL,
>>    CONSTRAINT "AuditEntry_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,057 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,060 [Schema                        ] Check of existence of
>> "FinancialAccount" returned no table
>> 20:48:15,060 [Schema                        ] Creating table
>> "FinancialAccount"
>> 20:48:15,060 [Schema                        ] CREATE TABLE
>> "FinancialAccount"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "ownerPartyId" BIGINT NOT NULL,
>>    "reference" NVARCHAR(24) NOT NULL,
>>    "type" NVARCHAR(30) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    "discriminator" NVARCHAR(255) NOT NULL,
>>    CONSTRAINT "FinancialAccount_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,062 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,068 [Schema                        ] Check of existence of
>> "BankAccount" returned no table
>> 20:48:15,068 [Schema                        ] Creating table "BankAccount"
>> 20:48:15,068 [Schema                        ] CREATE TABLE "BankAccount"
>> (
>>    "id" BIGINT NOT NULL,
>>    "accountNumber" NVARCHAR(20) NULL,
>>    "bankPartyId" BIGINT NULL,
>>    "bankAccountType" NVARCHAR(30) NOT NULL,
>>    "branchCode" NVARCHAR(20) NULL,
>>    "countryId" BIGINT NULL,
>>    "iban" NVARCHAR(32) NULL,
>>    "nationalBankCode" NVARCHAR(20) NULL,
>>    "nationalCheckCode" NVARCHAR(20) NULL,
>>    "fixedAssetId" BIGINT NULL,
>>    CONSTRAINT "BankAccount_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,070 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,072 [Schema                        ] Check of existence of
>> "UnitSize" returned no table
>> 20:48:15,072 [Schema                        ] Creating table "UnitSize"
>> 20:48:15,072 [Schema                        ] CREATE TABLE "UnitSize"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "UnitSize_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,073 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,075 [Schema                        ] Check of existence of
>> "ApplicationSetting" returned no table
>> 20:48:15,075 [Schema                        ] Creating table
>> "ApplicationSetting"
>> 20:48:15,075 [Schema                        ] CREATE TABLE
>> "ApplicationSetting"
>> (
>>    "key" NVARCHAR(128) NOT NULL,
>>    "description" NVARCHAR(254) NULL,
>>    "type" NVARCHAR(20) NOT NULL,
>>    "valueRaw" NVARCHAR(255) NOT NULL,
>>    CONSTRAINT "ApplicationSetting_PK" PRIMARY KEY ("key")
>> )
>> 20:48:15,076 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,079 [Schema                        ] Check of existence of
>> "FixedAsset" returned no table
>> 20:48:15,079 [Schema                        ] Creating table "FixedAsset"
>> 20:48:15,079 [Schema                        ] CREATE TABLE "FixedAsset"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "reference" NVARCHAR(24) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    "discriminator" NVARCHAR(255) NOT NULL,
>>    CONSTRAINT "FixedAsset_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,080 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,082 [Schema                        ] Check of existence of
>> "Property" returned no table
>> 20:48:15,082 [Schema                        ] Creating table "Property"
>> 20:48:15,082 [Schema                        ] CREATE TABLE "Property"
>> (
>>    "id" BIGINT NOT NULL,
>>    "acquireDate" DATE NULL,
>>    "area" DECIMAL(19,2) NULL,
>>    "city" NVARCHAR(50) NULL,
>>    "countryId" BIGINT NULL,
>>    "disposalDate" DATE NULL,
>>    "location" BLOB NULL,
>>    "openingDate" DATE NULL,
>>    "type" NVARCHAR(30) NOT NULL,
>>    CONSTRAINT "Property_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,083 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,085 [Schema                        ] Check of existence of
>> "LeaseAssignment" returned no table
>> 20:48:15,085 [Schema                        ] Creating table
>> "LeaseAssignment"
>> 20:48:15,085 [Schema                        ] CREATE TABLE "LeaseAssignment"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "assignmentDate" DATE NOT NULL,
>>    "nextLeaseId" BIGINT NULL,
>>    "previousLeaseId" BIGINT NULL,
>>    "type" NVARCHAR(30) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "LeaseAssignment_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,086 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,087 [Schema                        ] Check of existence of "State"
>> returned no table
>> 20:48:15,087 [Schema                        ] Creating table "State"
>> 20:48:15,087 [Schema                        ] CREATE TABLE "State"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "countryId" BIGINT NOT NULL,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "reference" NVARCHAR(6) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "State_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,088 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,090 [Schema                        ] Check of existence of
>> "LeaseStatusReason" returned no table
>> 20:48:15,090 [Schema                        ] Creating table
>> "LeaseStatusReason"
>> 20:48:15,090 [Schema                        ] CREATE TABLE
>> "LeaseStatusReason"
>> (
>>    "LeaseStatusReason_ID" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "leaseId" BIGINT NOT NULL,
>>    "reason" NVARCHAR(4000) NOT NULL,
>>    "status" NVARCHAR(20) NOT NULL,
>>    "timestamp" BIGINT NOT NULL,
>>    "user" NVARCHAR(50) NOT NULL,
>>    CONSTRAINT "LeaseStatusReason_PK" PRIMARY KEY ("LeaseStatusReason_ID")
>> )
>> 20:48:15,091 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,092 [Schema                        ] Check of existence of
>> "Activity" returned no table
>> 20:48:15,092 [Schema                        ] Creating table "Activity"
>> 20:48:15,093 [Schema                        ] CREATE TABLE "Activity"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "sectorId" BIGINT NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Activity_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,093 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,095 [Schema                        ] Check of existence of "Party"
>> returned no table
>> 20:48:15,095 [Schema                        ] Creating table "Party"
>> 20:48:15,095 [Schema                        ] CREATE TABLE "Party"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "name" NVARCHAR(80) NOT NULL,
>>    "reference" NVARCHAR(24) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    "discriminator" NVARCHAR(255) NOT NULL,
>>    CONSTRAINT "Party_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,096 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,098 [Schema                        ] Check of existence of
>> "Organisation" returned no table
>> 20:48:15,098 [Schema                        ] Creating table "Organisation"
>> 20:48:15,098 [Schema                        ] CREATE TABLE "Organisation"
>> (
>>    "id" BIGINT NOT NULL,
>>    "fiscalCode" NVARCHAR(30) NULL,
>>    "vatCode" NVARCHAR(30) NULL,
>>    CONSTRAINT "Organisation_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,099 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,101 [Schema                        ] Check of existence of
>> "FixedAssetRegistrationType" returned no table
>> 20:48:15,101 [Schema                        ] Creating table
>> "FixedAssetRegistrationType"
>> 20:48:15,101 [Schema                        ] CREATE TABLE
>> "FixedAssetRegistrationType"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "fullyQualifiedClassName" NVARCHAR(254) NOT NULL,
>>    "title" NVARCHAR(50) NOT NULL,
>>    CONSTRAINT "FixedAssetRegistrationType_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,103 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,105 [Schema                        ] Check of existence of
>> "FixedAssetRegistration" returned no table
>> 20:48:15,105 [Schema                        ] Creating table
>> "FixedAssetRegistration"
>> 20:48:15,106 [Schema                        ] CREATE TABLE
>> "FixedAssetRegistration"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "subjectId" BIGINT NOT NULL,
>>    "typeId" BIGINT NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    "discriminator" NVARCHAR(255) NOT NULL,
>>    CONSTRAINT "FixedAssetRegistration_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,107 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,109 [Schema                        ] Check of existence of
>> "LandRegister" returned no table
>> 20:48:15,109 [Schema                        ] Creating table "LandRegister"
>> 20:48:15,110 [Schema                        ] CREATE TABLE "LandRegister"
>> (
>>    "id" BIGINT NOT NULL,
>>    "categoria" NVARCHAR(255) NULL,
>>    "classe" NVARCHAR(255) NULL,
>>    "codiceComuneCatastale" NVARCHAR(255) NULL,
>>    "comuneAmministrativo" NVARCHAR(255) NULL,
>>    "comuneCatastale" NVARCHAR(255) NULL,
>>    "consistenza" NVARCHAR(255) NULL,
>>    "foglio" NVARCHAR(255) NULL,
>>    "particella" NVARCHAR(255) NULL,
>>    "rendita" NVARCHAR(255) NULL,
>>    "subalterno" NVARCHAR(255) NULL,
>>    CONSTRAINT "LandRegister_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,110 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,112 [Schema                        ] Check of existence of "Tag"
>> returned no table
>> 20:48:15,112 [Schema                        ] Creating table "Tag"
>> 20:48:15,112 [Schema                        ] CREATE TABLE "Tag"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "objectType" NVARCHAR(254) NOT NULL,
>>    "taggable_Occupancy_id_EID" BIGINT NULL,
>>    "value" NVARCHAR(255) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Tag_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,114 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,116 [Schema                        ] Check of existence of
>> "Charge" returned no table
>> 20:48:15,116 [Schema                        ] Creating table "Charge"
>> 20:48:15,116 [Schema                        ] CREATE TABLE "Charge"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "description" NVARCHAR(254) NOT NULL,
>>    "externalReference" NVARCHAR(50) NULL,
>>    "groupId" BIGINT NOT NULL,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "reference" NVARCHAR(24) NOT NULL,
>>    "sortOrder" NVARCHAR(24) NULL,
>>    "taxId" BIGINT NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Charge_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,117 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,120 [Schema                        ] Check of existence of
>> "IndexValue" returned no table
>> 20:48:15,120 [Schema                        ] Creating table "IndexValue"
>> 20:48:15,120 [Schema                        ] CREATE TABLE "IndexValue"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "indexBaseId" BIGINT NOT NULL,
>>    "startDate" DATE NOT NULL,
>>    "value" DECIMAL(19,4) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "IndexValue_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,121 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,124 [Schema                        ] Check of existence of "Tax"
>> returned no table
>> 20:48:15,124 [Schema                        ] Creating table "Tax"
>> 20:48:15,124 [Schema                        ] CREATE TABLE "Tax"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "externalReference" NVARCHAR(50) NULL,
>>    "name" NVARCHAR(50) NULL,
>>    "reference" NVARCHAR(24) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Tax_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,125 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,127 [Schema                        ] Check of existence of
>> "Invoice" returned no table
>> 20:48:15,127 [Schema                        ] Creating table "Invoice"
>> 20:48:15,127 [Schema                        ] CREATE TABLE "Invoice"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "buyerPartyId" BIGINT NOT NULL,
>>    "collectionNumber" NVARCHAR(16) NULL,
>>    "currencyId" BIGINT NULL,
>>    "dueDate" DATE NOT NULL,
>>    "invoiceDate" DATE NULL,
>>    "invoiceNumber" NVARCHAR(16) NULL,
>>    "lastItemSequence" NUMERIC NULL,
>>    "sourceLeaseId" BIGINT NULL,
>>    "paymentMethod" NVARCHAR(30) NOT NULL,
>>    "sellerPartyId" BIGINT NOT NULL,
>>    "status" NVARCHAR(20) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Invoice_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,129 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,130 [Schema                        ] Check of existence of
>> "Person" returned no table
>> 20:48:15,130 [Schema                        ] Creating table "Person"
>> 20:48:15,131 [Schema                        ] CREATE TABLE "Person"
>> (
>>    "id" BIGINT NOT NULL,
>>    "firstName" NVARCHAR(50) NULL,
>>    "gender" NVARCHAR(30) NOT NULL,
>>    "initials" NVARCHAR(3) NULL,
>>    "lastName" NVARCHAR(50) NOT NULL,
>>    CONSTRAINT "Person_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,131 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,133 [Schema                        ] Check of existence of
>> "Country" returned no table
>> 20:48:15,133 [Schema                        ] Creating table "Country"
>> 20:48:15,134 [Schema                        ] CREATE TABLE "Country"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "alpha2Code" NVARCHAR(2) NOT NULL,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "reference" NVARCHAR(24) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Country_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,135 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,137 [Schema                        ] Check of existence of "Lease"
>> returned no table
>> 20:48:15,137 [Schema                        ] Creating table "Lease"
>> 20:48:15,137 [Schema                        ] CREATE TABLE "Lease"
>> (
>>    "id" BIGINT NOT NULL,
>>    "leaseTypeId" BIGINT NULL,
>>    "paidByBankMandateId" BIGINT NULL,
>>    "status" NVARCHAR(20) NOT NULL,
>>    "tenancyEndDate" DATE NULL,
>>    "tenancyStartDate" DATE NULL,
>>    CONSTRAINT "Lease_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,138 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,140 [Schema                        ] Check of existence of
>> "LeaseItem" returned no table
>> 20:48:15,140 [Schema                        ] Creating table "LeaseItem"
>> 20:48:15,140 [Schema                        ] CREATE TABLE "LeaseItem"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "chargeId" BIGINT NOT NULL,
>>    "endDate" DATE NULL,
>>    "epochDate" DATE NULL,
>>    "invoicingFrequency" NVARCHAR(30) NOT NULL,
>>    "leaseId" BIGINT NOT NULL,
>>    "nextDueDate" DATE NULL,
>>    "paymentMethod" NVARCHAR(30) NOT NULL,
>>    "sequence" NUMERIC NOT NULL,
>>    "startDate" DATE NULL,
>>    "status" NVARCHAR(20) NOT NULL,
>>    "type" NVARCHAR(30) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "LeaseItem_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,142 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,144 [Schema                        ] Check of existence of
>> "AgreementRoleCommunicationChannelType" returned no table
>> 20:48:15,144 [Schema                        ] Creating table
>> "AgreementRoleCommunicationChannelType"
>> 20:48:15,144 [Schema                        ] CREATE TABLE
>> "AgreementRoleCommunicationChannelType"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "appliesToAgreementTypeId" BIGINT NOT NULL,
>>    "title" NVARCHAR(50) NOT NULL,
>>    CONSTRAINT "AgreementRoleCommunicationChannelType_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,145 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,148 [Schema                        ] Check of existence of
>> "LeaseType" returned no table
>> 20:48:15,148 [Schema                        ] Creating table "LeaseType"
>> 20:48:15,148 [Schema                        ] CREATE TABLE "LeaseType"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "reference" NVARCHAR(24) NOT NULL,
>>    CONSTRAINT "LeaseType_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,149 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,151 [Schema                        ] Check of existence of
>> "AgreementRoleCommunicationChannel" returned no table
>> 20:48:15,151 [Schema                        ] Creating table
>> "AgreementRoleCommunicationChannel"
>> 20:48:15,151 [Schema                        ] CREATE TABLE
>> "AgreementRoleCommunicationChannel"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "communicationChannelId" BIGINT NOT NULL,
>>    "endDate" DATE NULL,
>>    "agreementRoleId" BIGINT NOT NULL,
>>    "startDate" DATE NULL,
>>    "typeId" BIGINT NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "AgreementRoleCommunicationChannel_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,153 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,155 [Schema                        ] Check of existence of
>> "AgreementType" returned no table
>> 20:48:15,155 [Schema                        ] Creating table "AgreementType"
>> 20:48:15,155 [Schema                        ] CREATE TABLE "AgreementType"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "title" NVARCHAR(50) NOT NULL,
>>    CONSTRAINT "AgreementType_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,156 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,158 [Schema                        ] Check of existence of
>> "Occupancy" returned no table
>> 20:48:15,158 [Schema                        ] Creating table "Occupancy"
>> 20:48:15,158 [Schema                        ] CREATE TABLE "Occupancy"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "activityId" BIGINT NULL,
>>    "brandId" BIGINT NULL,
>>    "endDate" DATE NULL,
>>    "leaseId" BIGINT NOT NULL,
>>    "reportOCR" NVARCHAR(30) NOT NULL,
>>    "reportRent" NVARCHAR(30) NOT NULL,
>>    "reportTurnover" NVARCHAR(30) NOT NULL,
>>    "sectorId" BIGINT NULL,
>>    "startDate" DATE NULL,
>>    "unitId" BIGINT NOT NULL,
>>    "unitSizeId" BIGINT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Occupancy_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,160 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,161 [Schema                        ] Check of existence of
>> "IndexBase" returned no table
>> 20:48:15,161 [Schema                        ] Creating table "IndexBase"
>> 20:48:15,161 [Schema                        ] CREATE TABLE "IndexBase"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "factor" DECIMAL(19,4) NULL,
>>    "indexId" BIGINT NOT NULL,
>>    "nextIndexBaseId" BIGINT NULL,
>>    "startDate" DATE NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "IndexBase_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,162 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,164 [Schema                        ] Check of existence of "Index"
>> returned no table
>> 20:48:15,164 [Schema                        ] Creating table "Index"
>> 20:48:15,164 [Schema                        ] CREATE TABLE "Index"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "reference" NVARCHAR(24) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Index_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,165 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,167 [Schema                        ] Check of existence of
>> "AgreementRole" returned no table
>> 20:48:15,167 [Schema                        ] Creating table "AgreementRole"
>> 20:48:15,167 [Schema                        ] CREATE TABLE "AgreementRole"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "agreementId" BIGINT NOT NULL,
>>    "endDate" DATE NULL,
>>    "partyId" BIGINT NOT NULL,
>>    "startDate" DATE NULL,
>>    "typeId" BIGINT NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "AgreementRole_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,168 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,170 [Schema                        ] Check of existence of
>> "Sector" returned no table
>> 20:48:15,170 [Schema                        ] Creating table "Sector"
>> 20:48:15,170 [Schema                        ] CREATE TABLE "Sector"
>> (
>>    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>>    "name" NVARCHAR(50) NOT NULL,
>>    "version" BIGINT NOT NULL,
>>    CONSTRAINT "Sector_PK" PRIMARY KEY ("id")
>> )
>> 20:48:15,171 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,176 [Schema                        ] Creating foreign key
>> constraint : "CommunicationChannel_FK2" in catalog "" schema ""
>> 20:48:15,176 [Schema                        ] ALTER TABLE
>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK2" FOREIGN
>> KEY ("stateId") REFERENCES "State" ("id")
>> 20:48:15,178 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,178 [Schema                        ] Creating foreign key
>> constraint : "CommunicationChannel_FK1" in catalog "" schema ""
>> 20:48:15,178 [Schema                        ] ALTER TABLE
>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK1" FOREIGN
>> KEY ("countryId") REFERENCES "Country" ("id")
>> 20:48:15,180 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,180 [Schema                        ] Creating foreign key
>> constraint : "CommunicationChannel_FK4" in catalog "" schema ""
>> 20:48:15,180 [Schema                        ] ALTER TABLE
>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK4" FOREIGN
>> KEY ("ownerPersonId") REFERENCES "Person" ("id")
>> 20:48:15,181 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,181 [Schema                        ] Creating foreign key
>> constraint : "CommunicationChannel_FK3" in catalog "" schema ""
>> 20:48:15,181 [Schema                        ] ALTER TABLE
>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK3" FOREIGN
>> KEY ("ownerOrganisationId") REFERENCES "Organisation" ("id")
>> 20:48:15,182 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,182 [Schema                        ] Creating foreign key
>> constraint : "CommunicationChannel_FK6" in catalog "" schema ""
>> 20:48:15,182 [Schema                        ] ALTER TABLE
>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK6" FOREIGN
>> KEY ("ownerUnitId") REFERENCES "Unit" ("id")
>> 20:48:15,183 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,183 [Schema                        ] Creating foreign key
>> constraint : "CommunicationChannel_FK5" in catalog "" schema ""
>> 20:48:15,183 [Schema                        ] ALTER TABLE
>> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK5" FOREIGN
>> KEY ("ownerPropertyId") REFERENCES "Property" ("id")
>> 20:48:15,184 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,186 [Schema                        ] Creating index
>> "CommunicationChannel_N53" in catalog "" schema ""
>> 20:48:15,186 [Schema                        ] CREATE INDEX
>> "CommunicationChannel_N53" ON "CommunicationChannel" ("countryId")
>> 20:48:15,187 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,187 [Schema                        ] Creating index
>> "CommunicationChannel_N54" in catalog "" schema ""
>> 20:48:15,187 [Schema                        ] CREATE INDEX
>> "CommunicationChannel_N54" ON "CommunicationChannel" ("ownerUnitId")
>> 20:48:15,187 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,187 [Schema                        ] Creating index
>> "CommunicationChannel_N51" in catalog "" schema ""
>> 20:48:15,187 [Schema                        ] CREATE INDEX
>> "CommunicationChannel_N51" ON "CommunicationChannel" ("ownerPropertyId")
>> 20:48:15,187 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,187 [Schema                        ] Creating index
>> "CommunicationChannel_N52" in catalog "" schema ""
>> 20:48:15,187 [Schema                        ] CREATE INDEX
>> "CommunicationChannel_N52" ON "CommunicationChannel" ("stateId")
>> 20:48:15,188 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,188 [Schema                        ] Creating index
>> "PhoneNumber_phoneNumber_IDX" in catalog "" schema ""
>> 20:48:15,188 [Schema                        ] CREATE INDEX
>> "PhoneNumber_phoneNumber_IDX" ON "CommunicationChannel" ("phoneNumber")
>> 20:48:15,188 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,188 [Schema                        ] Creating index
>> "PostalAddress_main_idx" in catalog "" schema ""
>> 20:48:15,188 [Schema                        ] CREATE INDEX
>> "PostalAddress_main_idx" ON "CommunicationChannel"
>> ("ownerOrganisationId","ownerPersonId","ownerPropertyId","ownerUnitId","address1","postalCode","city","countryId")
>> 20:48:15,188 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,188 [Schema                        ] Creating index
>> "CommunicationChannel_N49" in catalog "" schema ""
>> 20:48:15,188 [Schema                        ] CREATE INDEX
>> "CommunicationChannel_N49" ON "CommunicationChannel" ("ownerOrganisationId")
>> 20:48:15,189 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,189 [Schema                        ] Creating index
>> "CommunicationChannel_N50" in catalog "" schema ""
>> 20:48:15,189 [Schema                        ] CREATE INDEX
>> "CommunicationChannel_N50" ON "CommunicationChannel" ("ownerPersonId")
>> 20:48:15,189 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,189 [Schema                        ] Creating index
>> "EmailAddress_emailAddress_IDX" in catalog "" schema ""
>> 20:48:15,189 [Schema                        ] CREATE INDEX
>> "EmailAddress_emailAddress_IDX" ON "CommunicationChannel" ("emailAddress")
>> 20:48:15,190 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,190 [Schema                        ] Creating foreign key
>> constraint : "LeaseTerm_FK2" in catalog "" schema ""
>> 20:48:15,190 [Schema                        ] ALTER TABLE "LeaseTerm" ADD
>> CONSTRAINT "LeaseTerm_FK2" FOREIGN KEY ("indexId") REFERENCES "Index"
>> ("id")
>> 20:48:15,192 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,192 [Schema                        ] Creating foreign key
>> constraint : "LeaseTerm_FK3" in catalog "" schema ""
>> 20:48:15,192 [Schema                        ] ALTER TABLE "LeaseTerm" ADD
>> CONSTRAINT "LeaseTerm_FK3" FOREIGN KEY ("nextLeaseTermId") REFERENCES
>> "LeaseTerm" ("id")
>> 20:48:15,194 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,194 [Schema                        ] Creating foreign key
>> constraint : "LeaseTerm_FK1" in catalog "" schema ""
>> 20:48:15,194 [Schema                        ] ALTER TABLE "LeaseTerm" ADD
>> CONSTRAINT "LeaseTerm_FK1" FOREIGN KEY ("leaseItemId") REFERENCES
>> "LeaseItem" ("id")
>> 20:48:15,195 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,196 [Schema                        ] Creating index
>> "LeaseTerm_N50" in catalog "" schema ""
>> 20:48:15,196 [Schema                        ] CREATE INDEX "LeaseTerm_N50"
>> ON "LeaseTerm" ("indexId")
>> 20:48:15,196 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,196 [Schema                        ] Creating index
>> "LeaseTerm_leaseItem_startDate_IDX" in catalog "" schema ""
>> 20:48:15,196 [Schema                        ] CREATE INDEX
>> "LeaseTerm_leaseItem_startDate_IDX" ON "LeaseTerm"
>> ("leaseItemId","startDate")
>> 20:48:15,196 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,196 [Schema                        ] Creating index
>> "LeaseTerm_N51" in catalog "" schema ""
>> 20:48:15,196 [Schema                        ] CREATE INDEX "LeaseTerm_N51"
>> ON "LeaseTerm" ("leaseItemId")
>> 20:48:15,197 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,197 [Schema                        ] Creating index
>> "LeaseTerm_N49" in catalog "" schema ""
>> 20:48:15,197 [Schema                        ] CREATE INDEX "LeaseTerm_N49"
>> ON "LeaseTerm" ("nextLeaseTermId")
>> 20:48:15,197 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,197 [Schema                        ] Creating index
>> "LeaseTerm_leaseItem_sequence_IDX" in catalog "" schema ""
>> 20:48:15,197 [Schema                        ] CREATE INDEX
>> "LeaseTerm_leaseItem_sequence_IDX" ON "LeaseTerm" ("leaseItemId","sequence")
>> 20:48:15,197 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,198 [Schema                        ] Creating foreign key
>> constraint : "Unit_FK1" in catalog "" schema ""
>> 20:48:15,198 [Schema                        ] ALTER TABLE "Unit" ADD
>> CONSTRAINT "Unit_FK1" FOREIGN KEY ("id") REFERENCES "FixedAsset" ("id")
>> 20:48:15,199 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,199 [Schema                        ] Creating foreign key
>> constraint : "Unit_FK2" in catalog "" schema ""
>> 20:48:15,199 [Schema                        ] ALTER TABLE "Unit" ADD
>> CONSTRAINT "Unit_FK2" FOREIGN KEY ("propertyId") REFERENCES "Property"
>> ("id")
>> 20:48:15,200 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,200 [Schema                        ] Creating index "Unit_N49" in
>> catalog "" schema ""
>> 20:48:15,200 [Schema                        ] CREATE INDEX "Unit_N49" ON
>> "Unit" ("propertyId")
>> 20:48:15,200 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,200 [Schema                        ] Unique metadata defined to
>> use field notificationDate which doesn't exist in this class
>> 20:48:15,200 [Schema                        ] Creating foreign key
>> constraint : "BreakOption_FK1" in catalog "" schema ""
>> 20:48:15,200 [Schema                        ] ALTER TABLE "BreakOption" ADD
>> CONSTRAINT "BreakOption_FK1" FOREIGN KEY ("leaseId") REFERENCES "Lease"
>> ("id")
>> 20:48:15,202 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,202 [Schema                        ] Creating index
>> "BreakOption_N49" in catalog "" schema ""
>> 20:48:15,202 [Schema                        ] CREATE INDEX
>> "BreakOption_N49" ON "BreakOption" ("leaseId")
>> 20:48:15,203 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,203 [Schema                        ] Creating foreign key
>> constraint : "InvoiceItem_FK4" in catalog "" schema ""
>> 20:48:15,203 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
>> CONSTRAINT "InvoiceItem_FK4" FOREIGN KEY ("invoiceId") REFERENCES "Invoice"
>> ("id")
>> 20:48:15,204 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,204 [Schema                        ] Creating foreign key
>> constraint : "InvoiceItem_FK3" in catalog "" schema ""
>> 20:48:15,204 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
>> CONSTRAINT "InvoiceItem_FK3" FOREIGN KEY ("leaseTermId") REFERENCES
>> "LeaseTerm" ("id")
>> 20:48:15,205 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,205 [Schema                        ] Creating foreign key
>> constraint : "InvoiceItem_FK2" in catalog "" schema ""
>> 20:48:15,205 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
>> CONSTRAINT "InvoiceItem_FK2" FOREIGN KEY ("chargeId") REFERENCES "Charge"
>> ("id")
>> 20:48:15,206 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,206 [Schema                        ] Creating foreign key
>> constraint : "InvoiceItem_FK1" in catalog "" schema ""
>> 20:48:15,206 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
>> CONSTRAINT "InvoiceItem_FK1" FOREIGN KEY ("taxId") REFERENCES "Tax" ("id")
>> 20:48:15,207 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,208 [Schema                        ] Creating index
>> "InvoiceItem_N51" in catalog "" schema ""
>> 20:48:15,208 [Schema                        ] CREATE INDEX
>> "InvoiceItem_N51" ON "InvoiceItem" ("taxId")
>> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,208 [Schema                        ] Creating index
>> "InvoiceItem_N50" in catalog "" schema ""
>> 20:48:15,208 [Schema                        ] CREATE INDEX
>> "InvoiceItem_N50" ON "InvoiceItem" ("invoiceId")
>> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,208 [Schema                        ] Creating index
>> "InvoiceItem_N52" in catalog "" schema ""
>> 20:48:15,208 [Schema                        ] CREATE INDEX
>> "InvoiceItem_N52" ON "InvoiceItem" ("leaseTermId")
>> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,208 [Schema                        ] Creating index
>> "InvoiceItemForLease_LeaseTerm_StartDate_EndDate_DueDate_IDX" in catalog ""
>> schema ""
>> 20:48:15,208 [Schema                        ] CREATE INDEX
>> "InvoiceItemForLease_LeaseTerm_StartDate_EndDate_DueDate_IDX" ON
>> "InvoiceItem" ("leaseTermId","startDate","endDate","dueDate")
>> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,208 [Schema                        ] Creating index
>> "InvoiceItem_N49" in catalog "" schema ""
>> 20:48:15,208 [Schema                        ] CREATE INDEX
>> "InvoiceItem_N49" ON "InvoiceItem" ("chargeId")
>> 20:48:15,209 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,209 [Schema                        ] Creating candidate key
>> "Brand_name_UNQ" in catalog "" schema ""
>> 20:48:15,209 [Schema                        ] ALTER TABLE "Brand" ADD
>> CONSTRAINT "Brand_name_UNQ" UNIQUE ("name")
>> 20:48:15,209 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,209 [Schema                        ] Creating foreign key
>> constraint : "FixedAssetRole_FK1" in catalog "" schema ""
>> 20:48:15,209 [Schema                        ] ALTER TABLE "FixedAssetRole"
>> ADD CONSTRAINT "FixedAssetRole_FK1" FOREIGN KEY ("assetId") REFERENCES
>> "FixedAsset" ("id")
>> 20:48:15,210 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,210 [Schema                        ] Creating foreign key
>> constraint : "FixedAssetRole_FK2" in catalog "" schema ""
>> 20:48:15,210 [Schema                        ] ALTER TABLE "FixedAssetRole"
>> ADD CONSTRAINT "FixedAssetRole_FK2" FOREIGN KEY ("partyId") REFERENCES
>> "Party" ("id")
>> 20:48:15,211 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,211 [Schema                        ] Creating index
>> "FixedAssetRole_N50" in catalog "" schema ""
>> 20:48:15,211 [Schema                        ] CREATE INDEX
>> "FixedAssetRole_N50" ON "FixedAssetRole" ("assetId")
>> 20:48:15,211 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,212 [Schema                        ] Creating index
>> "FixedAssetRole_N49" in catalog "" schema ""
>> 20:48:15,212 [Schema                        ] CREATE INDEX
>> "FixedAssetRole_N49" ON "FixedAssetRole" ("partyId")
>> 20:48:15,212 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,212 [Schema                        ] Creating candidate key
>> "Agreement_reference_UNQ" in catalog "" schema ""
>> 20:48:15,212 [Schema                        ] ALTER TABLE "Agreement" ADD
>> CONSTRAINT "Agreement_reference_UNQ" UNIQUE ("reference")
>> 20:48:15,213 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,213 [Schema                        ] Creating foreign key
>> constraint : "Agreement_FK1" in catalog "" schema ""
>> 20:48:15,213 [Schema                        ] ALTER TABLE "Agreement" ADD
>> CONSTRAINT "Agreement_FK1" FOREIGN KEY ("typeId") REFERENCES
>> "AgreementType" ("id")
>> 20:48:15,214 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,214 [Schema                        ] Creating foreign key
>> constraint : "Agreement_FK2" in catalog "" schema ""
>> 20:48:15,214 [Schema                        ] ALTER TABLE "Agreement" ADD
>> CONSTRAINT "Agreement_FK2" FOREIGN KEY ("nextAgreementId") REFERENCES
>> "Agreement" ("id")
>> 20:48:15,214 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,215 [Schema                        ] Creating index
>> "Lease_reference_name_IDX" in catalog "" schema ""
>> 20:48:15,215 [Schema                        ] CREATE INDEX
>> "Lease_reference_name_IDX" ON "Agreement" ("reference","name")
>> 20:48:15,215 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,215 [Schema                        ] Creating index
>> "Agreement_N50" in catalog "" schema ""
>> 20:48:15,215 [Schema                        ] CREATE INDEX "Agreement_N50"
>> ON "Agreement" ("typeId")
>> 20:48:15,215 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,215 [Schema                        ] Creating index
>> "Agreement_N49" in catalog "" schema ""
>> 20:48:15,215 [Schema                        ] CREATE INDEX "Agreement_N49"
>> ON "Agreement" ("nextAgreementId")
>> 20:48:15,215 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,215 [Schema                        ] Creating foreign key
>> constraint : "BankMandate_FK1" in catalog "" schema ""
>> 20:48:15,215 [Schema                        ] ALTER TABLE "BankMandate" ADD
>> CONSTRAINT "BankMandate_FK1" FOREIGN KEY ("id") REFERENCES "Agreement"
>> ("id")
>> 20:48:15,216 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,216 [Schema                        ] Creating foreign key
>> constraint : "BankMandate_FK2" in catalog "" schema ""
>> 20:48:15,216 [Schema                        ] ALTER TABLE "BankMandate" ADD
>> CONSTRAINT "BankMandate_FK2" FOREIGN KEY ("bankAccountId") REFERENCES
>> "FinancialAccount" ("id")
>> 20:48:15,216 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,217 [Schema                        ] Creating index
>> "BankMandate_N49" in catalog "" schema ""
>> 20:48:15,217 [Schema                        ] CREATE INDEX
>> "BankMandate_N49" ON "BankMandate" ("bankAccountId")
>> 20:48:15,217 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,217 [Schema                        ] Creating foreign key
>> constraint : "Event_FK1" in catalog "" schema ""
>> 20:48:15,217 [Schema                        ] ALTER TABLE "Event" ADD
>> CONSTRAINT "Event_FK1" FOREIGN KEY ("subjectBreakOptionId") REFERENCES
>> "BreakOption" ("id")
>> 20:48:15,218 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,218 [Schema                        ] Creating index "Event_N49" in
>> catalog "" schema ""
>> 20:48:15,218 [Schema                        ] CREATE INDEX "Event_N49" ON
>> "Event" ("subjectBreakOptionId")
>> 20:48:15,218 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,218 [Schema                        ] Creating candidate key
>> "ChargeGroup_reference_UNQ" in catalog "" schema ""
>> 20:48:15,218 [Schema                        ] ALTER TABLE "ChargeGroup" ADD
>> CONSTRAINT "ChargeGroup_reference_UNQ" UNIQUE ("reference")
>> 20:48:15,219 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,219 [Schema                        ] Creating candidate key
>> "Currency_reference_UNQ" in catalog "" schema ""
>> 20:48:15,219 [Schema                        ] ALTER TABLE "Currency" ADD
>> CONSTRAINT "Currency_reference_UNQ" UNIQUE ("reference")
>> 20:48:15,219 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,220 [Schema                        ] Creating candidate key
>> "Currency_name_UNQ" in catalog "" schema ""
>> 20:48:15,220 [Schema                        ] ALTER TABLE "Currency" ADD
>> CONSTRAINT "Currency_name_UNQ" UNIQUE ("name")
>> 20:48:15,221 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,221 [Schema                        ] Creating foreign key
>> constraint : "TaxRate_FK1" in catalog "" schema ""
>> 20:48:15,221 [Schema                        ] ALTER TABLE "TaxRate" ADD
>> CONSTRAINT "TaxRate_FK1" FOREIGN KEY ("taxId") REFERENCES "Tax" ("id")
>> 20:48:15,222 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,222 [Schema                        ] Creating foreign key
>> constraint : "TaxRate_FK2" in catalog "" schema ""
>> 20:48:15,222 [Schema                        ] ALTER TABLE "TaxRate" ADD
>> CONSTRAINT "TaxRate_FK2" FOREIGN KEY ("nextTaxRateId") REFERENCES "TaxRate"
>> ("id")
>> 20:48:15,223 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,223 [Schema                        ] Creating index "TaxRate_N49"
>> in catalog "" schema ""
>> 20:48:15,223 [Schema                        ] CREATE INDEX "TaxRate_N49" ON
>> "TaxRate" ("nextTaxRateId")
>> 20:48:15,223 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,223 [Schema                        ] Creating index "TaxRate_N50"
>> in catalog "" schema ""
>> 20:48:15,223 [Schema                        ] CREATE INDEX "TaxRate_N50" ON
>> "TaxRate" ("taxId")
>> 20:48:15,223 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,223 [Schema                        ] Creating foreign key
>> constraint : "PartyRegistration_FK1" in catalog "" schema ""
>> 20:48:15,224 [Schema                        ] ALTER TABLE
>> "PartyRegistration" ADD CONSTRAINT "PartyRegistration_FK1" FOREIGN KEY
>> ("partyId") REFERENCES "Party" ("id")
>> 20:48:15,225 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,225 [Schema                        ] Creating index
>> "PartyRegistration_N49" in catalog "" schema ""
>> 20:48:15,225 [Schema                        ] CREATE INDEX
>> "PartyRegistration_N49" ON "PartyRegistration" ("partyId")
>> 20:48:15,225 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,225 [Schema                        ] Creating foreign key
>> constraint : "AgreementRoleType_FK1" in catalog "" schema ""
>> 20:48:15,225 [Schema                        ] ALTER TABLE
>> "AgreementRoleType" ADD CONSTRAINT "AgreementRoleType_FK1" FOREIGN KEY
>> ("appliesToAgreementTypeId") REFERENCES "AgreementType" ("id")
>> 20:48:15,226 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,226 [Schema                        ] Creating index
>> "AgreementRoleType_N49" in catalog "" schema ""
>> 20:48:15,226 [Schema                        ] CREATE INDEX
>> "AgreementRoleType_N49" ON "AgreementRoleType" ("appliesToAgreementTypeId")
>> 20:48:15,227 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,227 [Schema                        ] Creating candidate key
>> "FinancialAccount_reference_UNQ" in catalog "" schema ""
>> 20:48:15,227 [Schema                        ] ALTER TABLE
>> "FinancialAccount" ADD CONSTRAINT "FinancialAccount_reference_UNQ" UNIQUE
>> ("reference")
>> 20:48:15,228 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,229 [Schema                        ] Creating foreign key
>> constraint : "FinancialAccount_FK1" in catalog "" schema ""
>> 20:48:15,229 [Schema                        ] ALTER TABLE
>> "FinancialAccount" ADD CONSTRAINT "FinancialAccount_FK1" FOREIGN KEY
>> ("ownerPartyId") REFERENCES "Party" ("id")
>> 20:48:15,231 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,231 [Schema                        ] Creating index
>> "FinancialAccount_N49" in catalog "" schema ""
>> 20:48:15,231 [Schema                        ] CREATE INDEX
>> "FinancialAccount_N49" ON "FinancialAccount" ("ownerPartyId")
>> 20:48:15,231 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,232 [Schema                        ] Creating foreign key
>> constraint : "BankAccount_FK1" in catalog "" schema ""
>> 20:48:15,232 [Schema                        ] ALTER TABLE "BankAccount" ADD
>> CONSTRAINT "BankAccount_FK1" FOREIGN KEY ("id") REFERENCES
>> "FinancialAccount" ("id")
>> 20:48:15,232 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,232 [Schema                        ] Creating foreign key
>> constraint : "BankAccount_FK2" in catalog "" schema ""
>> 20:48:15,232 [Schema                        ] ALTER TABLE "BankAccount" ADD
>> CONSTRAINT "BankAccount_FK2" FOREIGN KEY ("countryId") REFERENCES "Country"
>> ("id")
>> 20:48:15,233 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,233 [Schema                        ] Creating foreign key
>> constraint : "BankAccount_FK3" in catalog "" schema ""
>> 20:48:15,233 [Schema                        ] ALTER TABLE "BankAccount" ADD
>> CONSTRAINT "BankAccount_FK3" FOREIGN KEY ("fixedAssetId") REFERENCES
>> "Property" ("id")
>> 20:48:15,234 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,234 [Schema                        ] Creating foreign key
>> constraint : "BankAccount_FK4" in catalog "" schema ""
>> 20:48:15,234 [Schema                        ] ALTER TABLE "BankAccount" ADD
>> CONSTRAINT "BankAccount_FK4" FOREIGN KEY ("bankPartyId") REFERENCES "Party"
>> ("id")
>> 20:48:15,234 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,235 [Schema                        ] Creating index
>> "BankAccount_N51" in catalog "" schema ""
>> 20:48:15,235 [Schema                        ] CREATE INDEX
>> "BankAccount_N51" ON "BankAccount" ("fixedAssetId")
>> 20:48:15,235 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,235 [Schema                        ] Creating index
>> "BankAccount_N50" in catalog "" schema ""
>> 20:48:15,235 [Schema                        ] CREATE INDEX
>> "BankAccount_N50" ON "BankAccount" ("bankPartyId")
>> 20:48:15,235 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,235 [Schema                        ] Creating index
>> "BankAccount_N49" in catalog "" schema ""
>> 20:48:15,235 [Schema                        ] CREATE INDEX
>> "BankAccount_N49" ON "BankAccount" ("countryId")
>> 20:48:15,235 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,235 [Schema                        ] Creating candidate key
>> "UnitSize_name_UNQ" in catalog "" schema ""
>> 20:48:15,235 [Schema                        ] ALTER TABLE "UnitSize" ADD
>> CONSTRAINT "UnitSize_name_UNQ" UNIQUE ("name")
>> 20:48:15,236 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,236 [Schema                        ] Creating candidate key
>> "FixedAsset_reference_UNQ" in catalog "" schema ""
>> 20:48:15,236 [Schema                        ] ALTER TABLE "FixedAsset" ADD
>> CONSTRAINT "FixedAsset_reference_UNQ" UNIQUE ("reference")
>> 20:48:15,237 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,237 [Schema                        ] Creating index
>> "FixedAsset_reference_name_IDX" in catalog "" schema ""
>> 20:48:15,237 [Schema                        ] CREATE INDEX
>> "FixedAsset_reference_name_IDX" ON "FixedAsset" ("reference","name")
>> 20:48:15,237 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,237 [Schema                        ] Creating foreign key
>> constraint : "Property_FK2" in catalog "" schema ""
>> 20:48:15,237 [Schema                        ] ALTER TABLE "Property" ADD
>> CONSTRAINT "Property_FK2" FOREIGN KEY ("countryId") REFERENCES "Country"
>> ("id")
>> 20:48:15,238 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,238 [Schema                        ] Creating foreign key
>> constraint : "Property_FK1" in catalog "" schema ""
>> 20:48:15,238 [Schema                        ] ALTER TABLE "Property" ADD
>> CONSTRAINT "Property_FK1" FOREIGN KEY ("id") REFERENCES "FixedAsset" ("id")
>> 20:48:15,238 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,238 [Schema                        ] Creating index "Property_N49"
>> in catalog "" schema ""
>> 20:48:15,238 [Schema                        ] CREATE INDEX "Property_N49"
>> ON "Property" ("countryId")
>> 20:48:15,239 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,239 [Schema                        ] Creating foreign key
>> constraint : "LeaseAssignment_FK2" in catalog "" schema ""
>> 20:48:15,239 [Schema                        ] ALTER TABLE "LeaseAssignment"
>> ADD CONSTRAINT "LeaseAssignment_FK2" FOREIGN KEY ("previousLeaseId")
>> REFERENCES "Lease" ("id")
>> 20:48:15,239 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,239 [Schema                        ] Creating foreign key
>> constraint : "LeaseAssignment_FK1" in catalog "" schema ""
>> 20:48:15,239 [Schema                        ] ALTER TABLE "LeaseAssignment"
>> ADD CONSTRAINT "LeaseAssignment_FK1" FOREIGN KEY ("nextLeaseId") REFERENCES
>> "Lease" ("id")
>> 20:48:15,240 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,240 [Schema                        ] Creating index
>> "LeaseAssignment_N49" in catalog "" schema ""
>> 20:48:15,240 [Schema                        ] CREATE INDEX
>> "LeaseAssignment_N49" ON "LeaseAssignment" ("previousLeaseId")
>> 20:48:15,241 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,241 [Schema                        ] Creating index
>> "LeaseAssignment_N50" in catalog "" schema ""
>> 20:48:15,241 [Schema                        ] CREATE INDEX
>> "LeaseAssignment_N50" ON "LeaseAssignment" ("nextLeaseId")
>> 20:48:15,241 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,241 [Schema                        ] Creating candidate key
>> "Geography_reference_UNQ" in catalog "" schema ""
>> 20:48:15,241 [Schema                        ] ALTER TABLE "State" ADD
>> CONSTRAINT "Geography_reference_UNQ" UNIQUE ("reference")
>> 20:48:15,242 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,242 [Schema                        ] Creating candidate key
>> "Geography_name_UNQ" in catalog "" schema ""
>> 20:48:15,242 [Schema                        ] ALTER TABLE "State" ADD
>> CONSTRAINT "Geography_name_UNQ" UNIQUE ("name")
>> 20:48:15,243 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,243 [Schema                        ] Creating foreign key
>> constraint : "State_FK1" in catalog "" schema ""
>> 20:48:15,243 [Schema                        ] ALTER TABLE "State" ADD
>> CONSTRAINT "State_FK1" FOREIGN KEY ("countryId") REFERENCES "Country"
>> ("id")
>> 20:48:15,243 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,244 [Schema                        ] Creating index "State_N49" in
>> catalog "" schema ""
>> 20:48:15,244 [Schema                        ] CREATE INDEX "State_N49" ON
>> "State" ("countryId")
>> 20:48:15,244 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,244 [Schema                        ] Creating foreign key
>> constraint : "LeaseStatusReason_FK1" in catalog "" schema ""
>> 20:48:15,244 [Schema                        ] ALTER TABLE
>> "LeaseStatusReason" ADD CONSTRAINT "LeaseStatusReason_FK1" FOREIGN KEY
>> ("leaseId") REFERENCES "Lease" ("id")
>> 20:48:15,245 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,245 [Schema                        ] Creating index
>> "LeaseStatusReason_N49" in catalog "" schema ""
>> 20:48:15,245 [Schema                        ] CREATE INDEX
>> "LeaseStatusReason_N49" ON "LeaseStatusReason" ("leaseId")
>> 20:48:15,245 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,246 [Schema                        ] Creating candidate key
>> "Activity_sector_name_UNQ" in catalog "" schema ""
>> 20:48:15,246 [Schema                        ] ALTER TABLE "Activity" ADD
>> CONSTRAINT "Activity_sector_name_UNQ" UNIQUE ("sectorId","name")
>> 20:48:15,246 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,246 [Schema                        ] Creating foreign key
>> constraint : "Activity_FK1" in catalog "" schema ""
>> 20:48:15,246 [Schema                        ] ALTER TABLE "Activity" ADD
>> CONSTRAINT "Activity_FK1" FOREIGN KEY ("sectorId") REFERENCES "Sector"
>> ("id")
>> 20:48:15,247 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,247 [Schema                        ] Creating index "Activity_N49"
>> in catalog "" schema ""
>> 20:48:15,247 [Schema                        ] CREATE INDEX "Activity_N49"
>> ON "Activity" ("sectorId")
>> 20:48:15,248 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,248 [Schema                        ] Creating candidate key
>> "Party_reference_UNQ" in catalog "" schema ""
>> 20:48:15,248 [Schema                        ] ALTER TABLE "Party" ADD
>> CONSTRAINT "Party_reference_UNQ" UNIQUE ("reference")
>> 20:48:15,248 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,249 [Schema                        ] Creating index
>> "Party_reference_name_IDX" in catalog "" schema ""
>> 20:48:15,249 [Schema                        ] CREATE INDEX
>> "Party_reference_name_IDX" ON "Party" ("reference","name")
>> 20:48:15,249 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,249 [Schema                        ] Creating foreign key
>> constraint : "Organisation_FK1" in catalog "" schema ""
>> 20:48:15,249 [Schema                        ] ALTER TABLE "Organisation"
>> ADD CONSTRAINT "Organisation_FK1" FOREIGN KEY ("id") REFERENCES "Party"
>> ("id")
>> 20:48:15,249 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,250 [Schema                        ] Creating candidate key
>> "FixedAssetRegistrationType_title_UNQ" in catalog "" schema ""
>> 20:48:15,250 [Schema                        ] ALTER TABLE
>> "FixedAssetRegistrationType" ADD CONSTRAINT
>> "FixedAssetRegistrationType_title_UNQ" UNIQUE ("title")
>> 20:48:15,250 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,250 [Schema                        ] Creating foreign key
>> constraint : "FixedAssetRegistration_FK2" in catalog "" schema ""
>> 20:48:15,250 [Schema                        ] ALTER TABLE
>> "FixedAssetRegistration" ADD CONSTRAINT "FixedAssetRegistration_FK2"
>> FOREIGN KEY ("subjectId") REFERENCES "FixedAsset" ("id")
>> 20:48:15,251 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,251 [Schema                        ] Creating foreign key
>> constraint : "FixedAssetRegistration_FK1" in catalog "" schema ""
>> 20:48:15,251 [Schema                        ] ALTER TABLE
>> "FixedAssetRegistration" ADD CONSTRAINT "FixedAssetRegistration_FK1"
>> FOREIGN KEY ("typeId") REFERENCES "FixedAssetRegistrationType" ("id")
>> 20:48:15,252 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,252 [Schema                        ] Creating index
>> "FixedAssetRegistration_N49" in catalog "" schema ""
>> 20:48:15,252 [Schema                        ] CREATE INDEX
>> "FixedAssetRegistration_N49" ON "FixedAssetRegistration" ("subjectId")
>> 20:48:15,252 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,252 [Schema                        ] Creating index
>> "FixedAssetRegistration_N50" in catalog "" schema ""
>> 20:48:15,252 [Schema                        ] CREATE INDEX
>> "FixedAssetRegistration_N50" ON "FixedAssetRegistration" ("typeId")
>> 20:48:15,252 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,253 [Schema                        ] Creating foreign key
>> constraint : "LandRegister_FK1" in catalog "" schema ""
>> 20:48:15,253 [Schema                        ] ALTER TABLE "LandRegister"
>> ADD CONSTRAINT "LandRegister_FK1" FOREIGN KEY ("id") REFERENCES
>> "FixedAssetRegistration" ("id")
>> 20:48:15,253 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,253 [Schema                        ] Creating candidate key
>> "Tag_taggable_name_UNQ" in catalog "" schema ""
>> 20:48:15,253 [Schema                        ] ALTER TABLE "Tag" ADD
>> CONSTRAINT "Tag_taggable_name_UNQ" UNIQUE
>> ("taggable_Occupancy_id_EID","name")
>> 20:48:15,254 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,254 [Schema                        ] Creating foreign key
>> constraint : "Tag_FK1" in catalog "" schema ""
>> 20:48:15,254 [Schema                        ] ALTER TABLE "Tag" ADD
>> CONSTRAINT "Tag_FK1" FOREIGN KEY ("taggable_Occupancy_id_EID") REFERENCES
>> "Occupancy" ("id")
>> 20:48:15,255 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,255 [Schema                        ] Creating index "Tag_N49" in
>> catalog "" schema ""
>> 20:48:15,255 [Schema                        ] CREATE INDEX "Tag_N49" ON
>> "Tag" ("taggable_Occupancy_id_EID")
>> 20:48:15,255 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,255 [Schema                        ] Creating candidate key
>> "Charge_reference_UNQ" in catalog "" schema ""
>> 20:48:15,255 [Schema                        ] ALTER TABLE "Charge" ADD
>> CONSTRAINT "Charge_reference_UNQ" UNIQUE ("reference")
>> 20:48:15,256 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,256 [Schema                        ] Creating candidate key
>> "Charge_name_UNQ" in catalog "" schema ""
>> 20:48:15,256 [Schema                        ] ALTER TABLE "Charge" ADD
>> CONSTRAINT "Charge_name_UNQ" UNIQUE ("name")
>> 20:48:15,257 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,257 [Schema                        ] Creating foreign key
>> constraint : "Charge_FK2" in catalog "" schema ""
>> 20:48:15,257 [Schema                        ] ALTER TABLE "Charge" ADD
>> CONSTRAINT "Charge_FK2" FOREIGN KEY ("taxId") REFERENCES "Tax" ("id")
>> 20:48:15,258 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,258 [Schema                        ] Creating foreign key
>> constraint : "Charge_FK1" in catalog "" schema ""
>> 20:48:15,258 [Schema                        ] ALTER TABLE "Charge" ADD
>> CONSTRAINT "Charge_FK1" FOREIGN KEY ("groupId") REFERENCES "ChargeGroup"
>> ("id")
>> 20:48:15,259 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,259 [Schema                        ] Creating index "Charge_N50"
>> in catalog "" schema ""
>> 20:48:15,259 [Schema                        ] CREATE INDEX "Charge_N50" ON
>> "Charge" ("groupId")
>> 20:48:15,259 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,259 [Schema                        ] Creating index "Charge_N49"
>> in catalog "" schema ""
>> 20:48:15,259 [Schema                        ] CREATE INDEX "Charge_N49" ON
>> "Charge" ("taxId")
>> 20:48:15,260 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,260 [Schema                        ] Creating foreign key
>> constraint : "IndexValue_FK1" in catalog "" schema ""
>> 20:48:15,260 [Schema                        ] ALTER TABLE "IndexValue" ADD
>> CONSTRAINT "IndexValue_FK1" FOREIGN KEY ("indexBaseId") REFERENCES
>> "IndexBase" ("id")
>> 20:48:15,260 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,261 [Schema                        ] Creating index
>> "IndexValue_N49" in catalog "" schema ""
>> 20:48:15,261 [Schema                        ] CREATE INDEX "IndexValue_N49"
>> ON "IndexValue" ("indexBaseId")
>> 20:48:15,261 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,261 [Schema                        ] Creating candidate key
>> "Tax_reference_UNQ" in catalog "" schema ""
>> 20:48:15,261 [Schema                        ] ALTER TABLE "Tax" ADD
>> CONSTRAINT "Tax_reference_UNQ" UNIQUE ("reference")
>> 20:48:15,261 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,262 [Schema                        ] Creating foreign key
>> constraint : "Invoice_FK4" in catalog "" schema ""
>> 20:48:15,262 [Schema                        ] ALTER TABLE "Invoice" ADD
>> CONSTRAINT "Invoice_FK4" FOREIGN KEY ("currencyId") REFERENCES "Currency"
>> ("id")
>> 20:48:15,262 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,263 [Schema                        ] Creating foreign key
>> constraint : "Invoice_FK3" in catalog "" schema ""
>> 20:48:15,263 [Schema                        ] ALTER TABLE "Invoice" ADD
>> CONSTRAINT "Invoice_FK3" FOREIGN KEY ("sellerPartyId") REFERENCES "Party"
>> ("id")
>> 20:48:15,264 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,264 [Schema                        ] Creating foreign key
>> constraint : "Invoice_FK2" in catalog "" schema ""
>> 20:48:15,264 [Schema                        ] ALTER TABLE "Invoice" ADD
>> CONSTRAINT "Invoice_FK2" FOREIGN KEY ("buyerPartyId") REFERENCES "Party"
>> ("id")
>> 20:48:15,264 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,265 [Schema                        ] Creating foreign key
>> constraint : "Invoice_FK1" in catalog "" schema ""
>> 20:48:15,265 [Schema                        ] ALTER TABLE "Invoice" ADD
>> CONSTRAINT "Invoice_FK1" FOREIGN KEY ("sourceLeaseId") REFERENCES "Lease"
>> ("id")
>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,266 [Schema                        ] Creating index "Invoice_N51"
>> in catalog "" schema ""
>> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N51" ON
>> "Invoice" ("currencyId")
>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,266 [Schema                        ] Creating index "Invoice_N52"
>> in catalog "" schema ""
>> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N52" ON
>> "Invoice" ("sourceLeaseId")
>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,266 [Schema                        ] Creating index "Invoice_N49"
>> in catalog "" schema ""
>> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N49" ON
>> "Invoice" ("buyerPartyId")
>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,266 [Schema                        ] Creating index "Invoice_N50"
>> in catalog "" schema ""
>> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N50" ON
>> "Invoice" ("sellerPartyId")
>> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,267 [Schema                        ] Creating foreign key
>> constraint : "Person_FK1" in catalog "" schema ""
>> 20:48:15,267 [Schema                        ] ALTER TABLE "Person" ADD
>> CONSTRAINT "Person_FK1" FOREIGN KEY ("id") REFERENCES "Party" ("id")
>> 20:48:15,267 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,267 [Schema                        ] Creating candidate key
>> "Country_alpha2Code_UNQ" in catalog "" schema ""
>> 20:48:15,267 [Schema                        ] ALTER TABLE "Country" ADD
>> CONSTRAINT "Country_alpha2Code_UNQ" UNIQUE ("alpha2Code")
>> 20:48:15,268 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,269 [Schema                        ] Creating candidate key
>> "Country_reference_UNQ" in catalog "" schema ""
>> 20:48:15,269 [Schema                        ] ALTER TABLE "Country" ADD
>> CONSTRAINT "Country_reference_UNQ" UNIQUE ("reference")
>> 20:48:15,270 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,270 [Schema                        ] Creating candidate key
>> "Country_name_UNQ" in catalog "" schema ""
>> 20:48:15,270 [Schema                        ] ALTER TABLE "Country" ADD
>> CONSTRAINT "Country_name_UNQ" UNIQUE ("name")
>> 20:48:15,271 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,271 [Schema                        ] Creating foreign key
>> constraint : "Lease_FK3" in catalog "" schema ""
>> 20:48:15,271 [Schema                        ] ALTER TABLE "Lease" ADD
>> CONSTRAINT "Lease_FK3" FOREIGN KEY ("leaseTypeId") REFERENCES "LeaseType"
>> ("id")
>> 20:48:15,272 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,272 [Schema                        ] Creating foreign key
>> constraint : "Lease_FK2" in catalog "" schema ""
>> 20:48:15,272 [Schema                        ] ALTER TABLE "Lease" ADD
>> CONSTRAINT "Lease_FK2" FOREIGN KEY ("paidByBankMandateId") REFERENCES
>> "BankMandate" ("id")
>> 20:48:15,273 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,273 [Schema                        ] Creating foreign key
>> constraint : "Lease_FK1" in catalog "" schema ""
>> 20:48:15,273 [Schema                        ] ALTER TABLE "Lease" ADD
>> CONSTRAINT "Lease_FK1" FOREIGN KEY ("id") REFERENCES "Agreement" ("id")
>> 20:48:15,274 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,274 [Schema                        ] Creating index "Lease_N50" in
>> catalog "" schema ""
>> 20:48:15,274 [Schema                        ] CREATE INDEX "Lease_N50" ON
>> "Lease" ("leaseTypeId")
>> 20:48:15,274 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,275 [Schema                        ] Creating index "Lease_N49" in
>> catalog "" schema ""
>> 20:48:15,275 [Schema                        ] CREATE INDEX "Lease_N49" ON
>> "Lease" ("paidByBankMandateId")
>> 20:48:15,275 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,275 [Schema                        ] Creating candidate key
>> "LeaseItem_lease_type_startDate_sequence_IDX" in catalog "" schema ""
>> 20:48:15,275 [Schema                        ] ALTER TABLE "LeaseItem" ADD
>> CONSTRAINT "LeaseItem_lease_type_startDate_sequence_IDX" UNIQUE
>> ("leaseId","type","startDate","sequence")
>> 20:48:15,277 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,277 [Schema                        ] Creating foreign key
>> constraint : "LeaseItem_FK1" in catalog "" schema ""
>> 20:48:15,277 [Schema                        ] ALTER TABLE "LeaseItem" ADD
>> CONSTRAINT "LeaseItem_FK1" FOREIGN KEY ("leaseId") REFERENCES "Lease"
>> ("id")
>> 20:48:15,279 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,279 [Schema                        ] Creating foreign key
>> constraint : "LeaseItem_FK2" in catalog "" schema ""
>> 20:48:15,279 [Schema                        ] ALTER TABLE "LeaseItem" ADD
>> CONSTRAINT "LeaseItem_FK2" FOREIGN KEY ("chargeId") REFERENCES "Charge"
>> ("id")
>> 20:48:15,281 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,281 [Schema                        ] Creating index
>> "LeaseItem_lease_type_startDate_IDX" in catalog "" schema ""
>> 20:48:15,281 [Schema                        ] CREATE INDEX
>> "LeaseItem_lease_type_startDate_IDX" ON "LeaseItem"
>> ("leaseId","type","startDate")
>> 20:48:15,282 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,282 [Schema                        ] Creating index
>> "LeaseItem_N50" in catalog "" schema ""
>> 20:48:15,282 [Schema                        ] CREATE INDEX "LeaseItem_N50"
>> ON "LeaseItem" ("leaseId")
>> 20:48:15,282 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,282 [Schema                        ] Creating index
>> "LeaseItem_lease_type_sequence_IDX" in catalog "" schema ""
>> 20:48:15,282 [Schema                        ] CREATE INDEX
>> "LeaseItem_lease_type_sequence_IDX" ON "LeaseItem"
>> ("leaseId","type","sequence")
>> 20:48:15,282 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,282 [Schema                        ] Creating index
>> "LeaseItem_N49" in catalog "" schema ""
>> 20:48:15,282 [Schema                        ] CREATE INDEX "LeaseItem_N49"
>> ON "LeaseItem" ("chargeId")
>> 20:48:15,283 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,283 [Schema                        ] Creating foreign key
>> constraint : "AgreementRoleCommunicationChannelType_FK1" in catalog ""
>> schema ""
>> 20:48:15,283 [Schema                        ] ALTER TABLE
>> "AgreementRoleCommunicationChannelType" ADD CONSTRAINT
>> "AgreementRoleCommunicationChannelType_FK1" FOREIGN KEY
>> ("appliesToAgreementTypeId") REFERENCES "AgreementType" ("id")
>> 20:48:15,284 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,284 [Schema                        ] Creating index
>> "AgreementRoleCommunicationChannelType_N49" in catalog "" schema ""
>> 20:48:15,284 [Schema                        ] CREATE INDEX
>> "AgreementRoleCommunicationChannelType_N49" ON
>> "AgreementRoleCommunicationChannelType" ("appliesToAgreementTypeId")
>> 20:48:15,284 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,284 [Schema                        ] Creating candidate key
>> "LeaseType_reference_UNQ" in catalog "" schema ""
>> 20:48:15,284 [Schema                        ] ALTER TABLE "LeaseType" ADD
>> CONSTRAINT "LeaseType_reference_UNQ" UNIQUE ("reference")
>> 20:48:15,285 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,285 [Schema                        ] Creating candidate key
>> "LeaseType_name_UNQ" in catalog "" schema ""
>> 20:48:15,285 [Schema                        ] ALTER TABLE "LeaseType" ADD
>> CONSTRAINT "LeaseType_name_UNQ" UNIQUE ("name")
>> 20:48:15,286 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,286 [Schema                        ] Creating foreign key
>> constraint : "AgreementRoleCommunicationChannel_FK3" in catalog "" schema ""
>> 20:48:15,286 [Schema                        ] ALTER TABLE
>> "AgreementRoleCommunicationChannel" ADD CONSTRAINT
>> "AgreementRoleCommunicationChannel_FK3" FOREIGN KEY
>> ("communicationChannelId") REFERENCES "CommunicationChannel" ("id")
>> 20:48:15,287 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,287 [Schema                        ] Creating foreign key
>> constraint : "AgreementRoleCommunicationChannel_FK2" in catalog "" schema ""
>> 20:48:15,287 [Schema                        ] ALTER TABLE
>> "AgreementRoleCommunicationChannel" ADD CONSTRAINT
>> "AgreementRoleCommunicationChannel_FK2" FOREIGN KEY ("agreementRoleId")
>> REFERENCES "AgreementRole" ("id")
>> 20:48:15,288 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,289 [Schema                        ] Creating foreign key
>> constraint : "AgreementRoleCommunicationChannel_FK1" in catalog "" schema ""
>> 20:48:15,289 [Schema                        ] ALTER TABLE
>> "AgreementRoleCommunicationChannel" ADD CONSTRAINT
>> "AgreementRoleCommunicationChannel_FK1" FOREIGN KEY ("typeId") REFERENCES
>> "AgreementRoleCommunicationChannelType" ("id")
>> 20:48:15,290 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,290 [Schema                        ] Creating index
>> "AgreementRoleCommunicationChannel_N49" in catalog "" schema ""
>> 20:48:15,290 [Schema                        ] CREATE INDEX
>> "AgreementRoleCommunicationChannel_N49" ON
>> "AgreementRoleCommunicationChannel" ("communicationChannelId")
>> 20:48:15,291 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,291 [Schema                        ] Creating index
>> "AgreementRoleCommunicationChannel_N50" in catalog "" schema ""
>> 20:48:15,291 [Schema                        ] CREATE INDEX
>> "AgreementRoleCommunicationChannel_N50" ON
>> "AgreementRoleCommunicationChannel" ("agreementRoleId")
>> 20:48:15,291 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,291 [Schema                        ] Creating index
>> "AgreementRoleCommunicationChannel_N51" in catalog "" schema ""
>> 20:48:15,291 [Schema                        ] CREATE INDEX
>> "AgreementRoleCommunicationChannel_N51" ON
>> "AgreementRoleCommunicationChannel" ("typeId")
>> 20:48:15,291 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,291 [Schema                        ] Creating candidate key
>> "AgreementType_title_UNQ" in catalog "" schema ""
>> 20:48:15,291 [Schema                        ] ALTER TABLE "AgreementType"
>> ADD CONSTRAINT "AgreementType_title_UNQ" UNIQUE ("title")
>> 20:48:15,292 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,292 [Schema                        ] Creating candidate key
>> "Occupancy_lease_unit_startDate_UNQ" in catalog "" schema ""
>> 20:48:15,292 [Schema                        ] ALTER TABLE "Occupancy" ADD
>> CONSTRAINT "Occupancy_lease_unit_startDate_UNQ" UNIQUE
>> ("leaseId","unitId","startDate")
>> 20:48:15,294 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,294 [Schema                        ] Creating foreign key
>> constraint : "Occupancy_FK5" in catalog "" schema ""
>> 20:48:15,294 [Schema                        ] ALTER TABLE "Occupancy" ADD
>> CONSTRAINT "Occupancy_FK5" FOREIGN KEY ("sectorId") REFERENCES "Sector"
>> ("id")
>> 20:48:15,295 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,296 [Schema                        ] Creating foreign key
>> constraint : "Occupancy_FK6" in catalog "" schema ""
>> 20:48:15,296 [Schema                        ] ALTER TABLE "Occupancy" ADD
>> CONSTRAINT "Occupancy_FK6" FOREIGN KEY ("brandId") REFERENCES "Brand"
>> ("id")
>> 20:48:15,297 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,297 [Schema                        ] Creating foreign key
>> constraint : "Occupancy_FK3" in catalog "" schema ""
>> 20:48:15,297 [Schema                        ] ALTER TABLE "Occupancy" ADD
>> CONSTRAINT "Occupancy_FK3" FOREIGN KEY ("activityId") REFERENCES "Activity"
>> ("id")
>> 20:48:15,299 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,299 [Schema                        ] Creating foreign key
>> constraint : "Occupancy_FK4" in catalog "" schema ""
>> 20:48:15,299 [Schema                        ] ALTER TABLE "Occupancy" ADD
>> CONSTRAINT "Occupancy_FK4" FOREIGN KEY ("leaseId") REFERENCES "Lease"
>> ("id")
>> 20:48:15,301 [Schema                        ] Execution Time = 2 ms
>> 20:48:15,301 [Schema                        ] Creating foreign key
>> constraint : "Occupancy_FK1" in catalog "" schema ""
>> 20:48:15,301 [Schema                        ] ALTER TABLE "Occupancy" ADD
>> CONSTRAINT "Occupancy_FK1" FOREIGN KEY ("unitId") REFERENCES "Unit" ("id")
>> 20:48:15,302 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,303 [Schema                        ] Creating foreign key
>> constraint : "Occupancy_FK2" in catalog "" schema ""
>> 20:48:15,303 [Schema                        ] ALTER TABLE "Occupancy" ADD
>> CONSTRAINT "Occupancy_FK2" FOREIGN KEY ("unitSizeId") REFERENCES "UnitSize"
>> ("id")
>> 20:48:15,304 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,304 [Schema                        ] Creating index
>> "Occupancy_N54" in catalog "" schema ""
>> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N54"
>> ON "Occupancy" ("brandId")
>> 20:48:15,305 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,305 [Schema                        ] Creating index
>> "Occupancy_N53" in catalog "" schema ""
>> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N53"
>> ON "Occupancy" ("unitId")
>> 20:48:15,305 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,305 [Schema                        ] Creating index
>> "Occupancy_N52" in catalog "" schema ""
>> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N52"
>> ON "Occupancy" ("sectorId")
>> 20:48:15,305 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,305 [Schema                        ] Creating index
>> "Occupancy_N51" in catalog "" schema ""
>> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N51"
>> ON "Occupancy" ("activityId")
>> 20:48:15,306 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,306 [Schema                        ] Creating index
>> "Occupancy_N49" in catalog "" schema ""
>> 20:48:15,306 [Schema                        ] CREATE INDEX "Occupancy_N49"
>> ON "Occupancy" ("leaseId")
>> 20:48:15,306 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,306 [Schema                        ] Creating index
>> "Occupancy_N50" in catalog "" schema ""
>> 20:48:15,306 [Schema                        ] CREATE INDEX "Occupancy_N50"
>> ON "Occupancy" ("unitSizeId")
>> 20:48:15,306 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,306 [Schema                        ] Creating foreign key
>> constraint : "IndexBase_FK2" in catalog "" schema ""
>> 20:48:15,306 [Schema                        ] ALTER TABLE "IndexBase" ADD
>> CONSTRAINT "IndexBase_FK2" FOREIGN KEY ("indexId") REFERENCES "Index"
>> ("id")
>> 20:48:15,307 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,307 [Schema                        ] Creating foreign key
>> constraint : "IndexBase_FK1" in catalog "" schema ""
>> 20:48:15,307 [Schema                        ] ALTER TABLE "IndexBase" ADD
>> CONSTRAINT "IndexBase_FK1" FOREIGN KEY ("nextIndexBaseId") REFERENCES
>> "IndexBase" ("id")
>> 20:48:15,308 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,308 [Schema                        ] Creating index
>> "IndexBase_N50" in catalog "" schema ""
>> 20:48:15,308 [Schema                        ] CREATE INDEX "IndexBase_N50"
>> ON "IndexBase" ("indexId")
>> 20:48:15,309 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,309 [Schema                        ] Creating index
>> "IndexBase_N49" in catalog "" schema ""
>> 20:48:15,309 [Schema                        ] CREATE INDEX "IndexBase_N49"
>> ON "IndexBase" ("nextIndexBaseId")
>> 20:48:15,309 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,309 [Schema                        ] Creating candidate key
>> "Index_name_UNQ" in catalog "" schema ""
>> 20:48:15,309 [Schema                        ] ALTER TABLE "Index" ADD
>> CONSTRAINT "Index_name_UNQ" UNIQUE ("name")
>> 20:48:15,310 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,310 [Schema                        ] Creating candidate key
>> "Index_reference_UNQ" in catalog "" schema ""
>> 20:48:15,310 [Schema                        ] ALTER TABLE "Index" ADD
>> CONSTRAINT "Index_reference_UNQ" UNIQUE ("reference")
>> 20:48:15,311 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,311 [Schema                        ] Creating foreign key
>> constraint : "AgreementRole_FK3" in catalog "" schema ""
>> 20:48:15,311 [Schema                        ] ALTER TABLE "AgreementRole"
>> ADD CONSTRAINT "AgreementRole_FK3" FOREIGN KEY ("agreementId") REFERENCES
>> "Agreement" ("id")
>> 20:48:15,312 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,313 [Schema                        ] Creating foreign key
>> constraint : "AgreementRole_FK2" in catalog "" schema ""
>> 20:48:15,313 [Schema                        ] ALTER TABLE "AgreementRole"
>> ADD CONSTRAINT "AgreementRole_FK2" FOREIGN KEY ("typeId") REFERENCES
>> "AgreementRoleType" ("id")
>> 20:48:15,314 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,314 [Schema                        ] Creating foreign key
>> constraint : "AgreementRole_FK1" in catalog "" schema ""
>> 20:48:15,314 [Schema                        ] ALTER TABLE "AgreementRole"
>> ADD CONSTRAINT "AgreementRole_FK1" FOREIGN KEY ("partyId") REFERENCES
>> "Party" ("id")
>> 20:48:15,315 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,315 [Schema                        ] Creating index
>> "AgreementRole_N49" in catalog "" schema ""
>> 20:48:15,315 [Schema                        ] CREATE INDEX
>> "AgreementRole_N49" ON "AgreementRole" ("agreementId")
>> 20:48:15,315 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,315 [Schema                        ] Creating index
>> "AgreementRole_N51" in catalog "" schema ""
>> 20:48:15,315 [Schema                        ] CREATE INDEX
>> "AgreementRole_N51" ON "AgreementRole" ("typeId")
>> 20:48:15,316 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,316 [Schema                        ] Creating index
>> "AgreementRole_N50" in catalog "" schema ""
>> 20:48:15,316 [Schema                        ] CREATE INDEX
>> "AgreementRole_N50" ON "AgreementRole" ("partyId")
>> 20:48:15,316 [Schema                        ] Execution Time = 0 ms
>> 20:48:15,316 [Schema                        ] Creating candidate key
>> "Sector_name_UNQ" in catalog "" schema ""
>> 20:48:15,316 [Schema                        ] ALTER TABLE "Sector" ADD
>> CONSTRAINT "Sector_name_UNQ" UNIQUE ("name")
>> 20:48:15,317 [Schema                        ] Execution Time = 1 ms
>> 20:48:15,318 [Schema                        ] Check of existence of
>> "InvoiceSummaryForPropertyDueDate" returned no table
>> 20:48:15,318 [Schema                        ] Creating table
>> "InvoiceSummaryForPropertyDueDate"
>> 20:48:15,318 [Schema                        ] CREATE VIEW
>> "InvoiceSummaryForPropertyDueDate" (   "reference",   "dueDate",   "total",
>>  "netAmount",   "vatAmount",   "grossAmount" ) AS SELECT
>> "FixedAsset"."reference" ,    "Invoice"."dueDate",
>> COUNT(DISTINCT("Invoice"."id")) AS "total",
>> SUM("InvoiceItem"."netAmount") AS "netAmount",
>> SUM("InvoiceItem"."vatAmount") AS "vatAmount",
>> SUM("InvoiceItem"."grossAmount") AS "grossAmount"   FROM "Invoice"   INNER
>> JOIN "Lease"       ON "Invoice"."sourceLeaseId" = "Lease"."id"   INNER JOIN
>> "Occupancy"     ON "Lease"."id"              = "Occupancy"."leaseId"
>> INNER JOIN "Unit"       ON "Unit"."id"               = "Occupancy"."unitId"
>>  INNER JOIN "Property"     ON "Property"."id"           =
>> "Unit"."propertyId"   INNER JOIN "FixedAsset"     ON "FixedAsset"."id"
>>    = "Property"."id"   INNER JOIN "InvoiceItem"     ON
>> "InvoiceItem"."invoiceId" = "Invoice"."id" GROUP BY
>> "FixedAsset"."reference",  "Invoice"."dueDate"
>> 
>> 
>> 
>> On 13 January 2014 18:47, GESCONSULTOR - Óscar Bou
>> <o....@gesconsultor.com>wrote:
>> 
>>> 
>>> Hi, Dharmesh.
>>> 
>>> Can you copy on an email the class definition for
>>> org.atos.tfgm.basket.ShoppingBasketItem?
>>> 
>>> Perhaps the JDO annotations for identity are not properly defined.
>>> 
>>> See [1] for an example. The relevant ones are:
>>> 
>>> 
>>> @javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
>>> @javax.jdo.annotations.DatastoreIdentity(
>>>        strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY,
>>>         column="id")
>>> @javax.jdo.annotations.Version(
>>>        strategy=VersionStrategy.VERSION_NUMBER,
>>>        column="version")
>>> 
>>> 
>>> 
>>> 
>>> Regards,
>>> 
>>> Oscar
>>> 
>>> 
>>> [1]
>>> https://github.com/apache/isis/blob/master/example/archetype/quickstart_wicket_restful_jdo/src/main/resources/archetype-resources/dom/src/main/java/dom/todo/ToDoItem.java
>>> 
>>> 
>>> 
>>> El 13/01/2014, a las 18:03, Chohan, Dharmesh <dh...@atos.net>
>>> escribió:
>>> 
>>>> Hello
>>>> 
>>>> I have sorted out the issue below, however I have encountered another
>>> problem,
>>>> 
>>>> Data already exists
>>>> 
>>>> integrity constraint violation: NOT NULL check constraint; SYS_CT_10102
>>> table: "ShoppingBasketItem" column: "shoppingBasket_id_OID"
>>>> 
>>>> This is the log output and am not sure why shoppingBasket_id_OID is NULL
>>>> 
>>>>    [exec] 16:58:55,845  [Native               qtp1742392524-31 DEBUG]
>>> INSERT INTO "ShoppingBasketItem"
>>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>>> VALUES (<'123456789001'>,<'Please_Select'>,<'Item
>>> 1'>,<'▒5'>,<null>,<1>,<null>)
>>>>    [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]
>>> Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b"
>>> using statement "INSERT INTO "ShoppingBasketItem"
>>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>>> VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL
>>> check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column:
>>> "shoppingBasket_id_OID"
>>>>    [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]
>>> Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b"
>>> using statement "INSERT INTO "ShoppingBasketItem"
>>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>>> VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL
>>> check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column:
>>> "shoppingBasket_id_OID"
>>>>    [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]
>>> Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b"
>>> using statement "INSERT INTO "ShoppingBasketItem"
>>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>>> VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL
>>> check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column:
>>> "shoppingBasket_id_OID"
>>>>    [exec] 16:58:55,945  [IsisTransaction      qtp1742392524-31 INFO ]
>>> abort transaction IsisTransaction@2fab0086[state=MUST_ABORT,commands=0]
>>>> 
>>>> Regards
>>>> Dharmesh
>>>> 
>>>> -----Original Message-----
>>>> From: Chohan, Dharmesh [mailto:dharmesh.chohan@atos.net]
>>>> Sent: Monday, January 13, 2014 4:09 PM
>>>> To: users@isis.apache.org
>>>> Subject: Domain Mappings 1:m Exception
>>>> 
>>>> Hi
>>>> 
>>>> I am implementing a domain object mapping of 1 to many.  I have followed
>>> the documentation on
>>> http://isis.apache.org/components/objectstores/jdo/managed-1-to-m-relationships.html
>>>> 
>>>> This is what I have implemented,
>>>> 
>>>> @javax.jdo.annotations.Persistent(mappedBy="shoppingBasket")
>>>>       private SortedSet<ShoppingBasketItem> shoppingBasketItem = new
>>> TreeSet<ShoppingBasketItem>();
>>>> 
>>>>       @javax.jdo.annotations.Column(allowsNull="false")
>>>>   @MemberOrder(sequence = "3")
>>>>       public SortedSet <ShoppingBasketItem> getShoppingBasketItem() {
>>>>               return shoppingBasketItem;
>>>>       }
>>>> 
>>>>       public void setShoppingBasketItem(SortedSet <ShoppingBasketItem>
>>> shoppingBasketItem) {
>>>>               this.shoppingBasketItem = shoppingBasketItem;
>>>>       }
>>>> 
>>>> public class ShoppingBasketItem implements
>>> Comparable<ShoppingBasketItem> {
>>>> 
>>>>       private ShoppingBasket shoppingBasket;
>>>> 
>>>>       @javax.jdo.annotations.Column(allowsNull="false")
>>>>       public ShoppingBasket getShoppingBasket() {
>>>>               return shoppingBasket;
>>>>       }
>>>> 
>>>>       public void setShoppingBasket(ShoppingBasket shoppingBasket) {
>>>>               this.shoppingBasket = shoppingBasket;
>>>>       }
>>>> 
>>>> ...
>>>> 
>>>> When I run ISIS and test the screen, I am getting the following
>>> exception,
>>>> 
>>>> *       java.lang.IllegalArgumentException
>>>> *       No such method ' getShoppingBasketItem' or 'isShoppingBasketItem'
>>>> *
>>> org.apache.isis.applib.util.Clause#getValueOf(ObjectContracts.java:204)
>>>> *
>>> org.apache.isis.applib.util.ObjectContracts#compare(ObjectContracts.java:45)
>>>> *
>>> org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:117)
>>>> *
>>> org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:15)
>>>> *       java.util.TreeMap#put(TreeMap.java:545)
>>>> *       java.util.TreeSet#add(TreeSet.java:238)
>>>> *
>>> org.atos.tfgm.basket.ShoppingBaskets#getBasket(ShoppingBaskets.java:150)
>>>> *
>>> sun.reflect.NativeMethodAccessorImpl#invoke0(NativeMethodAccessorImpl.java:-2)
>>>> *
>>> sun.reflect.NativeMethodAccessorImpl#invoke(NativeMethodAccessorImpl.java:39)
>>>> *
>>> sun.reflect.DelegatingMethodAccessorImpl#invoke(DelegatingMethodAccessorImpl.java:25)
>>>> *       java.lang.reflect.Method#invoke(Method.java:597)
>>>> 
>>>> 
>>>> Have I implemented the relationship incorrectly or missing something.
>>>> 
>>>> 
>>>> Regards
>>>> Dharmesh
>>>> 
>>> 
>>> 


Re: Domain Mappings 1:m Exception

Posted by Jeroen van der Wal <je...@stromboli.it>.
Just a sidenote: datanucleus only adds non-existing constraints. If
you've changed your model it might be possible that you have to delete
constraints manually in order to make things work.

On Mon, Jan 13, 2014 at 11:54 PM, Dan Haywood
<da...@haywood-associates.co.uk> wrote:
> Looking at how Estatio [1] boots up (see log below), it seems that JDO does
> the CREATE TABLE first, then adds foreign key constraints afterwards using
> ALTER TABLE.
>
> HTH
> Dan
>
> [1] https://github.com/estatio/estatio
>
> extract of Estatio's startup log:
>
> 20:48:14,974 [Schema                        ] CREATE TABLE
> "CommunicationChannel"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "description" NVARCHAR(254) NULL,
>     "legal" BOOLEAN NOT NULL,
>     "ownerOrganisationId" BIGINT NULL,
>     "ownerPersonId" BIGINT NULL,
>     "ownerPropertyId" BIGINT NULL,
>     "ownerUnitId" BIGINT NULL,
>     "reference" NVARCHAR(24) NULL,
>     "type" NVARCHAR(30) NOT NULL,
>     "version" BIGINT NOT NULL,
>     "discriminator" NVARCHAR(255) NOT NULL,
>     "emailAddress" NVARCHAR(50) NULL,
>     "address1" NVARCHAR(100) NULL,
>     "address2" NVARCHAR(100) NULL,
>     "city" NVARCHAR(50) NULL,
>     "countryId" BIGINT NULL,
>     "postalCode" NVARCHAR(12) NULL,
>     "stateId" BIGINT NULL,
>     "phoneNumber" NVARCHAR(20) NULL,
>     CONSTRAINT "CommunicationChannel_PK" PRIMARY KEY ("id")
> )
> 20:48:14,977 [Schema                        ] Execution Time = 3 ms
> 20:48:14,982 [Schema                        ] Check of existence of
> "LeaseTerm" returned no table
> 20:48:14,982 [Schema                        ] Creating table "LeaseTerm"
> 20:48:14,982 [Schema                        ] CREATE TABLE "LeaseTerm"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "endDate" DATE NULL,
>     "frequency" NVARCHAR(30) NOT NULL,
>     "leaseItemId" BIGINT NOT NULL,
>     "nextLeaseTermId" BIGINT NULL,
>     "sequence" NUMERIC NULL,
>     "startDate" DATE NULL,
>     "status" NVARCHAR(20) NOT NULL,
>     "version" BIGINT NOT NULL,
>     "discriminator" NVARCHAR(255) NOT NULL,
>     "auditedTurnover" DECIMAL(19,2) NULL,
>     "budgetedTurnover" DECIMAL(19,2) NULL,
>     "contractualRent" DECIMAL(19,2) NULL,
>     "turnoverRentRule" NVARCHAR(254) NULL,
>     "turnoverRentValue" DECIMAL(19,2) NULL,
>     "baseIndexStartDate" DATE NULL,
>     "baseIndexValue" DECIMAL(19,1) NULL,
>     "baseValue" DECIMAL(19,2) NULL,
>     "effectiveDate" DATE NULL,
>     "indexId" BIGINT NULL,
>     "indexationPercentage" DECIMAL(19,1) NULL,
>     "indexedValue" DECIMAL(19,2) NULL,
>     "levellingPercentage" DECIMAL(19,1) NULL,
>     "nextIndexStartDate" DATE NULL,
>     "nextIndexValue" DECIMAL(19,1) NULL,
>     "rebaseFactor" DECIMAL(19,3) NULL,
>     "settledValue" DECIMAL(19,2) NULL,
>     "auditedValue" DECIMAL(19,2) NULL,
>     "budgetedValue" DECIMAL(19,2) NULL,
>     CONSTRAINT "LeaseTerm_PK" PRIMARY KEY ("id")
> )
> 20:48:14,984 [Schema                        ] Execution Time = 2 ms
> 20:48:14,987 [Schema                        ] Check of existence of "Unit"
> returned no table
> 20:48:14,987 [Schema                        ] Creating table "Unit"
> 20:48:14,987 [Schema                        ] CREATE TABLE "Unit"
> (
>     "id" BIGINT NOT NULL,
>     "area" DECIMAL(19,2) NULL,
>     "dehorsArea" DECIMAL(19,2) NULL,
>     "endDate" DATE NULL,
>     "mezzanineArea" DECIMAL(19,2) NULL,
>     "propertyId" BIGINT NOT NULL,
>     "salesArea" DECIMAL(19,2) NULL,
>     "startDate" DATE NULL,
>     "storageArea" DECIMAL(19,2) NULL,
>     "type" NVARCHAR(30) NOT NULL,
>     CONSTRAINT "Unit_PK" PRIMARY KEY ("id")
> )
> 20:48:14,988 [Schema                        ] Execution Time = 1 ms
> 20:48:14,991 [Schema                        ] Check of existence of
> "BreakOption" returned no table
> 20:48:14,991 [Schema                        ] Creating table "BreakOption"
> 20:48:14,992 [Schema                        ] CREATE TABLE "BreakOption"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "breakDate" DATE NOT NULL,
>     "description" NVARCHAR(254) NULL,
>     "exerciseDate" DATE NOT NULL,
>     "exerciseType" NVARCHAR(20) NOT NULL,
>     "leaseId" BIGINT NOT NULL,
>     "notificationPeriod" NVARCHAR(20) NULL,
>     "type" NVARCHAR(30) NOT NULL,
>     "version" BIGINT NOT NULL,
>     "discriminator" NVARCHAR(255) NOT NULL,
>     "reminderDate" DATE NULL,
>     CONSTRAINT "BreakOption_PK" PRIMARY KEY ("id")
> )
> 20:48:14,994 [Schema                        ] Execution Time = 2 ms
> 20:48:15,000 [Schema                        ] Check of existence of
> "InvoiceItem" returned no table
> 20:48:15,000 [Schema                        ] Creating table "InvoiceItem"
> 20:48:15,000 [Schema                        ] CREATE TABLE "InvoiceItem"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "chargeId" BIGINT NULL,
>     "description" NVARCHAR(254) NULL,
>     "dueDate" DATE NOT NULL,
>     "endDate" DATE NULL,
>     "grossAmount" DECIMAL(19,2) NULL,
>     "invoiceId" BIGINT NULL,
>     "netAmount" DECIMAL(19,2) NULL,
>     "quantity" DECIMAL(19,2) NULL,
>     "sequence" NUMERIC NOT NULL,
>     "startDate" DATE NULL,
>     "taxId" BIGINT NULL,
>     "vatAmount" DECIMAL(19,2) NULL,
>     "version" BIGINT NOT NULL,
>     "discriminator" NVARCHAR(255) NOT NULL,
>     "leaseTermId" BIGINT NULL,
>     CONSTRAINT "InvoiceItem_PK" PRIMARY KEY ("id")
> )
> 20:48:15,002 [Schema                        ] Execution Time = 2 ms
> 20:48:15,007 [Schema                        ] Check of existence of "Brand"
> returned no table
> 20:48:15,008 [Schema                        ] Creating table "Brand"
> 20:48:15,008 [Schema                        ] CREATE TABLE "Brand"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "name" NVARCHAR(50) NOT NULL,
>     "version" BIGINT NOT NULL,
>     CONSTRAINT "Brand_PK" PRIMARY KEY ("id")
> )
> 20:48:15,009 [Schema                        ] Execution Time = 1 ms
> 20:48:15,013 [Schema                        ] Check of existence of
> "FixedAssetRole" returned no table
> 20:48:15,013 [Schema                        ] Creating table
> "FixedAssetRole"
> 20:48:15,013 [Schema                        ] CREATE TABLE "FixedAssetRole"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "assetId" BIGINT NOT NULL,
>     "endDate" DATE NULL,
>     "partyId" BIGINT NOT NULL,
>     "startDate" DATE NULL,
>     "type" NVARCHAR(30) NOT NULL,
>     "version" BIGINT NOT NULL,
>     CONSTRAINT "FixedAssetRole_PK" PRIMARY KEY ("id")
> )
> 20:48:15,015 [Schema                        ] Execution Time = 2 ms
> 20:48:15,019 [Schema                        ] Check of existence of
> "Numerator" returned no table
> 20:48:15,019 [Schema                        ] Creating table "Numerator"
> 20:48:15,019 [Schema                        ] CREATE TABLE "Numerator"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "format" NVARCHAR(30) NOT NULL,
>     "lastIncrement" NUMERIC NOT NULL,
>     "name" NVARCHAR(50) NOT NULL,
>     "objectIdentifier" NVARCHAR(20) NULL,
>     "objectType" NVARCHAR(254) NULL,
>     "version" BIGINT NOT NULL,
>     CONSTRAINT "Numerator_PK" PRIMARY KEY ("id")
> )
> 20:48:15,020 [Schema                        ] Execution Time = 1 ms
> 20:48:15,022 [Schema                        ] Check of existence of
> "Agreement" returned no table
> 20:48:15,022 [Schema                        ] Creating table "Agreement"
> 20:48:15,022 [Schema                        ] CREATE TABLE "Agreement"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "endDate" DATE NULL,
>     "name" NVARCHAR(50) NULL,
>     "nextAgreementId" BIGINT NULL,
>     "reference" NVARCHAR(24) NOT NULL,
>     "startDate" DATE NULL,
>     "typeId" BIGINT NOT NULL,
>     "version" BIGINT NOT NULL,
>     "discriminator" NVARCHAR(255) NOT NULL,
>     CONSTRAINT "Agreement_PK" PRIMARY KEY ("id")
> )
> 20:48:15,023 [Schema                        ] Execution Time = 1 ms
> 20:48:15,025 [Schema                        ] Check of existence of
> "BankMandate" returned no table
> 20:48:15,025 [Schema                        ] Creating table "BankMandate"
> 20:48:15,025 [Schema                        ] CREATE TABLE "BankMandate"
> (
>     "id" BIGINT NOT NULL,
>     "bankAccountId" BIGINT NOT NULL,
>     CONSTRAINT "BankMandate_PK" PRIMARY KEY ("id")
> )
> 20:48:15,026 [Schema                        ] Execution Time = 1 ms
> 20:48:15,028 [Schema                        ] Check of existence of "Event"
> returned no table
> 20:48:15,028 [Schema                        ] Creating table "Event"
> 20:48:15,028 [Schema                        ] CREATE TABLE "Event"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "calendarName" NVARCHAR(254) NOT NULL,
>     "date" DATE NOT NULL,
>     "notes" NVARCHAR(4000) NULL,
>     "subjectBreakOptionId" BIGINT NULL,
>     "version" BIGINT NOT NULL,
>     CONSTRAINT "Event_PK" PRIMARY KEY ("id")
> )
> 20:48:15,029 [Schema                        ] Execution Time = 1 ms
> 20:48:15,031 [Schema                        ] Check of existence of
> "ChargeGroup" returned no table
> 20:48:15,031 [Schema                        ] Creating table "ChargeGroup"
> 20:48:15,031 [Schema                        ] CREATE TABLE "ChargeGroup"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "name" NVARCHAR(50) NOT NULL,
>     "reference" NVARCHAR(24) NOT NULL,
>     "version" BIGINT NOT NULL,
>     CONSTRAINT "ChargeGroup_PK" PRIMARY KEY ("id")
> )
> 20:48:15,032 [Schema                        ] Execution Time = 1 ms
> 20:48:15,034 [Schema                        ] Check of existence of
> "UserSetting" returned no table
> 20:48:15,034 [Schema                        ] Creating table "UserSetting"
> 20:48:15,034 [Schema                        ] CREATE TABLE "UserSetting"
> (
>     "key" NVARCHAR(128) NOT NULL,
>     "user" NVARCHAR(50) NOT NULL,
>     "description" NVARCHAR(254) NULL,
>     "type" NVARCHAR(20) NOT NULL,
>     "valueRaw" NVARCHAR(255) NOT NULL,
>     CONSTRAINT "UserSetting_PK" PRIMARY KEY ("key","user")
> )
> 20:48:15,035 [Schema                        ] Execution Time = 1 ms
> 20:48:15,038 [Schema                        ] Check of existence of
> "Currency" returned no table
> 20:48:15,038 [Schema                        ] Creating table "Currency"
> 20:48:15,038 [Schema                        ] CREATE TABLE "Currency"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "name" NVARCHAR(50) NOT NULL,
>     "reference" NVARCHAR(24) NOT NULL,
>     "version" BIGINT NOT NULL,
>     CONSTRAINT "Currency_PK" PRIMARY KEY ("id")
> )
> 20:48:15,039 [Schema                        ] Execution Time = 1 ms
> 20:48:15,043 [Schema                        ] Check of existence of
> "TaxRate" returned no table
> 20:48:15,043 [Schema                        ] Creating table "TaxRate"
> 20:48:15,043 [Schema                        ] CREATE TABLE "TaxRate"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "endDate" DATE NULL,
>     "externalReference" NVARCHAR(50) NULL,
>     "nextTaxRateId" BIGINT NULL,
>     "percentage" DECIMAL(19,2) NULL,
>     "startDate" DATE NULL,
>     "taxId" BIGINT NOT NULL,
>     "version" BIGINT NOT NULL,
>     CONSTRAINT "TaxRate_PK" PRIMARY KEY ("id")
> )
> 20:48:15,043 [Schema                        ] Execution Time = 0 ms
> 20:48:15,046 [Schema                        ] Check of existence of
> "PartyRegistration" returned no table
> 20:48:15,046 [Schema                        ] Creating table
> "PartyRegistration"
> 20:48:15,046 [Schema                        ] CREATE TABLE
> "PartyRegistration"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "endDate" DATE NULL,
>     "partyId" BIGINT NOT NULL,
>     "startDate" DATE NULL,
>     "type" NVARCHAR(30) NOT NULL,
>     "version" BIGINT NOT NULL,
>     CONSTRAINT "PartyRegistration_PK" PRIMARY KEY ("id")
> )
> 20:48:15,047 [Schema                        ] Execution Time = 1 ms
> 20:48:15,050 [Schema                        ] Check of existence of
> "AgreementRoleType" returned no table
> 20:48:15,050 [Schema                        ] Creating table
> "AgreementRoleType"
> 20:48:15,050 [Schema                        ] CREATE TABLE
> "AgreementRoleType"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "appliesToAgreementTypeId" BIGINT NOT NULL,
>     "title" NVARCHAR(50) NOT NULL,
>     CONSTRAINT "AgreementRoleType_PK" PRIMARY KEY ("id")
> )
> 20:48:15,051 [Schema                        ] Execution Time = 1 ms
> 20:48:15,055 [Schema                        ] Check of existence of
> "AuditEntry" returned no table
> 20:48:15,055 [Schema                        ] Creating table "AuditEntry"
> 20:48:15,056 [Schema                        ] CREATE TABLE "AuditEntry"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "identifier" NVARCHAR(20) NOT NULL,
>     "objectType" NVARCHAR(254) NOT NULL,
>     "postValue" NVARCHAR(255) NULL,
>     "preValue" NVARCHAR(255) NULL,
>     "timestampEpoch" BIGINT NOT NULL,
>     "user" NVARCHAR(50) NULL,
>     CONSTRAINT "AuditEntry_PK" PRIMARY KEY ("id")
> )
> 20:48:15,057 [Schema                        ] Execution Time = 1 ms
> 20:48:15,060 [Schema                        ] Check of existence of
> "FinancialAccount" returned no table
> 20:48:15,060 [Schema                        ] Creating table
> "FinancialAccount"
> 20:48:15,060 [Schema                        ] CREATE TABLE
> "FinancialAccount"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "name" NVARCHAR(50) NOT NULL,
>     "ownerPartyId" BIGINT NOT NULL,
>     "reference" NVARCHAR(24) NOT NULL,
>     "type" NVARCHAR(30) NOT NULL,
>     "version" BIGINT NOT NULL,
>     "discriminator" NVARCHAR(255) NOT NULL,
>     CONSTRAINT "FinancialAccount_PK" PRIMARY KEY ("id")
> )
> 20:48:15,062 [Schema                        ] Execution Time = 2 ms
> 20:48:15,068 [Schema                        ] Check of existence of
> "BankAccount" returned no table
> 20:48:15,068 [Schema                        ] Creating table "BankAccount"
> 20:48:15,068 [Schema                        ] CREATE TABLE "BankAccount"
> (
>     "id" BIGINT NOT NULL,
>     "accountNumber" NVARCHAR(20) NULL,
>     "bankPartyId" BIGINT NULL,
>     "bankAccountType" NVARCHAR(30) NOT NULL,
>     "branchCode" NVARCHAR(20) NULL,
>     "countryId" BIGINT NULL,
>     "iban" NVARCHAR(32) NULL,
>     "nationalBankCode" NVARCHAR(20) NULL,
>     "nationalCheckCode" NVARCHAR(20) NULL,
>     "fixedAssetId" BIGINT NULL,
>     CONSTRAINT "BankAccount_PK" PRIMARY KEY ("id")
> )
> 20:48:15,070 [Schema                        ] Execution Time = 2 ms
> 20:48:15,072 [Schema                        ] Check of existence of
> "UnitSize" returned no table
> 20:48:15,072 [Schema                        ] Creating table "UnitSize"
> 20:48:15,072 [Schema                        ] CREATE TABLE "UnitSize"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "name" NVARCHAR(50) NOT NULL,
>     "version" BIGINT NOT NULL,
>     CONSTRAINT "UnitSize_PK" PRIMARY KEY ("id")
> )
> 20:48:15,073 [Schema                        ] Execution Time = 1 ms
> 20:48:15,075 [Schema                        ] Check of existence of
> "ApplicationSetting" returned no table
> 20:48:15,075 [Schema                        ] Creating table
> "ApplicationSetting"
> 20:48:15,075 [Schema                        ] CREATE TABLE
> "ApplicationSetting"
> (
>     "key" NVARCHAR(128) NOT NULL,
>     "description" NVARCHAR(254) NULL,
>     "type" NVARCHAR(20) NOT NULL,
>     "valueRaw" NVARCHAR(255) NOT NULL,
>     CONSTRAINT "ApplicationSetting_PK" PRIMARY KEY ("key")
> )
> 20:48:15,076 [Schema                        ] Execution Time = 1 ms
> 20:48:15,079 [Schema                        ] Check of existence of
> "FixedAsset" returned no table
> 20:48:15,079 [Schema                        ] Creating table "FixedAsset"
> 20:48:15,079 [Schema                        ] CREATE TABLE "FixedAsset"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "name" NVARCHAR(50) NOT NULL,
>     "reference" NVARCHAR(24) NOT NULL,
>     "version" BIGINT NOT NULL,
>     "discriminator" NVARCHAR(255) NOT NULL,
>     CONSTRAINT "FixedAsset_PK" PRIMARY KEY ("id")
> )
> 20:48:15,080 [Schema                        ] Execution Time = 1 ms
> 20:48:15,082 [Schema                        ] Check of existence of
> "Property" returned no table
> 20:48:15,082 [Schema                        ] Creating table "Property"
> 20:48:15,082 [Schema                        ] CREATE TABLE "Property"
> (
>     "id" BIGINT NOT NULL,
>     "acquireDate" DATE NULL,
>     "area" DECIMAL(19,2) NULL,
>     "city" NVARCHAR(50) NULL,
>     "countryId" BIGINT NULL,
>     "disposalDate" DATE NULL,
>     "location" BLOB NULL,
>     "openingDate" DATE NULL,
>     "type" NVARCHAR(30) NOT NULL,
>     CONSTRAINT "Property_PK" PRIMARY KEY ("id")
> )
> 20:48:15,083 [Schema                        ] Execution Time = 1 ms
> 20:48:15,085 [Schema                        ] Check of existence of
> "LeaseAssignment" returned no table
> 20:48:15,085 [Schema                        ] Creating table
> "LeaseAssignment"
> 20:48:15,085 [Schema                        ] CREATE TABLE "LeaseAssignment"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "assignmentDate" DATE NOT NULL,
>     "nextLeaseId" BIGINT NULL,
>     "previousLeaseId" BIGINT NULL,
>     "type" NVARCHAR(30) NOT NULL,
>     "version" BIGINT NOT NULL,
>     CONSTRAINT "LeaseAssignment_PK" PRIMARY KEY ("id")
> )
> 20:48:15,086 [Schema                        ] Execution Time = 1 ms
> 20:48:15,087 [Schema                        ] Check of existence of "State"
> returned no table
> 20:48:15,087 [Schema                        ] Creating table "State"
> 20:48:15,087 [Schema                        ] CREATE TABLE "State"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "countryId" BIGINT NOT NULL,
>     "name" NVARCHAR(50) NOT NULL,
>     "reference" NVARCHAR(6) NOT NULL,
>     "version" BIGINT NOT NULL,
>     CONSTRAINT "State_PK" PRIMARY KEY ("id")
> )
> 20:48:15,088 [Schema                        ] Execution Time = 1 ms
> 20:48:15,090 [Schema                        ] Check of existence of
> "LeaseStatusReason" returned no table
> 20:48:15,090 [Schema                        ] Creating table
> "LeaseStatusReason"
> 20:48:15,090 [Schema                        ] CREATE TABLE
> "LeaseStatusReason"
> (
>     "LeaseStatusReason_ID" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "leaseId" BIGINT NOT NULL,
>     "reason" NVARCHAR(4000) NOT NULL,
>     "status" NVARCHAR(20) NOT NULL,
>     "timestamp" BIGINT NOT NULL,
>     "user" NVARCHAR(50) NOT NULL,
>     CONSTRAINT "LeaseStatusReason_PK" PRIMARY KEY ("LeaseStatusReason_ID")
> )
> 20:48:15,091 [Schema                        ] Execution Time = 1 ms
> 20:48:15,092 [Schema                        ] Check of existence of
> "Activity" returned no table
> 20:48:15,092 [Schema                        ] Creating table "Activity"
> 20:48:15,093 [Schema                        ] CREATE TABLE "Activity"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "name" NVARCHAR(50) NOT NULL,
>     "sectorId" BIGINT NOT NULL,
>     "version" BIGINT NOT NULL,
>     CONSTRAINT "Activity_PK" PRIMARY KEY ("id")
> )
> 20:48:15,093 [Schema                        ] Execution Time = 0 ms
> 20:48:15,095 [Schema                        ] Check of existence of "Party"
> returned no table
> 20:48:15,095 [Schema                        ] Creating table "Party"
> 20:48:15,095 [Schema                        ] CREATE TABLE "Party"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "name" NVARCHAR(80) NOT NULL,
>     "reference" NVARCHAR(24) NOT NULL,
>     "version" BIGINT NOT NULL,
>     "discriminator" NVARCHAR(255) NOT NULL,
>     CONSTRAINT "Party_PK" PRIMARY KEY ("id")
> )
> 20:48:15,096 [Schema                        ] Execution Time = 1 ms
> 20:48:15,098 [Schema                        ] Check of existence of
> "Organisation" returned no table
> 20:48:15,098 [Schema                        ] Creating table "Organisation"
> 20:48:15,098 [Schema                        ] CREATE TABLE "Organisation"
> (
>     "id" BIGINT NOT NULL,
>     "fiscalCode" NVARCHAR(30) NULL,
>     "vatCode" NVARCHAR(30) NULL,
>     CONSTRAINT "Organisation_PK" PRIMARY KEY ("id")
> )
> 20:48:15,099 [Schema                        ] Execution Time = 1 ms
> 20:48:15,101 [Schema                        ] Check of existence of
> "FixedAssetRegistrationType" returned no table
> 20:48:15,101 [Schema                        ] Creating table
> "FixedAssetRegistrationType"
> 20:48:15,101 [Schema                        ] CREATE TABLE
> "FixedAssetRegistrationType"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "fullyQualifiedClassName" NVARCHAR(254) NOT NULL,
>     "title" NVARCHAR(50) NOT NULL,
>     CONSTRAINT "FixedAssetRegistrationType_PK" PRIMARY KEY ("id")
> )
> 20:48:15,103 [Schema                        ] Execution Time = 1 ms
> 20:48:15,105 [Schema                        ] Check of existence of
> "FixedAssetRegistration" returned no table
> 20:48:15,105 [Schema                        ] Creating table
> "FixedAssetRegistration"
> 20:48:15,106 [Schema                        ] CREATE TABLE
> "FixedAssetRegistration"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "subjectId" BIGINT NOT NULL,
>     "typeId" BIGINT NOT NULL,
>     "version" BIGINT NOT NULL,
>     "discriminator" NVARCHAR(255) NOT NULL,
>     CONSTRAINT "FixedAssetRegistration_PK" PRIMARY KEY ("id")
> )
> 20:48:15,107 [Schema                        ] Execution Time = 1 ms
> 20:48:15,109 [Schema                        ] Check of existence of
> "LandRegister" returned no table
> 20:48:15,109 [Schema                        ] Creating table "LandRegister"
> 20:48:15,110 [Schema                        ] CREATE TABLE "LandRegister"
> (
>     "id" BIGINT NOT NULL,
>     "categoria" NVARCHAR(255) NULL,
>     "classe" NVARCHAR(255) NULL,
>     "codiceComuneCatastale" NVARCHAR(255) NULL,
>     "comuneAmministrativo" NVARCHAR(255) NULL,
>     "comuneCatastale" NVARCHAR(255) NULL,
>     "consistenza" NVARCHAR(255) NULL,
>     "foglio" NVARCHAR(255) NULL,
>     "particella" NVARCHAR(255) NULL,
>     "rendita" NVARCHAR(255) NULL,
>     "subalterno" NVARCHAR(255) NULL,
>     CONSTRAINT "LandRegister_PK" PRIMARY KEY ("id")
> )
> 20:48:15,110 [Schema                        ] Execution Time = 0 ms
> 20:48:15,112 [Schema                        ] Check of existence of "Tag"
> returned no table
> 20:48:15,112 [Schema                        ] Creating table "Tag"
> 20:48:15,112 [Schema                        ] CREATE TABLE "Tag"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "name" NVARCHAR(50) NOT NULL,
>     "objectType" NVARCHAR(254) NOT NULL,
>     "taggable_Occupancy_id_EID" BIGINT NULL,
>     "value" NVARCHAR(255) NOT NULL,
>     "version" BIGINT NOT NULL,
>     CONSTRAINT "Tag_PK" PRIMARY KEY ("id")
> )
> 20:48:15,114 [Schema                        ] Execution Time = 1 ms
> 20:48:15,116 [Schema                        ] Check of existence of
> "Charge" returned no table
> 20:48:15,116 [Schema                        ] Creating table "Charge"
> 20:48:15,116 [Schema                        ] CREATE TABLE "Charge"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "description" NVARCHAR(254) NOT NULL,
>     "externalReference" NVARCHAR(50) NULL,
>     "groupId" BIGINT NOT NULL,
>     "name" NVARCHAR(50) NOT NULL,
>     "reference" NVARCHAR(24) NOT NULL,
>     "sortOrder" NVARCHAR(24) NULL,
>     "taxId" BIGINT NOT NULL,
>     "version" BIGINT NOT NULL,
>     CONSTRAINT "Charge_PK" PRIMARY KEY ("id")
> )
> 20:48:15,117 [Schema                        ] Execution Time = 1 ms
> 20:48:15,120 [Schema                        ] Check of existence of
> "IndexValue" returned no table
> 20:48:15,120 [Schema                        ] Creating table "IndexValue"
> 20:48:15,120 [Schema                        ] CREATE TABLE "IndexValue"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "indexBaseId" BIGINT NOT NULL,
>     "startDate" DATE NOT NULL,
>     "value" DECIMAL(19,4) NOT NULL,
>     "version" BIGINT NOT NULL,
>     CONSTRAINT "IndexValue_PK" PRIMARY KEY ("id")
> )
> 20:48:15,121 [Schema                        ] Execution Time = 1 ms
> 20:48:15,124 [Schema                        ] Check of existence of "Tax"
> returned no table
> 20:48:15,124 [Schema                        ] Creating table "Tax"
> 20:48:15,124 [Schema                        ] CREATE TABLE "Tax"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "externalReference" NVARCHAR(50) NULL,
>     "name" NVARCHAR(50) NULL,
>     "reference" NVARCHAR(24) NOT NULL,
>     "version" BIGINT NOT NULL,
>     CONSTRAINT "Tax_PK" PRIMARY KEY ("id")
> )
> 20:48:15,125 [Schema                        ] Execution Time = 1 ms
> 20:48:15,127 [Schema                        ] Check of existence of
> "Invoice" returned no table
> 20:48:15,127 [Schema                        ] Creating table "Invoice"
> 20:48:15,127 [Schema                        ] CREATE TABLE "Invoice"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "buyerPartyId" BIGINT NOT NULL,
>     "collectionNumber" NVARCHAR(16) NULL,
>     "currencyId" BIGINT NULL,
>     "dueDate" DATE NOT NULL,
>     "invoiceDate" DATE NULL,
>     "invoiceNumber" NVARCHAR(16) NULL,
>     "lastItemSequence" NUMERIC NULL,
>     "sourceLeaseId" BIGINT NULL,
>     "paymentMethod" NVARCHAR(30) NOT NULL,
>     "sellerPartyId" BIGINT NOT NULL,
>     "status" NVARCHAR(20) NOT NULL,
>     "version" BIGINT NOT NULL,
>     CONSTRAINT "Invoice_PK" PRIMARY KEY ("id")
> )
> 20:48:15,129 [Schema                        ] Execution Time = 2 ms
> 20:48:15,130 [Schema                        ] Check of existence of
> "Person" returned no table
> 20:48:15,130 [Schema                        ] Creating table "Person"
> 20:48:15,131 [Schema                        ] CREATE TABLE "Person"
> (
>     "id" BIGINT NOT NULL,
>     "firstName" NVARCHAR(50) NULL,
>     "gender" NVARCHAR(30) NOT NULL,
>     "initials" NVARCHAR(3) NULL,
>     "lastName" NVARCHAR(50) NOT NULL,
>     CONSTRAINT "Person_PK" PRIMARY KEY ("id")
> )
> 20:48:15,131 [Schema                        ] Execution Time = 0 ms
> 20:48:15,133 [Schema                        ] Check of existence of
> "Country" returned no table
> 20:48:15,133 [Schema                        ] Creating table "Country"
> 20:48:15,134 [Schema                        ] CREATE TABLE "Country"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "alpha2Code" NVARCHAR(2) NOT NULL,
>     "name" NVARCHAR(50) NOT NULL,
>     "reference" NVARCHAR(24) NOT NULL,
>     "version" BIGINT NOT NULL,
>     CONSTRAINT "Country_PK" PRIMARY KEY ("id")
> )
> 20:48:15,135 [Schema                        ] Execution Time = 1 ms
> 20:48:15,137 [Schema                        ] Check of existence of "Lease"
> returned no table
> 20:48:15,137 [Schema                        ] Creating table "Lease"
> 20:48:15,137 [Schema                        ] CREATE TABLE "Lease"
> (
>     "id" BIGINT NOT NULL,
>     "leaseTypeId" BIGINT NULL,
>     "paidByBankMandateId" BIGINT NULL,
>     "status" NVARCHAR(20) NOT NULL,
>     "tenancyEndDate" DATE NULL,
>     "tenancyStartDate" DATE NULL,
>     CONSTRAINT "Lease_PK" PRIMARY KEY ("id")
> )
> 20:48:15,138 [Schema                        ] Execution Time = 1 ms
> 20:48:15,140 [Schema                        ] Check of existence of
> "LeaseItem" returned no table
> 20:48:15,140 [Schema                        ] Creating table "LeaseItem"
> 20:48:15,140 [Schema                        ] CREATE TABLE "LeaseItem"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "chargeId" BIGINT NOT NULL,
>     "endDate" DATE NULL,
>     "epochDate" DATE NULL,
>     "invoicingFrequency" NVARCHAR(30) NOT NULL,
>     "leaseId" BIGINT NOT NULL,
>     "nextDueDate" DATE NULL,
>     "paymentMethod" NVARCHAR(30) NOT NULL,
>     "sequence" NUMERIC NOT NULL,
>     "startDate" DATE NULL,
>     "status" NVARCHAR(20) NOT NULL,
>     "type" NVARCHAR(30) NOT NULL,
>     "version" BIGINT NOT NULL,
>     CONSTRAINT "LeaseItem_PK" PRIMARY KEY ("id")
> )
> 20:48:15,142 [Schema                        ] Execution Time = 2 ms
> 20:48:15,144 [Schema                        ] Check of existence of
> "AgreementRoleCommunicationChannelType" returned no table
> 20:48:15,144 [Schema                        ] Creating table
> "AgreementRoleCommunicationChannelType"
> 20:48:15,144 [Schema                        ] CREATE TABLE
> "AgreementRoleCommunicationChannelType"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "appliesToAgreementTypeId" BIGINT NOT NULL,
>     "title" NVARCHAR(50) NOT NULL,
>     CONSTRAINT "AgreementRoleCommunicationChannelType_PK" PRIMARY KEY ("id")
> )
> 20:48:15,145 [Schema                        ] Execution Time = 1 ms
> 20:48:15,148 [Schema                        ] Check of existence of
> "LeaseType" returned no table
> 20:48:15,148 [Schema                        ] Creating table "LeaseType"
> 20:48:15,148 [Schema                        ] CREATE TABLE "LeaseType"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "name" NVARCHAR(50) NOT NULL,
>     "reference" NVARCHAR(24) NOT NULL,
>     CONSTRAINT "LeaseType_PK" PRIMARY KEY ("id")
> )
> 20:48:15,149 [Schema                        ] Execution Time = 1 ms
> 20:48:15,151 [Schema                        ] Check of existence of
> "AgreementRoleCommunicationChannel" returned no table
> 20:48:15,151 [Schema                        ] Creating table
> "AgreementRoleCommunicationChannel"
> 20:48:15,151 [Schema                        ] CREATE TABLE
> "AgreementRoleCommunicationChannel"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "communicationChannelId" BIGINT NOT NULL,
>     "endDate" DATE NULL,
>     "agreementRoleId" BIGINT NOT NULL,
>     "startDate" DATE NULL,
>     "typeId" BIGINT NOT NULL,
>     "version" BIGINT NOT NULL,
>     CONSTRAINT "AgreementRoleCommunicationChannel_PK" PRIMARY KEY ("id")
> )
> 20:48:15,153 [Schema                        ] Execution Time = 1 ms
> 20:48:15,155 [Schema                        ] Check of existence of
> "AgreementType" returned no table
> 20:48:15,155 [Schema                        ] Creating table "AgreementType"
> 20:48:15,155 [Schema                        ] CREATE TABLE "AgreementType"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "title" NVARCHAR(50) NOT NULL,
>     CONSTRAINT "AgreementType_PK" PRIMARY KEY ("id")
> )
> 20:48:15,156 [Schema                        ] Execution Time = 1 ms
> 20:48:15,158 [Schema                        ] Check of existence of
> "Occupancy" returned no table
> 20:48:15,158 [Schema                        ] Creating table "Occupancy"
> 20:48:15,158 [Schema                        ] CREATE TABLE "Occupancy"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "activityId" BIGINT NULL,
>     "brandId" BIGINT NULL,
>     "endDate" DATE NULL,
>     "leaseId" BIGINT NOT NULL,
>     "reportOCR" NVARCHAR(30) NOT NULL,
>     "reportRent" NVARCHAR(30) NOT NULL,
>     "reportTurnover" NVARCHAR(30) NOT NULL,
>     "sectorId" BIGINT NULL,
>     "startDate" DATE NULL,
>     "unitId" BIGINT NOT NULL,
>     "unitSizeId" BIGINT NULL,
>     "version" BIGINT NOT NULL,
>     CONSTRAINT "Occupancy_PK" PRIMARY KEY ("id")
> )
> 20:48:15,160 [Schema                        ] Execution Time = 2 ms
> 20:48:15,161 [Schema                        ] Check of existence of
> "IndexBase" returned no table
> 20:48:15,161 [Schema                        ] Creating table "IndexBase"
> 20:48:15,161 [Schema                        ] CREATE TABLE "IndexBase"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "factor" DECIMAL(19,4) NULL,
>     "indexId" BIGINT NOT NULL,
>     "nextIndexBaseId" BIGINT NULL,
>     "startDate" DATE NOT NULL,
>     "version" BIGINT NOT NULL,
>     CONSTRAINT "IndexBase_PK" PRIMARY KEY ("id")
> )
> 20:48:15,162 [Schema                        ] Execution Time = 1 ms
> 20:48:15,164 [Schema                        ] Check of existence of "Index"
> returned no table
> 20:48:15,164 [Schema                        ] Creating table "Index"
> 20:48:15,164 [Schema                        ] CREATE TABLE "Index"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "name" NVARCHAR(50) NOT NULL,
>     "reference" NVARCHAR(24) NOT NULL,
>     "version" BIGINT NOT NULL,
>     CONSTRAINT "Index_PK" PRIMARY KEY ("id")
> )
> 20:48:15,165 [Schema                        ] Execution Time = 1 ms
> 20:48:15,167 [Schema                        ] Check of existence of
> "AgreementRole" returned no table
> 20:48:15,167 [Schema                        ] Creating table "AgreementRole"
> 20:48:15,167 [Schema                        ] CREATE TABLE "AgreementRole"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "agreementId" BIGINT NOT NULL,
>     "endDate" DATE NULL,
>     "partyId" BIGINT NOT NULL,
>     "startDate" DATE NULL,
>     "typeId" BIGINT NOT NULL,
>     "version" BIGINT NOT NULL,
>     CONSTRAINT "AgreementRole_PK" PRIMARY KEY ("id")
> )
> 20:48:15,168 [Schema                        ] Execution Time = 1 ms
> 20:48:15,170 [Schema                        ] Check of existence of
> "Sector" returned no table
> 20:48:15,170 [Schema                        ] Creating table "Sector"
> 20:48:15,170 [Schema                        ] CREATE TABLE "Sector"
> (
>     "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
>     "name" NVARCHAR(50) NOT NULL,
>     "version" BIGINT NOT NULL,
>     CONSTRAINT "Sector_PK" PRIMARY KEY ("id")
> )
> 20:48:15,171 [Schema                        ] Execution Time = 1 ms
> 20:48:15,176 [Schema                        ] Creating foreign key
> constraint : "CommunicationChannel_FK2" in catalog "" schema ""
> 20:48:15,176 [Schema                        ] ALTER TABLE
> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK2" FOREIGN
> KEY ("stateId") REFERENCES "State" ("id")
> 20:48:15,178 [Schema                        ] Execution Time = 2 ms
> 20:48:15,178 [Schema                        ] Creating foreign key
> constraint : "CommunicationChannel_FK1" in catalog "" schema ""
> 20:48:15,178 [Schema                        ] ALTER TABLE
> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK1" FOREIGN
> KEY ("countryId") REFERENCES "Country" ("id")
> 20:48:15,180 [Schema                        ] Execution Time = 2 ms
> 20:48:15,180 [Schema                        ] Creating foreign key
> constraint : "CommunicationChannel_FK4" in catalog "" schema ""
> 20:48:15,180 [Schema                        ] ALTER TABLE
> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK4" FOREIGN
> KEY ("ownerPersonId") REFERENCES "Person" ("id")
> 20:48:15,181 [Schema                        ] Execution Time = 1 ms
> 20:48:15,181 [Schema                        ] Creating foreign key
> constraint : "CommunicationChannel_FK3" in catalog "" schema ""
> 20:48:15,181 [Schema                        ] ALTER TABLE
> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK3" FOREIGN
> KEY ("ownerOrganisationId") REFERENCES "Organisation" ("id")
> 20:48:15,182 [Schema                        ] Execution Time = 1 ms
> 20:48:15,182 [Schema                        ] Creating foreign key
> constraint : "CommunicationChannel_FK6" in catalog "" schema ""
> 20:48:15,182 [Schema                        ] ALTER TABLE
> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK6" FOREIGN
> KEY ("ownerUnitId") REFERENCES "Unit" ("id")
> 20:48:15,183 [Schema                        ] Execution Time = 1 ms
> 20:48:15,183 [Schema                        ] Creating foreign key
> constraint : "CommunicationChannel_FK5" in catalog "" schema ""
> 20:48:15,183 [Schema                        ] ALTER TABLE
> "CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK5" FOREIGN
> KEY ("ownerPropertyId") REFERENCES "Property" ("id")
> 20:48:15,184 [Schema                        ] Execution Time = 1 ms
> 20:48:15,186 [Schema                        ] Creating index
> "CommunicationChannel_N53" in catalog "" schema ""
> 20:48:15,186 [Schema                        ] CREATE INDEX
> "CommunicationChannel_N53" ON "CommunicationChannel" ("countryId")
> 20:48:15,187 [Schema                        ] Execution Time = 0 ms
> 20:48:15,187 [Schema                        ] Creating index
> "CommunicationChannel_N54" in catalog "" schema ""
> 20:48:15,187 [Schema                        ] CREATE INDEX
> "CommunicationChannel_N54" ON "CommunicationChannel" ("ownerUnitId")
> 20:48:15,187 [Schema                        ] Execution Time = 0 ms
> 20:48:15,187 [Schema                        ] Creating index
> "CommunicationChannel_N51" in catalog "" schema ""
> 20:48:15,187 [Schema                        ] CREATE INDEX
> "CommunicationChannel_N51" ON "CommunicationChannel" ("ownerPropertyId")
> 20:48:15,187 [Schema                        ] Execution Time = 0 ms
> 20:48:15,187 [Schema                        ] Creating index
> "CommunicationChannel_N52" in catalog "" schema ""
> 20:48:15,187 [Schema                        ] CREATE INDEX
> "CommunicationChannel_N52" ON "CommunicationChannel" ("stateId")
> 20:48:15,188 [Schema                        ] Execution Time = 1 ms
> 20:48:15,188 [Schema                        ] Creating index
> "PhoneNumber_phoneNumber_IDX" in catalog "" schema ""
> 20:48:15,188 [Schema                        ] CREATE INDEX
> "PhoneNumber_phoneNumber_IDX" ON "CommunicationChannel" ("phoneNumber")
> 20:48:15,188 [Schema                        ] Execution Time = 0 ms
> 20:48:15,188 [Schema                        ] Creating index
> "PostalAddress_main_idx" in catalog "" schema ""
> 20:48:15,188 [Schema                        ] CREATE INDEX
> "PostalAddress_main_idx" ON "CommunicationChannel"
> ("ownerOrganisationId","ownerPersonId","ownerPropertyId","ownerUnitId","address1","postalCode","city","countryId")
> 20:48:15,188 [Schema                        ] Execution Time = 0 ms
> 20:48:15,188 [Schema                        ] Creating index
> "CommunicationChannel_N49" in catalog "" schema ""
> 20:48:15,188 [Schema                        ] CREATE INDEX
> "CommunicationChannel_N49" ON "CommunicationChannel" ("ownerOrganisationId")
> 20:48:15,189 [Schema                        ] Execution Time = 0 ms
> 20:48:15,189 [Schema                        ] Creating index
> "CommunicationChannel_N50" in catalog "" schema ""
> 20:48:15,189 [Schema                        ] CREATE INDEX
> "CommunicationChannel_N50" ON "CommunicationChannel" ("ownerPersonId")
> 20:48:15,189 [Schema                        ] Execution Time = 0 ms
> 20:48:15,189 [Schema                        ] Creating index
> "EmailAddress_emailAddress_IDX" in catalog "" schema ""
> 20:48:15,189 [Schema                        ] CREATE INDEX
> "EmailAddress_emailAddress_IDX" ON "CommunicationChannel" ("emailAddress")
> 20:48:15,190 [Schema                        ] Execution Time = 1 ms
> 20:48:15,190 [Schema                        ] Creating foreign key
> constraint : "LeaseTerm_FK2" in catalog "" schema ""
> 20:48:15,190 [Schema                        ] ALTER TABLE "LeaseTerm" ADD
> CONSTRAINT "LeaseTerm_FK2" FOREIGN KEY ("indexId") REFERENCES "Index"
> ("id")
> 20:48:15,192 [Schema                        ] Execution Time = 2 ms
> 20:48:15,192 [Schema                        ] Creating foreign key
> constraint : "LeaseTerm_FK3" in catalog "" schema ""
> 20:48:15,192 [Schema                        ] ALTER TABLE "LeaseTerm" ADD
> CONSTRAINT "LeaseTerm_FK3" FOREIGN KEY ("nextLeaseTermId") REFERENCES
> "LeaseTerm" ("id")
> 20:48:15,194 [Schema                        ] Execution Time = 2 ms
> 20:48:15,194 [Schema                        ] Creating foreign key
> constraint : "LeaseTerm_FK1" in catalog "" schema ""
> 20:48:15,194 [Schema                        ] ALTER TABLE "LeaseTerm" ADD
> CONSTRAINT "LeaseTerm_FK1" FOREIGN KEY ("leaseItemId") REFERENCES
> "LeaseItem" ("id")
> 20:48:15,195 [Schema                        ] Execution Time = 1 ms
> 20:48:15,196 [Schema                        ] Creating index
> "LeaseTerm_N50" in catalog "" schema ""
> 20:48:15,196 [Schema                        ] CREATE INDEX "LeaseTerm_N50"
> ON "LeaseTerm" ("indexId")
> 20:48:15,196 [Schema                        ] Execution Time = 0 ms
> 20:48:15,196 [Schema                        ] Creating index
> "LeaseTerm_leaseItem_startDate_IDX" in catalog "" schema ""
> 20:48:15,196 [Schema                        ] CREATE INDEX
> "LeaseTerm_leaseItem_startDate_IDX" ON "LeaseTerm"
> ("leaseItemId","startDate")
> 20:48:15,196 [Schema                        ] Execution Time = 0 ms
> 20:48:15,196 [Schema                        ] Creating index
> "LeaseTerm_N51" in catalog "" schema ""
> 20:48:15,196 [Schema                        ] CREATE INDEX "LeaseTerm_N51"
> ON "LeaseTerm" ("leaseItemId")
> 20:48:15,197 [Schema                        ] Execution Time = 0 ms
> 20:48:15,197 [Schema                        ] Creating index
> "LeaseTerm_N49" in catalog "" schema ""
> 20:48:15,197 [Schema                        ] CREATE INDEX "LeaseTerm_N49"
> ON "LeaseTerm" ("nextLeaseTermId")
> 20:48:15,197 [Schema                        ] Execution Time = 0 ms
> 20:48:15,197 [Schema                        ] Creating index
> "LeaseTerm_leaseItem_sequence_IDX" in catalog "" schema ""
> 20:48:15,197 [Schema                        ] CREATE INDEX
> "LeaseTerm_leaseItem_sequence_IDX" ON "LeaseTerm" ("leaseItemId","sequence")
> 20:48:15,197 [Schema                        ] Execution Time = 0 ms
> 20:48:15,198 [Schema                        ] Creating foreign key
> constraint : "Unit_FK1" in catalog "" schema ""
> 20:48:15,198 [Schema                        ] ALTER TABLE "Unit" ADD
> CONSTRAINT "Unit_FK1" FOREIGN KEY ("id") REFERENCES "FixedAsset" ("id")
> 20:48:15,199 [Schema                        ] Execution Time = 1 ms
> 20:48:15,199 [Schema                        ] Creating foreign key
> constraint : "Unit_FK2" in catalog "" schema ""
> 20:48:15,199 [Schema                        ] ALTER TABLE "Unit" ADD
> CONSTRAINT "Unit_FK2" FOREIGN KEY ("propertyId") REFERENCES "Property"
> ("id")
> 20:48:15,200 [Schema                        ] Execution Time = 1 ms
> 20:48:15,200 [Schema                        ] Creating index "Unit_N49" in
> catalog "" schema ""
> 20:48:15,200 [Schema                        ] CREATE INDEX "Unit_N49" ON
> "Unit" ("propertyId")
> 20:48:15,200 [Schema                        ] Execution Time = 0 ms
> 20:48:15,200 [Schema                        ] Unique metadata defined to
> use field notificationDate which doesn't exist in this class
> 20:48:15,200 [Schema                        ] Creating foreign key
> constraint : "BreakOption_FK1" in catalog "" schema ""
> 20:48:15,200 [Schema                        ] ALTER TABLE "BreakOption" ADD
> CONSTRAINT "BreakOption_FK1" FOREIGN KEY ("leaseId") REFERENCES "Lease"
> ("id")
> 20:48:15,202 [Schema                        ] Execution Time = 1 ms
> 20:48:15,202 [Schema                        ] Creating index
> "BreakOption_N49" in catalog "" schema ""
> 20:48:15,202 [Schema                        ] CREATE INDEX
> "BreakOption_N49" ON "BreakOption" ("leaseId")
> 20:48:15,203 [Schema                        ] Execution Time = 1 ms
> 20:48:15,203 [Schema                        ] Creating foreign key
> constraint : "InvoiceItem_FK4" in catalog "" schema ""
> 20:48:15,203 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
> CONSTRAINT "InvoiceItem_FK4" FOREIGN KEY ("invoiceId") REFERENCES "Invoice"
> ("id")
> 20:48:15,204 [Schema                        ] Execution Time = 1 ms
> 20:48:15,204 [Schema                        ] Creating foreign key
> constraint : "InvoiceItem_FK3" in catalog "" schema ""
> 20:48:15,204 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
> CONSTRAINT "InvoiceItem_FK3" FOREIGN KEY ("leaseTermId") REFERENCES
> "LeaseTerm" ("id")
> 20:48:15,205 [Schema                        ] Execution Time = 1 ms
> 20:48:15,205 [Schema                        ] Creating foreign key
> constraint : "InvoiceItem_FK2" in catalog "" schema ""
> 20:48:15,205 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
> CONSTRAINT "InvoiceItem_FK2" FOREIGN KEY ("chargeId") REFERENCES "Charge"
> ("id")
> 20:48:15,206 [Schema                        ] Execution Time = 1 ms
> 20:48:15,206 [Schema                        ] Creating foreign key
> constraint : "InvoiceItem_FK1" in catalog "" schema ""
> 20:48:15,206 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
> CONSTRAINT "InvoiceItem_FK1" FOREIGN KEY ("taxId") REFERENCES "Tax" ("id")
> 20:48:15,207 [Schema                        ] Execution Time = 1 ms
> 20:48:15,208 [Schema                        ] Creating index
> "InvoiceItem_N51" in catalog "" schema ""
> 20:48:15,208 [Schema                        ] CREATE INDEX
> "InvoiceItem_N51" ON "InvoiceItem" ("taxId")
> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
> 20:48:15,208 [Schema                        ] Creating index
> "InvoiceItem_N50" in catalog "" schema ""
> 20:48:15,208 [Schema                        ] CREATE INDEX
> "InvoiceItem_N50" ON "InvoiceItem" ("invoiceId")
> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
> 20:48:15,208 [Schema                        ] Creating index
> "InvoiceItem_N52" in catalog "" schema ""
> 20:48:15,208 [Schema                        ] CREATE INDEX
> "InvoiceItem_N52" ON "InvoiceItem" ("leaseTermId")
> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
> 20:48:15,208 [Schema                        ] Creating index
> "InvoiceItemForLease_LeaseTerm_StartDate_EndDate_DueDate_IDX" in catalog ""
> schema ""
> 20:48:15,208 [Schema                        ] CREATE INDEX
> "InvoiceItemForLease_LeaseTerm_StartDate_EndDate_DueDate_IDX" ON
> "InvoiceItem" ("leaseTermId","startDate","endDate","dueDate")
> 20:48:15,208 [Schema                        ] Execution Time = 0 ms
> 20:48:15,208 [Schema                        ] Creating index
> "InvoiceItem_N49" in catalog "" schema ""
> 20:48:15,208 [Schema                        ] CREATE INDEX
> "InvoiceItem_N49" ON "InvoiceItem" ("chargeId")
> 20:48:15,209 [Schema                        ] Execution Time = 1 ms
> 20:48:15,209 [Schema                        ] Creating candidate key
> "Brand_name_UNQ" in catalog "" schema ""
> 20:48:15,209 [Schema                        ] ALTER TABLE "Brand" ADD
> CONSTRAINT "Brand_name_UNQ" UNIQUE ("name")
> 20:48:15,209 [Schema                        ] Execution Time = 0 ms
> 20:48:15,209 [Schema                        ] Creating foreign key
> constraint : "FixedAssetRole_FK1" in catalog "" schema ""
> 20:48:15,209 [Schema                        ] ALTER TABLE "FixedAssetRole"
> ADD CONSTRAINT "FixedAssetRole_FK1" FOREIGN KEY ("assetId") REFERENCES
> "FixedAsset" ("id")
> 20:48:15,210 [Schema                        ] Execution Time = 1 ms
> 20:48:15,210 [Schema                        ] Creating foreign key
> constraint : "FixedAssetRole_FK2" in catalog "" schema ""
> 20:48:15,210 [Schema                        ] ALTER TABLE "FixedAssetRole"
> ADD CONSTRAINT "FixedAssetRole_FK2" FOREIGN KEY ("partyId") REFERENCES
> "Party" ("id")
> 20:48:15,211 [Schema                        ] Execution Time = 1 ms
> 20:48:15,211 [Schema                        ] Creating index
> "FixedAssetRole_N50" in catalog "" schema ""
> 20:48:15,211 [Schema                        ] CREATE INDEX
> "FixedAssetRole_N50" ON "FixedAssetRole" ("assetId")
> 20:48:15,211 [Schema                        ] Execution Time = 0 ms
> 20:48:15,212 [Schema                        ] Creating index
> "FixedAssetRole_N49" in catalog "" schema ""
> 20:48:15,212 [Schema                        ] CREATE INDEX
> "FixedAssetRole_N49" ON "FixedAssetRole" ("partyId")
> 20:48:15,212 [Schema                        ] Execution Time = 0 ms
> 20:48:15,212 [Schema                        ] Creating candidate key
> "Agreement_reference_UNQ" in catalog "" schema ""
> 20:48:15,212 [Schema                        ] ALTER TABLE "Agreement" ADD
> CONSTRAINT "Agreement_reference_UNQ" UNIQUE ("reference")
> 20:48:15,213 [Schema                        ] Execution Time = 1 ms
> 20:48:15,213 [Schema                        ] Creating foreign key
> constraint : "Agreement_FK1" in catalog "" schema ""
> 20:48:15,213 [Schema                        ] ALTER TABLE "Agreement" ADD
> CONSTRAINT "Agreement_FK1" FOREIGN KEY ("typeId") REFERENCES
> "AgreementType" ("id")
> 20:48:15,214 [Schema                        ] Execution Time = 1 ms
> 20:48:15,214 [Schema                        ] Creating foreign key
> constraint : "Agreement_FK2" in catalog "" schema ""
> 20:48:15,214 [Schema                        ] ALTER TABLE "Agreement" ADD
> CONSTRAINT "Agreement_FK2" FOREIGN KEY ("nextAgreementId") REFERENCES
> "Agreement" ("id")
> 20:48:15,214 [Schema                        ] Execution Time = 0 ms
> 20:48:15,215 [Schema                        ] Creating index
> "Lease_reference_name_IDX" in catalog "" schema ""
> 20:48:15,215 [Schema                        ] CREATE INDEX
> "Lease_reference_name_IDX" ON "Agreement" ("reference","name")
> 20:48:15,215 [Schema                        ] Execution Time = 0 ms
> 20:48:15,215 [Schema                        ] Creating index
> "Agreement_N50" in catalog "" schema ""
> 20:48:15,215 [Schema                        ] CREATE INDEX "Agreement_N50"
> ON "Agreement" ("typeId")
> 20:48:15,215 [Schema                        ] Execution Time = 0 ms
> 20:48:15,215 [Schema                        ] Creating index
> "Agreement_N49" in catalog "" schema ""
> 20:48:15,215 [Schema                        ] CREATE INDEX "Agreement_N49"
> ON "Agreement" ("nextAgreementId")
> 20:48:15,215 [Schema                        ] Execution Time = 0 ms
> 20:48:15,215 [Schema                        ] Creating foreign key
> constraint : "BankMandate_FK1" in catalog "" schema ""
> 20:48:15,215 [Schema                        ] ALTER TABLE "BankMandate" ADD
> CONSTRAINT "BankMandate_FK1" FOREIGN KEY ("id") REFERENCES "Agreement"
> ("id")
> 20:48:15,216 [Schema                        ] Execution Time = 1 ms
> 20:48:15,216 [Schema                        ] Creating foreign key
> constraint : "BankMandate_FK2" in catalog "" schema ""
> 20:48:15,216 [Schema                        ] ALTER TABLE "BankMandate" ADD
> CONSTRAINT "BankMandate_FK2" FOREIGN KEY ("bankAccountId") REFERENCES
> "FinancialAccount" ("id")
> 20:48:15,216 [Schema                        ] Execution Time = 0 ms
> 20:48:15,217 [Schema                        ] Creating index
> "BankMandate_N49" in catalog "" schema ""
> 20:48:15,217 [Schema                        ] CREATE INDEX
> "BankMandate_N49" ON "BankMandate" ("bankAccountId")
> 20:48:15,217 [Schema                        ] Execution Time = 0 ms
> 20:48:15,217 [Schema                        ] Creating foreign key
> constraint : "Event_FK1" in catalog "" schema ""
> 20:48:15,217 [Schema                        ] ALTER TABLE "Event" ADD
> CONSTRAINT "Event_FK1" FOREIGN KEY ("subjectBreakOptionId") REFERENCES
> "BreakOption" ("id")
> 20:48:15,218 [Schema                        ] Execution Time = 1 ms
> 20:48:15,218 [Schema                        ] Creating index "Event_N49" in
> catalog "" schema ""
> 20:48:15,218 [Schema                        ] CREATE INDEX "Event_N49" ON
> "Event" ("subjectBreakOptionId")
> 20:48:15,218 [Schema                        ] Execution Time = 0 ms
> 20:48:15,218 [Schema                        ] Creating candidate key
> "ChargeGroup_reference_UNQ" in catalog "" schema ""
> 20:48:15,218 [Schema                        ] ALTER TABLE "ChargeGroup" ADD
> CONSTRAINT "ChargeGroup_reference_UNQ" UNIQUE ("reference")
> 20:48:15,219 [Schema                        ] Execution Time = 1 ms
> 20:48:15,219 [Schema                        ] Creating candidate key
> "Currency_reference_UNQ" in catalog "" schema ""
> 20:48:15,219 [Schema                        ] ALTER TABLE "Currency" ADD
> CONSTRAINT "Currency_reference_UNQ" UNIQUE ("reference")
> 20:48:15,219 [Schema                        ] Execution Time = 0 ms
> 20:48:15,220 [Schema                        ] Creating candidate key
> "Currency_name_UNQ" in catalog "" schema ""
> 20:48:15,220 [Schema                        ] ALTER TABLE "Currency" ADD
> CONSTRAINT "Currency_name_UNQ" UNIQUE ("name")
> 20:48:15,221 [Schema                        ] Execution Time = 1 ms
> 20:48:15,221 [Schema                        ] Creating foreign key
> constraint : "TaxRate_FK1" in catalog "" schema ""
> 20:48:15,221 [Schema                        ] ALTER TABLE "TaxRate" ADD
> CONSTRAINT "TaxRate_FK1" FOREIGN KEY ("taxId") REFERENCES "Tax" ("id")
> 20:48:15,222 [Schema                        ] Execution Time = 1 ms
> 20:48:15,222 [Schema                        ] Creating foreign key
> constraint : "TaxRate_FK2" in catalog "" schema ""
> 20:48:15,222 [Schema                        ] ALTER TABLE "TaxRate" ADD
> CONSTRAINT "TaxRate_FK2" FOREIGN KEY ("nextTaxRateId") REFERENCES "TaxRate"
> ("id")
> 20:48:15,223 [Schema                        ] Execution Time = 1 ms
> 20:48:15,223 [Schema                        ] Creating index "TaxRate_N49"
> in catalog "" schema ""
> 20:48:15,223 [Schema                        ] CREATE INDEX "TaxRate_N49" ON
> "TaxRate" ("nextTaxRateId")
> 20:48:15,223 [Schema                        ] Execution Time = 0 ms
> 20:48:15,223 [Schema                        ] Creating index "TaxRate_N50"
> in catalog "" schema ""
> 20:48:15,223 [Schema                        ] CREATE INDEX "TaxRate_N50" ON
> "TaxRate" ("taxId")
> 20:48:15,223 [Schema                        ] Execution Time = 0 ms
> 20:48:15,223 [Schema                        ] Creating foreign key
> constraint : "PartyRegistration_FK1" in catalog "" schema ""
> 20:48:15,224 [Schema                        ] ALTER TABLE
> "PartyRegistration" ADD CONSTRAINT "PartyRegistration_FK1" FOREIGN KEY
> ("partyId") REFERENCES "Party" ("id")
> 20:48:15,225 [Schema                        ] Execution Time = 1 ms
> 20:48:15,225 [Schema                        ] Creating index
> "PartyRegistration_N49" in catalog "" schema ""
> 20:48:15,225 [Schema                        ] CREATE INDEX
> "PartyRegistration_N49" ON "PartyRegistration" ("partyId")
> 20:48:15,225 [Schema                        ] Execution Time = 0 ms
> 20:48:15,225 [Schema                        ] Creating foreign key
> constraint : "AgreementRoleType_FK1" in catalog "" schema ""
> 20:48:15,225 [Schema                        ] ALTER TABLE
> "AgreementRoleType" ADD CONSTRAINT "AgreementRoleType_FK1" FOREIGN KEY
> ("appliesToAgreementTypeId") REFERENCES "AgreementType" ("id")
> 20:48:15,226 [Schema                        ] Execution Time = 1 ms
> 20:48:15,226 [Schema                        ] Creating index
> "AgreementRoleType_N49" in catalog "" schema ""
> 20:48:15,226 [Schema                        ] CREATE INDEX
> "AgreementRoleType_N49" ON "AgreementRoleType" ("appliesToAgreementTypeId")
> 20:48:15,227 [Schema                        ] Execution Time = 1 ms
> 20:48:15,227 [Schema                        ] Creating candidate key
> "FinancialAccount_reference_UNQ" in catalog "" schema ""
> 20:48:15,227 [Schema                        ] ALTER TABLE
> "FinancialAccount" ADD CONSTRAINT "FinancialAccount_reference_UNQ" UNIQUE
> ("reference")
> 20:48:15,228 [Schema                        ] Execution Time = 1 ms
> 20:48:15,229 [Schema                        ] Creating foreign key
> constraint : "FinancialAccount_FK1" in catalog "" schema ""
> 20:48:15,229 [Schema                        ] ALTER TABLE
> "FinancialAccount" ADD CONSTRAINT "FinancialAccount_FK1" FOREIGN KEY
> ("ownerPartyId") REFERENCES "Party" ("id")
> 20:48:15,231 [Schema                        ] Execution Time = 2 ms
> 20:48:15,231 [Schema                        ] Creating index
> "FinancialAccount_N49" in catalog "" schema ""
> 20:48:15,231 [Schema                        ] CREATE INDEX
> "FinancialAccount_N49" ON "FinancialAccount" ("ownerPartyId")
> 20:48:15,231 [Schema                        ] Execution Time = 0 ms
> 20:48:15,232 [Schema                        ] Creating foreign key
> constraint : "BankAccount_FK1" in catalog "" schema ""
> 20:48:15,232 [Schema                        ] ALTER TABLE "BankAccount" ADD
> CONSTRAINT "BankAccount_FK1" FOREIGN KEY ("id") REFERENCES
> "FinancialAccount" ("id")
> 20:48:15,232 [Schema                        ] Execution Time = 0 ms
> 20:48:15,232 [Schema                        ] Creating foreign key
> constraint : "BankAccount_FK2" in catalog "" schema ""
> 20:48:15,232 [Schema                        ] ALTER TABLE "BankAccount" ADD
> CONSTRAINT "BankAccount_FK2" FOREIGN KEY ("countryId") REFERENCES "Country"
> ("id")
> 20:48:15,233 [Schema                        ] Execution Time = 1 ms
> 20:48:15,233 [Schema                        ] Creating foreign key
> constraint : "BankAccount_FK3" in catalog "" schema ""
> 20:48:15,233 [Schema                        ] ALTER TABLE "BankAccount" ADD
> CONSTRAINT "BankAccount_FK3" FOREIGN KEY ("fixedAssetId") REFERENCES
> "Property" ("id")
> 20:48:15,234 [Schema                        ] Execution Time = 1 ms
> 20:48:15,234 [Schema                        ] Creating foreign key
> constraint : "BankAccount_FK4" in catalog "" schema ""
> 20:48:15,234 [Schema                        ] ALTER TABLE "BankAccount" ADD
> CONSTRAINT "BankAccount_FK4" FOREIGN KEY ("bankPartyId") REFERENCES "Party"
> ("id")
> 20:48:15,234 [Schema                        ] Execution Time = 0 ms
> 20:48:15,235 [Schema                        ] Creating index
> "BankAccount_N51" in catalog "" schema ""
> 20:48:15,235 [Schema                        ] CREATE INDEX
> "BankAccount_N51" ON "BankAccount" ("fixedAssetId")
> 20:48:15,235 [Schema                        ] Execution Time = 0 ms
> 20:48:15,235 [Schema                        ] Creating index
> "BankAccount_N50" in catalog "" schema ""
> 20:48:15,235 [Schema                        ] CREATE INDEX
> "BankAccount_N50" ON "BankAccount" ("bankPartyId")
> 20:48:15,235 [Schema                        ] Execution Time = 0 ms
> 20:48:15,235 [Schema                        ] Creating index
> "BankAccount_N49" in catalog "" schema ""
> 20:48:15,235 [Schema                        ] CREATE INDEX
> "BankAccount_N49" ON "BankAccount" ("countryId")
> 20:48:15,235 [Schema                        ] Execution Time = 0 ms
> 20:48:15,235 [Schema                        ] Creating candidate key
> "UnitSize_name_UNQ" in catalog "" schema ""
> 20:48:15,235 [Schema                        ] ALTER TABLE "UnitSize" ADD
> CONSTRAINT "UnitSize_name_UNQ" UNIQUE ("name")
> 20:48:15,236 [Schema                        ] Execution Time = 1 ms
> 20:48:15,236 [Schema                        ] Creating candidate key
> "FixedAsset_reference_UNQ" in catalog "" schema ""
> 20:48:15,236 [Schema                        ] ALTER TABLE "FixedAsset" ADD
> CONSTRAINT "FixedAsset_reference_UNQ" UNIQUE ("reference")
> 20:48:15,237 [Schema                        ] Execution Time = 1 ms
> 20:48:15,237 [Schema                        ] Creating index
> "FixedAsset_reference_name_IDX" in catalog "" schema ""
> 20:48:15,237 [Schema                        ] CREATE INDEX
> "FixedAsset_reference_name_IDX" ON "FixedAsset" ("reference","name")
> 20:48:15,237 [Schema                        ] Execution Time = 0 ms
> 20:48:15,237 [Schema                        ] Creating foreign key
> constraint : "Property_FK2" in catalog "" schema ""
> 20:48:15,237 [Schema                        ] ALTER TABLE "Property" ADD
> CONSTRAINT "Property_FK2" FOREIGN KEY ("countryId") REFERENCES "Country"
> ("id")
> 20:48:15,238 [Schema                        ] Execution Time = 1 ms
> 20:48:15,238 [Schema                        ] Creating foreign key
> constraint : "Property_FK1" in catalog "" schema ""
> 20:48:15,238 [Schema                        ] ALTER TABLE "Property" ADD
> CONSTRAINT "Property_FK1" FOREIGN KEY ("id") REFERENCES "FixedAsset" ("id")
> 20:48:15,238 [Schema                        ] Execution Time = 0 ms
> 20:48:15,238 [Schema                        ] Creating index "Property_N49"
> in catalog "" schema ""
> 20:48:15,238 [Schema                        ] CREATE INDEX "Property_N49"
> ON "Property" ("countryId")
> 20:48:15,239 [Schema                        ] Execution Time = 1 ms
> 20:48:15,239 [Schema                        ] Creating foreign key
> constraint : "LeaseAssignment_FK2" in catalog "" schema ""
> 20:48:15,239 [Schema                        ] ALTER TABLE "LeaseAssignment"
> ADD CONSTRAINT "LeaseAssignment_FK2" FOREIGN KEY ("previousLeaseId")
> REFERENCES "Lease" ("id")
> 20:48:15,239 [Schema                        ] Execution Time = 0 ms
> 20:48:15,239 [Schema                        ] Creating foreign key
> constraint : "LeaseAssignment_FK1" in catalog "" schema ""
> 20:48:15,239 [Schema                        ] ALTER TABLE "LeaseAssignment"
> ADD CONSTRAINT "LeaseAssignment_FK1" FOREIGN KEY ("nextLeaseId") REFERENCES
> "Lease" ("id")
> 20:48:15,240 [Schema                        ] Execution Time = 1 ms
> 20:48:15,240 [Schema                        ] Creating index
> "LeaseAssignment_N49" in catalog "" schema ""
> 20:48:15,240 [Schema                        ] CREATE INDEX
> "LeaseAssignment_N49" ON "LeaseAssignment" ("previousLeaseId")
> 20:48:15,241 [Schema                        ] Execution Time = 0 ms
> 20:48:15,241 [Schema                        ] Creating index
> "LeaseAssignment_N50" in catalog "" schema ""
> 20:48:15,241 [Schema                        ] CREATE INDEX
> "LeaseAssignment_N50" ON "LeaseAssignment" ("nextLeaseId")
> 20:48:15,241 [Schema                        ] Execution Time = 0 ms
> 20:48:15,241 [Schema                        ] Creating candidate key
> "Geography_reference_UNQ" in catalog "" schema ""
> 20:48:15,241 [Schema                        ] ALTER TABLE "State" ADD
> CONSTRAINT "Geography_reference_UNQ" UNIQUE ("reference")
> 20:48:15,242 [Schema                        ] Execution Time = 1 ms
> 20:48:15,242 [Schema                        ] Creating candidate key
> "Geography_name_UNQ" in catalog "" schema ""
> 20:48:15,242 [Schema                        ] ALTER TABLE "State" ADD
> CONSTRAINT "Geography_name_UNQ" UNIQUE ("name")
> 20:48:15,243 [Schema                        ] Execution Time = 0 ms
> 20:48:15,243 [Schema                        ] Creating foreign key
> constraint : "State_FK1" in catalog "" schema ""
> 20:48:15,243 [Schema                        ] ALTER TABLE "State" ADD
> CONSTRAINT "State_FK1" FOREIGN KEY ("countryId") REFERENCES "Country"
> ("id")
> 20:48:15,243 [Schema                        ] Execution Time = 0 ms
> 20:48:15,244 [Schema                        ] Creating index "State_N49" in
> catalog "" schema ""
> 20:48:15,244 [Schema                        ] CREATE INDEX "State_N49" ON
> "State" ("countryId")
> 20:48:15,244 [Schema                        ] Execution Time = 0 ms
> 20:48:15,244 [Schema                        ] Creating foreign key
> constraint : "LeaseStatusReason_FK1" in catalog "" schema ""
> 20:48:15,244 [Schema                        ] ALTER TABLE
> "LeaseStatusReason" ADD CONSTRAINT "LeaseStatusReason_FK1" FOREIGN KEY
> ("leaseId") REFERENCES "Lease" ("id")
> 20:48:15,245 [Schema                        ] Execution Time = 1 ms
> 20:48:15,245 [Schema                        ] Creating index
> "LeaseStatusReason_N49" in catalog "" schema ""
> 20:48:15,245 [Schema                        ] CREATE INDEX
> "LeaseStatusReason_N49" ON "LeaseStatusReason" ("leaseId")
> 20:48:15,245 [Schema                        ] Execution Time = 0 ms
> 20:48:15,246 [Schema                        ] Creating candidate key
> "Activity_sector_name_UNQ" in catalog "" schema ""
> 20:48:15,246 [Schema                        ] ALTER TABLE "Activity" ADD
> CONSTRAINT "Activity_sector_name_UNQ" UNIQUE ("sectorId","name")
> 20:48:15,246 [Schema                        ] Execution Time = 0 ms
> 20:48:15,246 [Schema                        ] Creating foreign key
> constraint : "Activity_FK1" in catalog "" schema ""
> 20:48:15,246 [Schema                        ] ALTER TABLE "Activity" ADD
> CONSTRAINT "Activity_FK1" FOREIGN KEY ("sectorId") REFERENCES "Sector"
> ("id")
> 20:48:15,247 [Schema                        ] Execution Time = 0 ms
> 20:48:15,247 [Schema                        ] Creating index "Activity_N49"
> in catalog "" schema ""
> 20:48:15,247 [Schema                        ] CREATE INDEX "Activity_N49"
> ON "Activity" ("sectorId")
> 20:48:15,248 [Schema                        ] Execution Time = 1 ms
> 20:48:15,248 [Schema                        ] Creating candidate key
> "Party_reference_UNQ" in catalog "" schema ""
> 20:48:15,248 [Schema                        ] ALTER TABLE "Party" ADD
> CONSTRAINT "Party_reference_UNQ" UNIQUE ("reference")
> 20:48:15,248 [Schema                        ] Execution Time = 0 ms
> 20:48:15,249 [Schema                        ] Creating index
> "Party_reference_name_IDX" in catalog "" schema ""
> 20:48:15,249 [Schema                        ] CREATE INDEX
> "Party_reference_name_IDX" ON "Party" ("reference","name")
> 20:48:15,249 [Schema                        ] Execution Time = 0 ms
> 20:48:15,249 [Schema                        ] Creating foreign key
> constraint : "Organisation_FK1" in catalog "" schema ""
> 20:48:15,249 [Schema                        ] ALTER TABLE "Organisation"
> ADD CONSTRAINT "Organisation_FK1" FOREIGN KEY ("id") REFERENCES "Party"
> ("id")
> 20:48:15,249 [Schema                        ] Execution Time = 0 ms
> 20:48:15,250 [Schema                        ] Creating candidate key
> "FixedAssetRegistrationType_title_UNQ" in catalog "" schema ""
> 20:48:15,250 [Schema                        ] ALTER TABLE
> "FixedAssetRegistrationType" ADD CONSTRAINT
> "FixedAssetRegistrationType_title_UNQ" UNIQUE ("title")
> 20:48:15,250 [Schema                        ] Execution Time = 0 ms
> 20:48:15,250 [Schema                        ] Creating foreign key
> constraint : "FixedAssetRegistration_FK2" in catalog "" schema ""
> 20:48:15,250 [Schema                        ] ALTER TABLE
> "FixedAssetRegistration" ADD CONSTRAINT "FixedAssetRegistration_FK2"
> FOREIGN KEY ("subjectId") REFERENCES "FixedAsset" ("id")
> 20:48:15,251 [Schema                        ] Execution Time = 1 ms
> 20:48:15,251 [Schema                        ] Creating foreign key
> constraint : "FixedAssetRegistration_FK1" in catalog "" schema ""
> 20:48:15,251 [Schema                        ] ALTER TABLE
> "FixedAssetRegistration" ADD CONSTRAINT "FixedAssetRegistration_FK1"
> FOREIGN KEY ("typeId") REFERENCES "FixedAssetRegistrationType" ("id")
> 20:48:15,252 [Schema                        ] Execution Time = 1 ms
> 20:48:15,252 [Schema                        ] Creating index
> "FixedAssetRegistration_N49" in catalog "" schema ""
> 20:48:15,252 [Schema                        ] CREATE INDEX
> "FixedAssetRegistration_N49" ON "FixedAssetRegistration" ("subjectId")
> 20:48:15,252 [Schema                        ] Execution Time = 0 ms
> 20:48:15,252 [Schema                        ] Creating index
> "FixedAssetRegistration_N50" in catalog "" schema ""
> 20:48:15,252 [Schema                        ] CREATE INDEX
> "FixedAssetRegistration_N50" ON "FixedAssetRegistration" ("typeId")
> 20:48:15,252 [Schema                        ] Execution Time = 0 ms
> 20:48:15,253 [Schema                        ] Creating foreign key
> constraint : "LandRegister_FK1" in catalog "" schema ""
> 20:48:15,253 [Schema                        ] ALTER TABLE "LandRegister"
> ADD CONSTRAINT "LandRegister_FK1" FOREIGN KEY ("id") REFERENCES
> "FixedAssetRegistration" ("id")
> 20:48:15,253 [Schema                        ] Execution Time = 0 ms
> 20:48:15,253 [Schema                        ] Creating candidate key
> "Tag_taggable_name_UNQ" in catalog "" schema ""
> 20:48:15,253 [Schema                        ] ALTER TABLE "Tag" ADD
> CONSTRAINT "Tag_taggable_name_UNQ" UNIQUE
> ("taggable_Occupancy_id_EID","name")
> 20:48:15,254 [Schema                        ] Execution Time = 1 ms
> 20:48:15,254 [Schema                        ] Creating foreign key
> constraint : "Tag_FK1" in catalog "" schema ""
> 20:48:15,254 [Schema                        ] ALTER TABLE "Tag" ADD
> CONSTRAINT "Tag_FK1" FOREIGN KEY ("taggable_Occupancy_id_EID") REFERENCES
> "Occupancy" ("id")
> 20:48:15,255 [Schema                        ] Execution Time = 1 ms
> 20:48:15,255 [Schema                        ] Creating index "Tag_N49" in
> catalog "" schema ""
> 20:48:15,255 [Schema                        ] CREATE INDEX "Tag_N49" ON
> "Tag" ("taggable_Occupancy_id_EID")
> 20:48:15,255 [Schema                        ] Execution Time = 0 ms
> 20:48:15,255 [Schema                        ] Creating candidate key
> "Charge_reference_UNQ" in catalog "" schema ""
> 20:48:15,255 [Schema                        ] ALTER TABLE "Charge" ADD
> CONSTRAINT "Charge_reference_UNQ" UNIQUE ("reference")
> 20:48:15,256 [Schema                        ] Execution Time = 1 ms
> 20:48:15,256 [Schema                        ] Creating candidate key
> "Charge_name_UNQ" in catalog "" schema ""
> 20:48:15,256 [Schema                        ] ALTER TABLE "Charge" ADD
> CONSTRAINT "Charge_name_UNQ" UNIQUE ("name")
> 20:48:15,257 [Schema                        ] Execution Time = 1 ms
> 20:48:15,257 [Schema                        ] Creating foreign key
> constraint : "Charge_FK2" in catalog "" schema ""
> 20:48:15,257 [Schema                        ] ALTER TABLE "Charge" ADD
> CONSTRAINT "Charge_FK2" FOREIGN KEY ("taxId") REFERENCES "Tax" ("id")
> 20:48:15,258 [Schema                        ] Execution Time = 1 ms
> 20:48:15,258 [Schema                        ] Creating foreign key
> constraint : "Charge_FK1" in catalog "" schema ""
> 20:48:15,258 [Schema                        ] ALTER TABLE "Charge" ADD
> CONSTRAINT "Charge_FK1" FOREIGN KEY ("groupId") REFERENCES "ChargeGroup"
> ("id")
> 20:48:15,259 [Schema                        ] Execution Time = 1 ms
> 20:48:15,259 [Schema                        ] Creating index "Charge_N50"
> in catalog "" schema ""
> 20:48:15,259 [Schema                        ] CREATE INDEX "Charge_N50" ON
> "Charge" ("groupId")
> 20:48:15,259 [Schema                        ] Execution Time = 0 ms
> 20:48:15,259 [Schema                        ] Creating index "Charge_N49"
> in catalog "" schema ""
> 20:48:15,259 [Schema                        ] CREATE INDEX "Charge_N49" ON
> "Charge" ("taxId")
> 20:48:15,260 [Schema                        ] Execution Time = 0 ms
> 20:48:15,260 [Schema                        ] Creating foreign key
> constraint : "IndexValue_FK1" in catalog "" schema ""
> 20:48:15,260 [Schema                        ] ALTER TABLE "IndexValue" ADD
> CONSTRAINT "IndexValue_FK1" FOREIGN KEY ("indexBaseId") REFERENCES
> "IndexBase" ("id")
> 20:48:15,260 [Schema                        ] Execution Time = 0 ms
> 20:48:15,261 [Schema                        ] Creating index
> "IndexValue_N49" in catalog "" schema ""
> 20:48:15,261 [Schema                        ] CREATE INDEX "IndexValue_N49"
> ON "IndexValue" ("indexBaseId")
> 20:48:15,261 [Schema                        ] Execution Time = 0 ms
> 20:48:15,261 [Schema                        ] Creating candidate key
> "Tax_reference_UNQ" in catalog "" schema ""
> 20:48:15,261 [Schema                        ] ALTER TABLE "Tax" ADD
> CONSTRAINT "Tax_reference_UNQ" UNIQUE ("reference")
> 20:48:15,261 [Schema                        ] Execution Time = 0 ms
> 20:48:15,262 [Schema                        ] Creating foreign key
> constraint : "Invoice_FK4" in catalog "" schema ""
> 20:48:15,262 [Schema                        ] ALTER TABLE "Invoice" ADD
> CONSTRAINT "Invoice_FK4" FOREIGN KEY ("currencyId") REFERENCES "Currency"
> ("id")
> 20:48:15,262 [Schema                        ] Execution Time = 0 ms
> 20:48:15,263 [Schema                        ] Creating foreign key
> constraint : "Invoice_FK3" in catalog "" schema ""
> 20:48:15,263 [Schema                        ] ALTER TABLE "Invoice" ADD
> CONSTRAINT "Invoice_FK3" FOREIGN KEY ("sellerPartyId") REFERENCES "Party"
> ("id")
> 20:48:15,264 [Schema                        ] Execution Time = 0 ms
> 20:48:15,264 [Schema                        ] Creating foreign key
> constraint : "Invoice_FK2" in catalog "" schema ""
> 20:48:15,264 [Schema                        ] ALTER TABLE "Invoice" ADD
> CONSTRAINT "Invoice_FK2" FOREIGN KEY ("buyerPartyId") REFERENCES "Party"
> ("id")
> 20:48:15,264 [Schema                        ] Execution Time = 0 ms
> 20:48:15,265 [Schema                        ] Creating foreign key
> constraint : "Invoice_FK1" in catalog "" schema ""
> 20:48:15,265 [Schema                        ] ALTER TABLE "Invoice" ADD
> CONSTRAINT "Invoice_FK1" FOREIGN KEY ("sourceLeaseId") REFERENCES "Lease"
> ("id")
> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
> 20:48:15,266 [Schema                        ] Creating index "Invoice_N51"
> in catalog "" schema ""
> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N51" ON
> "Invoice" ("currencyId")
> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
> 20:48:15,266 [Schema                        ] Creating index "Invoice_N52"
> in catalog "" schema ""
> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N52" ON
> "Invoice" ("sourceLeaseId")
> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
> 20:48:15,266 [Schema                        ] Creating index "Invoice_N49"
> in catalog "" schema ""
> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N49" ON
> "Invoice" ("buyerPartyId")
> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
> 20:48:15,266 [Schema                        ] Creating index "Invoice_N50"
> in catalog "" schema ""
> 20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N50" ON
> "Invoice" ("sellerPartyId")
> 20:48:15,266 [Schema                        ] Execution Time = 0 ms
> 20:48:15,267 [Schema                        ] Creating foreign key
> constraint : "Person_FK1" in catalog "" schema ""
> 20:48:15,267 [Schema                        ] ALTER TABLE "Person" ADD
> CONSTRAINT "Person_FK1" FOREIGN KEY ("id") REFERENCES "Party" ("id")
> 20:48:15,267 [Schema                        ] Execution Time = 0 ms
> 20:48:15,267 [Schema                        ] Creating candidate key
> "Country_alpha2Code_UNQ" in catalog "" schema ""
> 20:48:15,267 [Schema                        ] ALTER TABLE "Country" ADD
> CONSTRAINT "Country_alpha2Code_UNQ" UNIQUE ("alpha2Code")
> 20:48:15,268 [Schema                        ] Execution Time = 1 ms
> 20:48:15,269 [Schema                        ] Creating candidate key
> "Country_reference_UNQ" in catalog "" schema ""
> 20:48:15,269 [Schema                        ] ALTER TABLE "Country" ADD
> CONSTRAINT "Country_reference_UNQ" UNIQUE ("reference")
> 20:48:15,270 [Schema                        ] Execution Time = 1 ms
> 20:48:15,270 [Schema                        ] Creating candidate key
> "Country_name_UNQ" in catalog "" schema ""
> 20:48:15,270 [Schema                        ] ALTER TABLE "Country" ADD
> CONSTRAINT "Country_name_UNQ" UNIQUE ("name")
> 20:48:15,271 [Schema                        ] Execution Time = 1 ms
> 20:48:15,271 [Schema                        ] Creating foreign key
> constraint : "Lease_FK3" in catalog "" schema ""
> 20:48:15,271 [Schema                        ] ALTER TABLE "Lease" ADD
> CONSTRAINT "Lease_FK3" FOREIGN KEY ("leaseTypeId") REFERENCES "LeaseType"
> ("id")
> 20:48:15,272 [Schema                        ] Execution Time = 1 ms
> 20:48:15,272 [Schema                        ] Creating foreign key
> constraint : "Lease_FK2" in catalog "" schema ""
> 20:48:15,272 [Schema                        ] ALTER TABLE "Lease" ADD
> CONSTRAINT "Lease_FK2" FOREIGN KEY ("paidByBankMandateId") REFERENCES
> "BankMandate" ("id")
> 20:48:15,273 [Schema                        ] Execution Time = 1 ms
> 20:48:15,273 [Schema                        ] Creating foreign key
> constraint : "Lease_FK1" in catalog "" schema ""
> 20:48:15,273 [Schema                        ] ALTER TABLE "Lease" ADD
> CONSTRAINT "Lease_FK1" FOREIGN KEY ("id") REFERENCES "Agreement" ("id")
> 20:48:15,274 [Schema                        ] Execution Time = 1 ms
> 20:48:15,274 [Schema                        ] Creating index "Lease_N50" in
> catalog "" schema ""
> 20:48:15,274 [Schema                        ] CREATE INDEX "Lease_N50" ON
> "Lease" ("leaseTypeId")
> 20:48:15,274 [Schema                        ] Execution Time = 0 ms
> 20:48:15,275 [Schema                        ] Creating index "Lease_N49" in
> catalog "" schema ""
> 20:48:15,275 [Schema                        ] CREATE INDEX "Lease_N49" ON
> "Lease" ("paidByBankMandateId")
> 20:48:15,275 [Schema                        ] Execution Time = 0 ms
> 20:48:15,275 [Schema                        ] Creating candidate key
> "LeaseItem_lease_type_startDate_sequence_IDX" in catalog "" schema ""
> 20:48:15,275 [Schema                        ] ALTER TABLE "LeaseItem" ADD
> CONSTRAINT "LeaseItem_lease_type_startDate_sequence_IDX" UNIQUE
> ("leaseId","type","startDate","sequence")
> 20:48:15,277 [Schema                        ] Execution Time = 2 ms
> 20:48:15,277 [Schema                        ] Creating foreign key
> constraint : "LeaseItem_FK1" in catalog "" schema ""
> 20:48:15,277 [Schema                        ] ALTER TABLE "LeaseItem" ADD
> CONSTRAINT "LeaseItem_FK1" FOREIGN KEY ("leaseId") REFERENCES "Lease"
> ("id")
> 20:48:15,279 [Schema                        ] Execution Time = 2 ms
> 20:48:15,279 [Schema                        ] Creating foreign key
> constraint : "LeaseItem_FK2" in catalog "" schema ""
> 20:48:15,279 [Schema                        ] ALTER TABLE "LeaseItem" ADD
> CONSTRAINT "LeaseItem_FK2" FOREIGN KEY ("chargeId") REFERENCES "Charge"
> ("id")
> 20:48:15,281 [Schema                        ] Execution Time = 2 ms
> 20:48:15,281 [Schema                        ] Creating index
> "LeaseItem_lease_type_startDate_IDX" in catalog "" schema ""
> 20:48:15,281 [Schema                        ] CREATE INDEX
> "LeaseItem_lease_type_startDate_IDX" ON "LeaseItem"
> ("leaseId","type","startDate")
> 20:48:15,282 [Schema                        ] Execution Time = 1 ms
> 20:48:15,282 [Schema                        ] Creating index
> "LeaseItem_N50" in catalog "" schema ""
> 20:48:15,282 [Schema                        ] CREATE INDEX "LeaseItem_N50"
> ON "LeaseItem" ("leaseId")
> 20:48:15,282 [Schema                        ] Execution Time = 0 ms
> 20:48:15,282 [Schema                        ] Creating index
> "LeaseItem_lease_type_sequence_IDX" in catalog "" schema ""
> 20:48:15,282 [Schema                        ] CREATE INDEX
> "LeaseItem_lease_type_sequence_IDX" ON "LeaseItem"
> ("leaseId","type","sequence")
> 20:48:15,282 [Schema                        ] Execution Time = 0 ms
> 20:48:15,282 [Schema                        ] Creating index
> "LeaseItem_N49" in catalog "" schema ""
> 20:48:15,282 [Schema                        ] CREATE INDEX "LeaseItem_N49"
> ON "LeaseItem" ("chargeId")
> 20:48:15,283 [Schema                        ] Execution Time = 1 ms
> 20:48:15,283 [Schema                        ] Creating foreign key
> constraint : "AgreementRoleCommunicationChannelType_FK1" in catalog ""
> schema ""
> 20:48:15,283 [Schema                        ] ALTER TABLE
> "AgreementRoleCommunicationChannelType" ADD CONSTRAINT
> "AgreementRoleCommunicationChannelType_FK1" FOREIGN KEY
> ("appliesToAgreementTypeId") REFERENCES "AgreementType" ("id")
> 20:48:15,284 [Schema                        ] Execution Time = 1 ms
> 20:48:15,284 [Schema                        ] Creating index
> "AgreementRoleCommunicationChannelType_N49" in catalog "" schema ""
> 20:48:15,284 [Schema                        ] CREATE INDEX
> "AgreementRoleCommunicationChannelType_N49" ON
> "AgreementRoleCommunicationChannelType" ("appliesToAgreementTypeId")
> 20:48:15,284 [Schema                        ] Execution Time = 0 ms
> 20:48:15,284 [Schema                        ] Creating candidate key
> "LeaseType_reference_UNQ" in catalog "" schema ""
> 20:48:15,284 [Schema                        ] ALTER TABLE "LeaseType" ADD
> CONSTRAINT "LeaseType_reference_UNQ" UNIQUE ("reference")
> 20:48:15,285 [Schema                        ] Execution Time = 1 ms
> 20:48:15,285 [Schema                        ] Creating candidate key
> "LeaseType_name_UNQ" in catalog "" schema ""
> 20:48:15,285 [Schema                        ] ALTER TABLE "LeaseType" ADD
> CONSTRAINT "LeaseType_name_UNQ" UNIQUE ("name")
> 20:48:15,286 [Schema                        ] Execution Time = 1 ms
> 20:48:15,286 [Schema                        ] Creating foreign key
> constraint : "AgreementRoleCommunicationChannel_FK3" in catalog "" schema ""
> 20:48:15,286 [Schema                        ] ALTER TABLE
> "AgreementRoleCommunicationChannel" ADD CONSTRAINT
> "AgreementRoleCommunicationChannel_FK3" FOREIGN KEY
> ("communicationChannelId") REFERENCES "CommunicationChannel" ("id")
> 20:48:15,287 [Schema                        ] Execution Time = 1 ms
> 20:48:15,287 [Schema                        ] Creating foreign key
> constraint : "AgreementRoleCommunicationChannel_FK2" in catalog "" schema ""
> 20:48:15,287 [Schema                        ] ALTER TABLE
> "AgreementRoleCommunicationChannel" ADD CONSTRAINT
> "AgreementRoleCommunicationChannel_FK2" FOREIGN KEY ("agreementRoleId")
> REFERENCES "AgreementRole" ("id")
> 20:48:15,288 [Schema                        ] Execution Time = 1 ms
> 20:48:15,289 [Schema                        ] Creating foreign key
> constraint : "AgreementRoleCommunicationChannel_FK1" in catalog "" schema ""
> 20:48:15,289 [Schema                        ] ALTER TABLE
> "AgreementRoleCommunicationChannel" ADD CONSTRAINT
> "AgreementRoleCommunicationChannel_FK1" FOREIGN KEY ("typeId") REFERENCES
> "AgreementRoleCommunicationChannelType" ("id")
> 20:48:15,290 [Schema                        ] Execution Time = 1 ms
> 20:48:15,290 [Schema                        ] Creating index
> "AgreementRoleCommunicationChannel_N49" in catalog "" schema ""
> 20:48:15,290 [Schema                        ] CREATE INDEX
> "AgreementRoleCommunicationChannel_N49" ON
> "AgreementRoleCommunicationChannel" ("communicationChannelId")
> 20:48:15,291 [Schema                        ] Execution Time = 1 ms
> 20:48:15,291 [Schema                        ] Creating index
> "AgreementRoleCommunicationChannel_N50" in catalog "" schema ""
> 20:48:15,291 [Schema                        ] CREATE INDEX
> "AgreementRoleCommunicationChannel_N50" ON
> "AgreementRoleCommunicationChannel" ("agreementRoleId")
> 20:48:15,291 [Schema                        ] Execution Time = 0 ms
> 20:48:15,291 [Schema                        ] Creating index
> "AgreementRoleCommunicationChannel_N51" in catalog "" schema ""
> 20:48:15,291 [Schema                        ] CREATE INDEX
> "AgreementRoleCommunicationChannel_N51" ON
> "AgreementRoleCommunicationChannel" ("typeId")
> 20:48:15,291 [Schema                        ] Execution Time = 0 ms
> 20:48:15,291 [Schema                        ] Creating candidate key
> "AgreementType_title_UNQ" in catalog "" schema ""
> 20:48:15,291 [Schema                        ] ALTER TABLE "AgreementType"
> ADD CONSTRAINT "AgreementType_title_UNQ" UNIQUE ("title")
> 20:48:15,292 [Schema                        ] Execution Time = 1 ms
> 20:48:15,292 [Schema                        ] Creating candidate key
> "Occupancy_lease_unit_startDate_UNQ" in catalog "" schema ""
> 20:48:15,292 [Schema                        ] ALTER TABLE "Occupancy" ADD
> CONSTRAINT "Occupancy_lease_unit_startDate_UNQ" UNIQUE
> ("leaseId","unitId","startDate")
> 20:48:15,294 [Schema                        ] Execution Time = 2 ms
> 20:48:15,294 [Schema                        ] Creating foreign key
> constraint : "Occupancy_FK5" in catalog "" schema ""
> 20:48:15,294 [Schema                        ] ALTER TABLE "Occupancy" ADD
> CONSTRAINT "Occupancy_FK5" FOREIGN KEY ("sectorId") REFERENCES "Sector"
> ("id")
> 20:48:15,295 [Schema                        ] Execution Time = 1 ms
> 20:48:15,296 [Schema                        ] Creating foreign key
> constraint : "Occupancy_FK6" in catalog "" schema ""
> 20:48:15,296 [Schema                        ] ALTER TABLE "Occupancy" ADD
> CONSTRAINT "Occupancy_FK6" FOREIGN KEY ("brandId") REFERENCES "Brand"
> ("id")
> 20:48:15,297 [Schema                        ] Execution Time = 1 ms
> 20:48:15,297 [Schema                        ] Creating foreign key
> constraint : "Occupancy_FK3" in catalog "" schema ""
> 20:48:15,297 [Schema                        ] ALTER TABLE "Occupancy" ADD
> CONSTRAINT "Occupancy_FK3" FOREIGN KEY ("activityId") REFERENCES "Activity"
> ("id")
> 20:48:15,299 [Schema                        ] Execution Time = 2 ms
> 20:48:15,299 [Schema                        ] Creating foreign key
> constraint : "Occupancy_FK4" in catalog "" schema ""
> 20:48:15,299 [Schema                        ] ALTER TABLE "Occupancy" ADD
> CONSTRAINT "Occupancy_FK4" FOREIGN KEY ("leaseId") REFERENCES "Lease"
> ("id")
> 20:48:15,301 [Schema                        ] Execution Time = 2 ms
> 20:48:15,301 [Schema                        ] Creating foreign key
> constraint : "Occupancy_FK1" in catalog "" schema ""
> 20:48:15,301 [Schema                        ] ALTER TABLE "Occupancy" ADD
> CONSTRAINT "Occupancy_FK1" FOREIGN KEY ("unitId") REFERENCES "Unit" ("id")
> 20:48:15,302 [Schema                        ] Execution Time = 1 ms
> 20:48:15,303 [Schema                        ] Creating foreign key
> constraint : "Occupancy_FK2" in catalog "" schema ""
> 20:48:15,303 [Schema                        ] ALTER TABLE "Occupancy" ADD
> CONSTRAINT "Occupancy_FK2" FOREIGN KEY ("unitSizeId") REFERENCES "UnitSize"
> ("id")
> 20:48:15,304 [Schema                        ] Execution Time = 1 ms
> 20:48:15,304 [Schema                        ] Creating index
> "Occupancy_N54" in catalog "" schema ""
> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N54"
> ON "Occupancy" ("brandId")
> 20:48:15,305 [Schema                        ] Execution Time = 0 ms
> 20:48:15,305 [Schema                        ] Creating index
> "Occupancy_N53" in catalog "" schema ""
> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N53"
> ON "Occupancy" ("unitId")
> 20:48:15,305 [Schema                        ] Execution Time = 0 ms
> 20:48:15,305 [Schema                        ] Creating index
> "Occupancy_N52" in catalog "" schema ""
> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N52"
> ON "Occupancy" ("sectorId")
> 20:48:15,305 [Schema                        ] Execution Time = 0 ms
> 20:48:15,305 [Schema                        ] Creating index
> "Occupancy_N51" in catalog "" schema ""
> 20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N51"
> ON "Occupancy" ("activityId")
> 20:48:15,306 [Schema                        ] Execution Time = 1 ms
> 20:48:15,306 [Schema                        ] Creating index
> "Occupancy_N49" in catalog "" schema ""
> 20:48:15,306 [Schema                        ] CREATE INDEX "Occupancy_N49"
> ON "Occupancy" ("leaseId")
> 20:48:15,306 [Schema                        ] Execution Time = 0 ms
> 20:48:15,306 [Schema                        ] Creating index
> "Occupancy_N50" in catalog "" schema ""
> 20:48:15,306 [Schema                        ] CREATE INDEX "Occupancy_N50"
> ON "Occupancy" ("unitSizeId")
> 20:48:15,306 [Schema                        ] Execution Time = 0 ms
> 20:48:15,306 [Schema                        ] Creating foreign key
> constraint : "IndexBase_FK2" in catalog "" schema ""
> 20:48:15,306 [Schema                        ] ALTER TABLE "IndexBase" ADD
> CONSTRAINT "IndexBase_FK2" FOREIGN KEY ("indexId") REFERENCES "Index"
> ("id")
> 20:48:15,307 [Schema                        ] Execution Time = 1 ms
> 20:48:15,307 [Schema                        ] Creating foreign key
> constraint : "IndexBase_FK1" in catalog "" schema ""
> 20:48:15,307 [Schema                        ] ALTER TABLE "IndexBase" ADD
> CONSTRAINT "IndexBase_FK1" FOREIGN KEY ("nextIndexBaseId") REFERENCES
> "IndexBase" ("id")
> 20:48:15,308 [Schema                        ] Execution Time = 1 ms
> 20:48:15,308 [Schema                        ] Creating index
> "IndexBase_N50" in catalog "" schema ""
> 20:48:15,308 [Schema                        ] CREATE INDEX "IndexBase_N50"
> ON "IndexBase" ("indexId")
> 20:48:15,309 [Schema                        ] Execution Time = 0 ms
> 20:48:15,309 [Schema                        ] Creating index
> "IndexBase_N49" in catalog "" schema ""
> 20:48:15,309 [Schema                        ] CREATE INDEX "IndexBase_N49"
> ON "IndexBase" ("nextIndexBaseId")
> 20:48:15,309 [Schema                        ] Execution Time = 0 ms
> 20:48:15,309 [Schema                        ] Creating candidate key
> "Index_name_UNQ" in catalog "" schema ""
> 20:48:15,309 [Schema                        ] ALTER TABLE "Index" ADD
> CONSTRAINT "Index_name_UNQ" UNIQUE ("name")
> 20:48:15,310 [Schema                        ] Execution Time = 1 ms
> 20:48:15,310 [Schema                        ] Creating candidate key
> "Index_reference_UNQ" in catalog "" schema ""
> 20:48:15,310 [Schema                        ] ALTER TABLE "Index" ADD
> CONSTRAINT "Index_reference_UNQ" UNIQUE ("reference")
> 20:48:15,311 [Schema                        ] Execution Time = 1 ms
> 20:48:15,311 [Schema                        ] Creating foreign key
> constraint : "AgreementRole_FK3" in catalog "" schema ""
> 20:48:15,311 [Schema                        ] ALTER TABLE "AgreementRole"
> ADD CONSTRAINT "AgreementRole_FK3" FOREIGN KEY ("agreementId") REFERENCES
> "Agreement" ("id")
> 20:48:15,312 [Schema                        ] Execution Time = 1 ms
> 20:48:15,313 [Schema                        ] Creating foreign key
> constraint : "AgreementRole_FK2" in catalog "" schema ""
> 20:48:15,313 [Schema                        ] ALTER TABLE "AgreementRole"
> ADD CONSTRAINT "AgreementRole_FK2" FOREIGN KEY ("typeId") REFERENCES
> "AgreementRoleType" ("id")
> 20:48:15,314 [Schema                        ] Execution Time = 1 ms
> 20:48:15,314 [Schema                        ] Creating foreign key
> constraint : "AgreementRole_FK1" in catalog "" schema ""
> 20:48:15,314 [Schema                        ] ALTER TABLE "AgreementRole"
> ADD CONSTRAINT "AgreementRole_FK1" FOREIGN KEY ("partyId") REFERENCES
> "Party" ("id")
> 20:48:15,315 [Schema                        ] Execution Time = 1 ms
> 20:48:15,315 [Schema                        ] Creating index
> "AgreementRole_N49" in catalog "" schema ""
> 20:48:15,315 [Schema                        ] CREATE INDEX
> "AgreementRole_N49" ON "AgreementRole" ("agreementId")
> 20:48:15,315 [Schema                        ] Execution Time = 0 ms
> 20:48:15,315 [Schema                        ] Creating index
> "AgreementRole_N51" in catalog "" schema ""
> 20:48:15,315 [Schema                        ] CREATE INDEX
> "AgreementRole_N51" ON "AgreementRole" ("typeId")
> 20:48:15,316 [Schema                        ] Execution Time = 1 ms
> 20:48:15,316 [Schema                        ] Creating index
> "AgreementRole_N50" in catalog "" schema ""
> 20:48:15,316 [Schema                        ] CREATE INDEX
> "AgreementRole_N50" ON "AgreementRole" ("partyId")
> 20:48:15,316 [Schema                        ] Execution Time = 0 ms
> 20:48:15,316 [Schema                        ] Creating candidate key
> "Sector_name_UNQ" in catalog "" schema ""
> 20:48:15,316 [Schema                        ] ALTER TABLE "Sector" ADD
> CONSTRAINT "Sector_name_UNQ" UNIQUE ("name")
> 20:48:15,317 [Schema                        ] Execution Time = 1 ms
> 20:48:15,318 [Schema                        ] Check of existence of
> "InvoiceSummaryForPropertyDueDate" returned no table
> 20:48:15,318 [Schema                        ] Creating table
> "InvoiceSummaryForPropertyDueDate"
> 20:48:15,318 [Schema                        ] CREATE VIEW
> "InvoiceSummaryForPropertyDueDate" (   "reference",   "dueDate",   "total",
>   "netAmount",   "vatAmount",   "grossAmount" ) AS SELECT
>  "FixedAsset"."reference" ,    "Invoice"."dueDate",
>  COUNT(DISTINCT("Invoice"."id")) AS "total",
>  SUM("InvoiceItem"."netAmount") AS "netAmount",
>  SUM("InvoiceItem"."vatAmount") AS "vatAmount",
>  SUM("InvoiceItem"."grossAmount") AS "grossAmount"   FROM "Invoice"   INNER
> JOIN "Lease"       ON "Invoice"."sourceLeaseId" = "Lease"."id"   INNER JOIN
> "Occupancy"     ON "Lease"."id"              = "Occupancy"."leaseId"
> INNER JOIN "Unit"       ON "Unit"."id"               = "Occupancy"."unitId"
>   INNER JOIN "Property"     ON "Property"."id"           =
> "Unit"."propertyId"   INNER JOIN "FixedAsset"     ON "FixedAsset"."id"
>     = "Property"."id"   INNER JOIN "InvoiceItem"     ON
> "InvoiceItem"."invoiceId" = "Invoice"."id" GROUP BY
>  "FixedAsset"."reference",  "Invoice"."dueDate"
>
>
>
> On 13 January 2014 18:47, GESCONSULTOR - Óscar Bou
> <o....@gesconsultor.com>wrote:
>
>>
>> Hi, Dharmesh.
>>
>> Can you copy on an email the class definition for
>> org.atos.tfgm.basket.ShoppingBasketItem?
>>
>> Perhaps the JDO annotations for identity are not properly defined.
>>
>> See [1] for an example. The relevant ones are:
>>
>>
>> @javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
>> @javax.jdo.annotations.DatastoreIdentity(
>>         strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY,
>>          column="id")
>> @javax.jdo.annotations.Version(
>>         strategy=VersionStrategy.VERSION_NUMBER,
>>         column="version")
>>
>>
>>
>>
>> Regards,
>>
>> Oscar
>>
>>
>> [1]
>> https://github.com/apache/isis/blob/master/example/archetype/quickstart_wicket_restful_jdo/src/main/resources/archetype-resources/dom/src/main/java/dom/todo/ToDoItem.java
>>
>>
>>
>> El 13/01/2014, a las 18:03, Chohan, Dharmesh <dh...@atos.net>
>> escribió:
>>
>> > Hello
>> >
>> > I have sorted out the issue below, however I have encountered another
>> problem,
>> >
>> > Data already exists
>> >
>> > integrity constraint violation: NOT NULL check constraint; SYS_CT_10102
>> table: "ShoppingBasketItem" column: "shoppingBasket_id_OID"
>> >
>> > This is the log output and am not sure why shoppingBasket_id_OID is NULL
>> >
>> >     [exec] 16:58:55,845  [Native               qtp1742392524-31 DEBUG]
>>  INSERT INTO "ShoppingBasketItem"
>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>> VALUES (<'123456789001'>,<'Please_Select'>,<'Item
>> 1'>,<'▒5'>,<null>,<1>,<null>)
>> >     [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]
>>  Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b"
>> using statement "INSERT INTO "ShoppingBasketItem"
>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>> VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL
>> check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column:
>> "shoppingBasket_id_OID"
>> >     [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]
>>  Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b"
>> using statement "INSERT INTO "ShoppingBasketItem"
>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>> VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL
>> check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column:
>> "shoppingBasket_id_OID"
>> >     [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]
>>  Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b"
>> using statement "INSERT INTO "ShoppingBasketItem"
>> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
>> VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL
>> check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column:
>> "shoppingBasket_id_OID"
>> >     [exec] 16:58:55,945  [IsisTransaction      qtp1742392524-31 INFO ]
>>  abort transaction IsisTransaction@2fab0086[state=MUST_ABORT,commands=0]
>> >
>> > Regards
>> > Dharmesh
>> >
>> > -----Original Message-----
>> > From: Chohan, Dharmesh [mailto:dharmesh.chohan@atos.net]
>> > Sent: Monday, January 13, 2014 4:09 PM
>> > To: users@isis.apache.org
>> > Subject: Domain Mappings 1:m Exception
>> >
>> > Hi
>> >
>> > I am implementing a domain object mapping of 1 to many.  I have followed
>> the documentation on
>> http://isis.apache.org/components/objectstores/jdo/managed-1-to-m-relationships.html
>> >
>> > This is what I have implemented,
>> >
>> > @javax.jdo.annotations.Persistent(mappedBy="shoppingBasket")
>> >        private SortedSet<ShoppingBasketItem> shoppingBasketItem = new
>> TreeSet<ShoppingBasketItem>();
>> >
>> >        @javax.jdo.annotations.Column(allowsNull="false")
>> >    @MemberOrder(sequence = "3")
>> >        public SortedSet <ShoppingBasketItem> getShoppingBasketItem() {
>> >                return shoppingBasketItem;
>> >        }
>> >
>> >        public void setShoppingBasketItem(SortedSet <ShoppingBasketItem>
>> shoppingBasketItem) {
>> >                this.shoppingBasketItem = shoppingBasketItem;
>> >        }
>> >
>> > public class ShoppingBasketItem implements
>> Comparable<ShoppingBasketItem> {
>> >
>> >        private ShoppingBasket shoppingBasket;
>> >
>> >        @javax.jdo.annotations.Column(allowsNull="false")
>> >        public ShoppingBasket getShoppingBasket() {
>> >                return shoppingBasket;
>> >        }
>> >
>> >        public void setShoppingBasket(ShoppingBasket shoppingBasket) {
>> >                this.shoppingBasket = shoppingBasket;
>> >        }
>> >
>> > ...
>> >
>> > When I run ISIS and test the screen, I am getting the following
>> exception,
>> >
>> > *       java.lang.IllegalArgumentException
>> > *       No such method ' getShoppingBasketItem' or 'isShoppingBasketItem'
>> > *
>> org.apache.isis.applib.util.Clause#getValueOf(ObjectContracts.java:204)
>> > *
>> org.apache.isis.applib.util.ObjectContracts#compare(ObjectContracts.java:45)
>> > *
>> org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:117)
>> > *
>> org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:15)
>> > *       java.util.TreeMap#put(TreeMap.java:545)
>> > *       java.util.TreeSet#add(TreeSet.java:238)
>> > *
>> org.atos.tfgm.basket.ShoppingBaskets#getBasket(ShoppingBaskets.java:150)
>> > *
>> sun.reflect.NativeMethodAccessorImpl#invoke0(NativeMethodAccessorImpl.java:-2)
>> > *
>> sun.reflect.NativeMethodAccessorImpl#invoke(NativeMethodAccessorImpl.java:39)
>> > *
>> sun.reflect.DelegatingMethodAccessorImpl#invoke(DelegatingMethodAccessorImpl.java:25)
>> > *       java.lang.reflect.Method#invoke(Method.java:597)
>> >
>> >
>> > Have I implemented the relationship incorrectly or missing something.
>> >
>> >
>> > Regards
>> > Dharmesh
>> >
>>
>>

Re: Domain Mappings 1:m Exception

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
Looking at how Estatio [1] boots up (see log below), it seems that JDO does
the CREATE TABLE first, then adds foreign key constraints afterwards using
ALTER TABLE.

HTH
Dan

[1] https://github.com/estatio/estatio

extract of Estatio's startup log:

20:48:14,974 [Schema                        ] CREATE TABLE
"CommunicationChannel"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "description" NVARCHAR(254) NULL,
    "legal" BOOLEAN NOT NULL,
    "ownerOrganisationId" BIGINT NULL,
    "ownerPersonId" BIGINT NULL,
    "ownerPropertyId" BIGINT NULL,
    "ownerUnitId" BIGINT NULL,
    "reference" NVARCHAR(24) NULL,
    "type" NVARCHAR(30) NOT NULL,
    "version" BIGINT NOT NULL,
    "discriminator" NVARCHAR(255) NOT NULL,
    "emailAddress" NVARCHAR(50) NULL,
    "address1" NVARCHAR(100) NULL,
    "address2" NVARCHAR(100) NULL,
    "city" NVARCHAR(50) NULL,
    "countryId" BIGINT NULL,
    "postalCode" NVARCHAR(12) NULL,
    "stateId" BIGINT NULL,
    "phoneNumber" NVARCHAR(20) NULL,
    CONSTRAINT "CommunicationChannel_PK" PRIMARY KEY ("id")
)
20:48:14,977 [Schema                        ] Execution Time = 3 ms
20:48:14,982 [Schema                        ] Check of existence of
"LeaseTerm" returned no table
20:48:14,982 [Schema                        ] Creating table "LeaseTerm"
20:48:14,982 [Schema                        ] CREATE TABLE "LeaseTerm"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "endDate" DATE NULL,
    "frequency" NVARCHAR(30) NOT NULL,
    "leaseItemId" BIGINT NOT NULL,
    "nextLeaseTermId" BIGINT NULL,
    "sequence" NUMERIC NULL,
    "startDate" DATE NULL,
    "status" NVARCHAR(20) NOT NULL,
    "version" BIGINT NOT NULL,
    "discriminator" NVARCHAR(255) NOT NULL,
    "auditedTurnover" DECIMAL(19,2) NULL,
    "budgetedTurnover" DECIMAL(19,2) NULL,
    "contractualRent" DECIMAL(19,2) NULL,
    "turnoverRentRule" NVARCHAR(254) NULL,
    "turnoverRentValue" DECIMAL(19,2) NULL,
    "baseIndexStartDate" DATE NULL,
    "baseIndexValue" DECIMAL(19,1) NULL,
    "baseValue" DECIMAL(19,2) NULL,
    "effectiveDate" DATE NULL,
    "indexId" BIGINT NULL,
    "indexationPercentage" DECIMAL(19,1) NULL,
    "indexedValue" DECIMAL(19,2) NULL,
    "levellingPercentage" DECIMAL(19,1) NULL,
    "nextIndexStartDate" DATE NULL,
    "nextIndexValue" DECIMAL(19,1) NULL,
    "rebaseFactor" DECIMAL(19,3) NULL,
    "settledValue" DECIMAL(19,2) NULL,
    "auditedValue" DECIMAL(19,2) NULL,
    "budgetedValue" DECIMAL(19,2) NULL,
    CONSTRAINT "LeaseTerm_PK" PRIMARY KEY ("id")
)
20:48:14,984 [Schema                        ] Execution Time = 2 ms
20:48:14,987 [Schema                        ] Check of existence of "Unit"
returned no table
20:48:14,987 [Schema                        ] Creating table "Unit"
20:48:14,987 [Schema                        ] CREATE TABLE "Unit"
(
    "id" BIGINT NOT NULL,
    "area" DECIMAL(19,2) NULL,
    "dehorsArea" DECIMAL(19,2) NULL,
    "endDate" DATE NULL,
    "mezzanineArea" DECIMAL(19,2) NULL,
    "propertyId" BIGINT NOT NULL,
    "salesArea" DECIMAL(19,2) NULL,
    "startDate" DATE NULL,
    "storageArea" DECIMAL(19,2) NULL,
    "type" NVARCHAR(30) NOT NULL,
    CONSTRAINT "Unit_PK" PRIMARY KEY ("id")
)
20:48:14,988 [Schema                        ] Execution Time = 1 ms
20:48:14,991 [Schema                        ] Check of existence of
"BreakOption" returned no table
20:48:14,991 [Schema                        ] Creating table "BreakOption"
20:48:14,992 [Schema                        ] CREATE TABLE "BreakOption"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "breakDate" DATE NOT NULL,
    "description" NVARCHAR(254) NULL,
    "exerciseDate" DATE NOT NULL,
    "exerciseType" NVARCHAR(20) NOT NULL,
    "leaseId" BIGINT NOT NULL,
    "notificationPeriod" NVARCHAR(20) NULL,
    "type" NVARCHAR(30) NOT NULL,
    "version" BIGINT NOT NULL,
    "discriminator" NVARCHAR(255) NOT NULL,
    "reminderDate" DATE NULL,
    CONSTRAINT "BreakOption_PK" PRIMARY KEY ("id")
)
20:48:14,994 [Schema                        ] Execution Time = 2 ms
20:48:15,000 [Schema                        ] Check of existence of
"InvoiceItem" returned no table
20:48:15,000 [Schema                        ] Creating table "InvoiceItem"
20:48:15,000 [Schema                        ] CREATE TABLE "InvoiceItem"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "chargeId" BIGINT NULL,
    "description" NVARCHAR(254) NULL,
    "dueDate" DATE NOT NULL,
    "endDate" DATE NULL,
    "grossAmount" DECIMAL(19,2) NULL,
    "invoiceId" BIGINT NULL,
    "netAmount" DECIMAL(19,2) NULL,
    "quantity" DECIMAL(19,2) NULL,
    "sequence" NUMERIC NOT NULL,
    "startDate" DATE NULL,
    "taxId" BIGINT NULL,
    "vatAmount" DECIMAL(19,2) NULL,
    "version" BIGINT NOT NULL,
    "discriminator" NVARCHAR(255) NOT NULL,
    "leaseTermId" BIGINT NULL,
    CONSTRAINT "InvoiceItem_PK" PRIMARY KEY ("id")
)
20:48:15,002 [Schema                        ] Execution Time = 2 ms
20:48:15,007 [Schema                        ] Check of existence of "Brand"
returned no table
20:48:15,008 [Schema                        ] Creating table "Brand"
20:48:15,008 [Schema                        ] CREATE TABLE "Brand"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "name" NVARCHAR(50) NOT NULL,
    "version" BIGINT NOT NULL,
    CONSTRAINT "Brand_PK" PRIMARY KEY ("id")
)
20:48:15,009 [Schema                        ] Execution Time = 1 ms
20:48:15,013 [Schema                        ] Check of existence of
"FixedAssetRole" returned no table
20:48:15,013 [Schema                        ] Creating table
"FixedAssetRole"
20:48:15,013 [Schema                        ] CREATE TABLE "FixedAssetRole"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "assetId" BIGINT NOT NULL,
    "endDate" DATE NULL,
    "partyId" BIGINT NOT NULL,
    "startDate" DATE NULL,
    "type" NVARCHAR(30) NOT NULL,
    "version" BIGINT NOT NULL,
    CONSTRAINT "FixedAssetRole_PK" PRIMARY KEY ("id")
)
20:48:15,015 [Schema                        ] Execution Time = 2 ms
20:48:15,019 [Schema                        ] Check of existence of
"Numerator" returned no table
20:48:15,019 [Schema                        ] Creating table "Numerator"
20:48:15,019 [Schema                        ] CREATE TABLE "Numerator"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "format" NVARCHAR(30) NOT NULL,
    "lastIncrement" NUMERIC NOT NULL,
    "name" NVARCHAR(50) NOT NULL,
    "objectIdentifier" NVARCHAR(20) NULL,
    "objectType" NVARCHAR(254) NULL,
    "version" BIGINT NOT NULL,
    CONSTRAINT "Numerator_PK" PRIMARY KEY ("id")
)
20:48:15,020 [Schema                        ] Execution Time = 1 ms
20:48:15,022 [Schema                        ] Check of existence of
"Agreement" returned no table
20:48:15,022 [Schema                        ] Creating table "Agreement"
20:48:15,022 [Schema                        ] CREATE TABLE "Agreement"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "endDate" DATE NULL,
    "name" NVARCHAR(50) NULL,
    "nextAgreementId" BIGINT NULL,
    "reference" NVARCHAR(24) NOT NULL,
    "startDate" DATE NULL,
    "typeId" BIGINT NOT NULL,
    "version" BIGINT NOT NULL,
    "discriminator" NVARCHAR(255) NOT NULL,
    CONSTRAINT "Agreement_PK" PRIMARY KEY ("id")
)
20:48:15,023 [Schema                        ] Execution Time = 1 ms
20:48:15,025 [Schema                        ] Check of existence of
"BankMandate" returned no table
20:48:15,025 [Schema                        ] Creating table "BankMandate"
20:48:15,025 [Schema                        ] CREATE TABLE "BankMandate"
(
    "id" BIGINT NOT NULL,
    "bankAccountId" BIGINT NOT NULL,
    CONSTRAINT "BankMandate_PK" PRIMARY KEY ("id")
)
20:48:15,026 [Schema                        ] Execution Time = 1 ms
20:48:15,028 [Schema                        ] Check of existence of "Event"
returned no table
20:48:15,028 [Schema                        ] Creating table "Event"
20:48:15,028 [Schema                        ] CREATE TABLE "Event"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "calendarName" NVARCHAR(254) NOT NULL,
    "date" DATE NOT NULL,
    "notes" NVARCHAR(4000) NULL,
    "subjectBreakOptionId" BIGINT NULL,
    "version" BIGINT NOT NULL,
    CONSTRAINT "Event_PK" PRIMARY KEY ("id")
)
20:48:15,029 [Schema                        ] Execution Time = 1 ms
20:48:15,031 [Schema                        ] Check of existence of
"ChargeGroup" returned no table
20:48:15,031 [Schema                        ] Creating table "ChargeGroup"
20:48:15,031 [Schema                        ] CREATE TABLE "ChargeGroup"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "name" NVARCHAR(50) NOT NULL,
    "reference" NVARCHAR(24) NOT NULL,
    "version" BIGINT NOT NULL,
    CONSTRAINT "ChargeGroup_PK" PRIMARY KEY ("id")
)
20:48:15,032 [Schema                        ] Execution Time = 1 ms
20:48:15,034 [Schema                        ] Check of existence of
"UserSetting" returned no table
20:48:15,034 [Schema                        ] Creating table "UserSetting"
20:48:15,034 [Schema                        ] CREATE TABLE "UserSetting"
(
    "key" NVARCHAR(128) NOT NULL,
    "user" NVARCHAR(50) NOT NULL,
    "description" NVARCHAR(254) NULL,
    "type" NVARCHAR(20) NOT NULL,
    "valueRaw" NVARCHAR(255) NOT NULL,
    CONSTRAINT "UserSetting_PK" PRIMARY KEY ("key","user")
)
20:48:15,035 [Schema                        ] Execution Time = 1 ms
20:48:15,038 [Schema                        ] Check of existence of
"Currency" returned no table
20:48:15,038 [Schema                        ] Creating table "Currency"
20:48:15,038 [Schema                        ] CREATE TABLE "Currency"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "name" NVARCHAR(50) NOT NULL,
    "reference" NVARCHAR(24) NOT NULL,
    "version" BIGINT NOT NULL,
    CONSTRAINT "Currency_PK" PRIMARY KEY ("id")
)
20:48:15,039 [Schema                        ] Execution Time = 1 ms
20:48:15,043 [Schema                        ] Check of existence of
"TaxRate" returned no table
20:48:15,043 [Schema                        ] Creating table "TaxRate"
20:48:15,043 [Schema                        ] CREATE TABLE "TaxRate"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "endDate" DATE NULL,
    "externalReference" NVARCHAR(50) NULL,
    "nextTaxRateId" BIGINT NULL,
    "percentage" DECIMAL(19,2) NULL,
    "startDate" DATE NULL,
    "taxId" BIGINT NOT NULL,
    "version" BIGINT NOT NULL,
    CONSTRAINT "TaxRate_PK" PRIMARY KEY ("id")
)
20:48:15,043 [Schema                        ] Execution Time = 0 ms
20:48:15,046 [Schema                        ] Check of existence of
"PartyRegistration" returned no table
20:48:15,046 [Schema                        ] Creating table
"PartyRegistration"
20:48:15,046 [Schema                        ] CREATE TABLE
"PartyRegistration"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "endDate" DATE NULL,
    "partyId" BIGINT NOT NULL,
    "startDate" DATE NULL,
    "type" NVARCHAR(30) NOT NULL,
    "version" BIGINT NOT NULL,
    CONSTRAINT "PartyRegistration_PK" PRIMARY KEY ("id")
)
20:48:15,047 [Schema                        ] Execution Time = 1 ms
20:48:15,050 [Schema                        ] Check of existence of
"AgreementRoleType" returned no table
20:48:15,050 [Schema                        ] Creating table
"AgreementRoleType"
20:48:15,050 [Schema                        ] CREATE TABLE
"AgreementRoleType"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "appliesToAgreementTypeId" BIGINT NOT NULL,
    "title" NVARCHAR(50) NOT NULL,
    CONSTRAINT "AgreementRoleType_PK" PRIMARY KEY ("id")
)
20:48:15,051 [Schema                        ] Execution Time = 1 ms
20:48:15,055 [Schema                        ] Check of existence of
"AuditEntry" returned no table
20:48:15,055 [Schema                        ] Creating table "AuditEntry"
20:48:15,056 [Schema                        ] CREATE TABLE "AuditEntry"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "identifier" NVARCHAR(20) NOT NULL,
    "objectType" NVARCHAR(254) NOT NULL,
    "postValue" NVARCHAR(255) NULL,
    "preValue" NVARCHAR(255) NULL,
    "timestampEpoch" BIGINT NOT NULL,
    "user" NVARCHAR(50) NULL,
    CONSTRAINT "AuditEntry_PK" PRIMARY KEY ("id")
)
20:48:15,057 [Schema                        ] Execution Time = 1 ms
20:48:15,060 [Schema                        ] Check of existence of
"FinancialAccount" returned no table
20:48:15,060 [Schema                        ] Creating table
"FinancialAccount"
20:48:15,060 [Schema                        ] CREATE TABLE
"FinancialAccount"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "name" NVARCHAR(50) NOT NULL,
    "ownerPartyId" BIGINT NOT NULL,
    "reference" NVARCHAR(24) NOT NULL,
    "type" NVARCHAR(30) NOT NULL,
    "version" BIGINT NOT NULL,
    "discriminator" NVARCHAR(255) NOT NULL,
    CONSTRAINT "FinancialAccount_PK" PRIMARY KEY ("id")
)
20:48:15,062 [Schema                        ] Execution Time = 2 ms
20:48:15,068 [Schema                        ] Check of existence of
"BankAccount" returned no table
20:48:15,068 [Schema                        ] Creating table "BankAccount"
20:48:15,068 [Schema                        ] CREATE TABLE "BankAccount"
(
    "id" BIGINT NOT NULL,
    "accountNumber" NVARCHAR(20) NULL,
    "bankPartyId" BIGINT NULL,
    "bankAccountType" NVARCHAR(30) NOT NULL,
    "branchCode" NVARCHAR(20) NULL,
    "countryId" BIGINT NULL,
    "iban" NVARCHAR(32) NULL,
    "nationalBankCode" NVARCHAR(20) NULL,
    "nationalCheckCode" NVARCHAR(20) NULL,
    "fixedAssetId" BIGINT NULL,
    CONSTRAINT "BankAccount_PK" PRIMARY KEY ("id")
)
20:48:15,070 [Schema                        ] Execution Time = 2 ms
20:48:15,072 [Schema                        ] Check of existence of
"UnitSize" returned no table
20:48:15,072 [Schema                        ] Creating table "UnitSize"
20:48:15,072 [Schema                        ] CREATE TABLE "UnitSize"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "name" NVARCHAR(50) NOT NULL,
    "version" BIGINT NOT NULL,
    CONSTRAINT "UnitSize_PK" PRIMARY KEY ("id")
)
20:48:15,073 [Schema                        ] Execution Time = 1 ms
20:48:15,075 [Schema                        ] Check of existence of
"ApplicationSetting" returned no table
20:48:15,075 [Schema                        ] Creating table
"ApplicationSetting"
20:48:15,075 [Schema                        ] CREATE TABLE
"ApplicationSetting"
(
    "key" NVARCHAR(128) NOT NULL,
    "description" NVARCHAR(254) NULL,
    "type" NVARCHAR(20) NOT NULL,
    "valueRaw" NVARCHAR(255) NOT NULL,
    CONSTRAINT "ApplicationSetting_PK" PRIMARY KEY ("key")
)
20:48:15,076 [Schema                        ] Execution Time = 1 ms
20:48:15,079 [Schema                        ] Check of existence of
"FixedAsset" returned no table
20:48:15,079 [Schema                        ] Creating table "FixedAsset"
20:48:15,079 [Schema                        ] CREATE TABLE "FixedAsset"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "name" NVARCHAR(50) NOT NULL,
    "reference" NVARCHAR(24) NOT NULL,
    "version" BIGINT NOT NULL,
    "discriminator" NVARCHAR(255) NOT NULL,
    CONSTRAINT "FixedAsset_PK" PRIMARY KEY ("id")
)
20:48:15,080 [Schema                        ] Execution Time = 1 ms
20:48:15,082 [Schema                        ] Check of existence of
"Property" returned no table
20:48:15,082 [Schema                        ] Creating table "Property"
20:48:15,082 [Schema                        ] CREATE TABLE "Property"
(
    "id" BIGINT NOT NULL,
    "acquireDate" DATE NULL,
    "area" DECIMAL(19,2) NULL,
    "city" NVARCHAR(50) NULL,
    "countryId" BIGINT NULL,
    "disposalDate" DATE NULL,
    "location" BLOB NULL,
    "openingDate" DATE NULL,
    "type" NVARCHAR(30) NOT NULL,
    CONSTRAINT "Property_PK" PRIMARY KEY ("id")
)
20:48:15,083 [Schema                        ] Execution Time = 1 ms
20:48:15,085 [Schema                        ] Check of existence of
"LeaseAssignment" returned no table
20:48:15,085 [Schema                        ] Creating table
"LeaseAssignment"
20:48:15,085 [Schema                        ] CREATE TABLE "LeaseAssignment"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "assignmentDate" DATE NOT NULL,
    "nextLeaseId" BIGINT NULL,
    "previousLeaseId" BIGINT NULL,
    "type" NVARCHAR(30) NOT NULL,
    "version" BIGINT NOT NULL,
    CONSTRAINT "LeaseAssignment_PK" PRIMARY KEY ("id")
)
20:48:15,086 [Schema                        ] Execution Time = 1 ms
20:48:15,087 [Schema                        ] Check of existence of "State"
returned no table
20:48:15,087 [Schema                        ] Creating table "State"
20:48:15,087 [Schema                        ] CREATE TABLE "State"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "countryId" BIGINT NOT NULL,
    "name" NVARCHAR(50) NOT NULL,
    "reference" NVARCHAR(6) NOT NULL,
    "version" BIGINT NOT NULL,
    CONSTRAINT "State_PK" PRIMARY KEY ("id")
)
20:48:15,088 [Schema                        ] Execution Time = 1 ms
20:48:15,090 [Schema                        ] Check of existence of
"LeaseStatusReason" returned no table
20:48:15,090 [Schema                        ] Creating table
"LeaseStatusReason"
20:48:15,090 [Schema                        ] CREATE TABLE
"LeaseStatusReason"
(
    "LeaseStatusReason_ID" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "leaseId" BIGINT NOT NULL,
    "reason" NVARCHAR(4000) NOT NULL,
    "status" NVARCHAR(20) NOT NULL,
    "timestamp" BIGINT NOT NULL,
    "user" NVARCHAR(50) NOT NULL,
    CONSTRAINT "LeaseStatusReason_PK" PRIMARY KEY ("LeaseStatusReason_ID")
)
20:48:15,091 [Schema                        ] Execution Time = 1 ms
20:48:15,092 [Schema                        ] Check of existence of
"Activity" returned no table
20:48:15,092 [Schema                        ] Creating table "Activity"
20:48:15,093 [Schema                        ] CREATE TABLE "Activity"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "name" NVARCHAR(50) NOT NULL,
    "sectorId" BIGINT NOT NULL,
    "version" BIGINT NOT NULL,
    CONSTRAINT "Activity_PK" PRIMARY KEY ("id")
)
20:48:15,093 [Schema                        ] Execution Time = 0 ms
20:48:15,095 [Schema                        ] Check of existence of "Party"
returned no table
20:48:15,095 [Schema                        ] Creating table "Party"
20:48:15,095 [Schema                        ] CREATE TABLE "Party"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "name" NVARCHAR(80) NOT NULL,
    "reference" NVARCHAR(24) NOT NULL,
    "version" BIGINT NOT NULL,
    "discriminator" NVARCHAR(255) NOT NULL,
    CONSTRAINT "Party_PK" PRIMARY KEY ("id")
)
20:48:15,096 [Schema                        ] Execution Time = 1 ms
20:48:15,098 [Schema                        ] Check of existence of
"Organisation" returned no table
20:48:15,098 [Schema                        ] Creating table "Organisation"
20:48:15,098 [Schema                        ] CREATE TABLE "Organisation"
(
    "id" BIGINT NOT NULL,
    "fiscalCode" NVARCHAR(30) NULL,
    "vatCode" NVARCHAR(30) NULL,
    CONSTRAINT "Organisation_PK" PRIMARY KEY ("id")
)
20:48:15,099 [Schema                        ] Execution Time = 1 ms
20:48:15,101 [Schema                        ] Check of existence of
"FixedAssetRegistrationType" returned no table
20:48:15,101 [Schema                        ] Creating table
"FixedAssetRegistrationType"
20:48:15,101 [Schema                        ] CREATE TABLE
"FixedAssetRegistrationType"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "fullyQualifiedClassName" NVARCHAR(254) NOT NULL,
    "title" NVARCHAR(50) NOT NULL,
    CONSTRAINT "FixedAssetRegistrationType_PK" PRIMARY KEY ("id")
)
20:48:15,103 [Schema                        ] Execution Time = 1 ms
20:48:15,105 [Schema                        ] Check of existence of
"FixedAssetRegistration" returned no table
20:48:15,105 [Schema                        ] Creating table
"FixedAssetRegistration"
20:48:15,106 [Schema                        ] CREATE TABLE
"FixedAssetRegistration"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "subjectId" BIGINT NOT NULL,
    "typeId" BIGINT NOT NULL,
    "version" BIGINT NOT NULL,
    "discriminator" NVARCHAR(255) NOT NULL,
    CONSTRAINT "FixedAssetRegistration_PK" PRIMARY KEY ("id")
)
20:48:15,107 [Schema                        ] Execution Time = 1 ms
20:48:15,109 [Schema                        ] Check of existence of
"LandRegister" returned no table
20:48:15,109 [Schema                        ] Creating table "LandRegister"
20:48:15,110 [Schema                        ] CREATE TABLE "LandRegister"
(
    "id" BIGINT NOT NULL,
    "categoria" NVARCHAR(255) NULL,
    "classe" NVARCHAR(255) NULL,
    "codiceComuneCatastale" NVARCHAR(255) NULL,
    "comuneAmministrativo" NVARCHAR(255) NULL,
    "comuneCatastale" NVARCHAR(255) NULL,
    "consistenza" NVARCHAR(255) NULL,
    "foglio" NVARCHAR(255) NULL,
    "particella" NVARCHAR(255) NULL,
    "rendita" NVARCHAR(255) NULL,
    "subalterno" NVARCHAR(255) NULL,
    CONSTRAINT "LandRegister_PK" PRIMARY KEY ("id")
)
20:48:15,110 [Schema                        ] Execution Time = 0 ms
20:48:15,112 [Schema                        ] Check of existence of "Tag"
returned no table
20:48:15,112 [Schema                        ] Creating table "Tag"
20:48:15,112 [Schema                        ] CREATE TABLE "Tag"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "name" NVARCHAR(50) NOT NULL,
    "objectType" NVARCHAR(254) NOT NULL,
    "taggable_Occupancy_id_EID" BIGINT NULL,
    "value" NVARCHAR(255) NOT NULL,
    "version" BIGINT NOT NULL,
    CONSTRAINT "Tag_PK" PRIMARY KEY ("id")
)
20:48:15,114 [Schema                        ] Execution Time = 1 ms
20:48:15,116 [Schema                        ] Check of existence of
"Charge" returned no table
20:48:15,116 [Schema                        ] Creating table "Charge"
20:48:15,116 [Schema                        ] CREATE TABLE "Charge"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "description" NVARCHAR(254) NOT NULL,
    "externalReference" NVARCHAR(50) NULL,
    "groupId" BIGINT NOT NULL,
    "name" NVARCHAR(50) NOT NULL,
    "reference" NVARCHAR(24) NOT NULL,
    "sortOrder" NVARCHAR(24) NULL,
    "taxId" BIGINT NOT NULL,
    "version" BIGINT NOT NULL,
    CONSTRAINT "Charge_PK" PRIMARY KEY ("id")
)
20:48:15,117 [Schema                        ] Execution Time = 1 ms
20:48:15,120 [Schema                        ] Check of existence of
"IndexValue" returned no table
20:48:15,120 [Schema                        ] Creating table "IndexValue"
20:48:15,120 [Schema                        ] CREATE TABLE "IndexValue"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "indexBaseId" BIGINT NOT NULL,
    "startDate" DATE NOT NULL,
    "value" DECIMAL(19,4) NOT NULL,
    "version" BIGINT NOT NULL,
    CONSTRAINT "IndexValue_PK" PRIMARY KEY ("id")
)
20:48:15,121 [Schema                        ] Execution Time = 1 ms
20:48:15,124 [Schema                        ] Check of existence of "Tax"
returned no table
20:48:15,124 [Schema                        ] Creating table "Tax"
20:48:15,124 [Schema                        ] CREATE TABLE "Tax"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "externalReference" NVARCHAR(50) NULL,
    "name" NVARCHAR(50) NULL,
    "reference" NVARCHAR(24) NOT NULL,
    "version" BIGINT NOT NULL,
    CONSTRAINT "Tax_PK" PRIMARY KEY ("id")
)
20:48:15,125 [Schema                        ] Execution Time = 1 ms
20:48:15,127 [Schema                        ] Check of existence of
"Invoice" returned no table
20:48:15,127 [Schema                        ] Creating table "Invoice"
20:48:15,127 [Schema                        ] CREATE TABLE "Invoice"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "buyerPartyId" BIGINT NOT NULL,
    "collectionNumber" NVARCHAR(16) NULL,
    "currencyId" BIGINT NULL,
    "dueDate" DATE NOT NULL,
    "invoiceDate" DATE NULL,
    "invoiceNumber" NVARCHAR(16) NULL,
    "lastItemSequence" NUMERIC NULL,
    "sourceLeaseId" BIGINT NULL,
    "paymentMethod" NVARCHAR(30) NOT NULL,
    "sellerPartyId" BIGINT NOT NULL,
    "status" NVARCHAR(20) NOT NULL,
    "version" BIGINT NOT NULL,
    CONSTRAINT "Invoice_PK" PRIMARY KEY ("id")
)
20:48:15,129 [Schema                        ] Execution Time = 2 ms
20:48:15,130 [Schema                        ] Check of existence of
"Person" returned no table
20:48:15,130 [Schema                        ] Creating table "Person"
20:48:15,131 [Schema                        ] CREATE TABLE "Person"
(
    "id" BIGINT NOT NULL,
    "firstName" NVARCHAR(50) NULL,
    "gender" NVARCHAR(30) NOT NULL,
    "initials" NVARCHAR(3) NULL,
    "lastName" NVARCHAR(50) NOT NULL,
    CONSTRAINT "Person_PK" PRIMARY KEY ("id")
)
20:48:15,131 [Schema                        ] Execution Time = 0 ms
20:48:15,133 [Schema                        ] Check of existence of
"Country" returned no table
20:48:15,133 [Schema                        ] Creating table "Country"
20:48:15,134 [Schema                        ] CREATE TABLE "Country"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "alpha2Code" NVARCHAR(2) NOT NULL,
    "name" NVARCHAR(50) NOT NULL,
    "reference" NVARCHAR(24) NOT NULL,
    "version" BIGINT NOT NULL,
    CONSTRAINT "Country_PK" PRIMARY KEY ("id")
)
20:48:15,135 [Schema                        ] Execution Time = 1 ms
20:48:15,137 [Schema                        ] Check of existence of "Lease"
returned no table
20:48:15,137 [Schema                        ] Creating table "Lease"
20:48:15,137 [Schema                        ] CREATE TABLE "Lease"
(
    "id" BIGINT NOT NULL,
    "leaseTypeId" BIGINT NULL,
    "paidByBankMandateId" BIGINT NULL,
    "status" NVARCHAR(20) NOT NULL,
    "tenancyEndDate" DATE NULL,
    "tenancyStartDate" DATE NULL,
    CONSTRAINT "Lease_PK" PRIMARY KEY ("id")
)
20:48:15,138 [Schema                        ] Execution Time = 1 ms
20:48:15,140 [Schema                        ] Check of existence of
"LeaseItem" returned no table
20:48:15,140 [Schema                        ] Creating table "LeaseItem"
20:48:15,140 [Schema                        ] CREATE TABLE "LeaseItem"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "chargeId" BIGINT NOT NULL,
    "endDate" DATE NULL,
    "epochDate" DATE NULL,
    "invoicingFrequency" NVARCHAR(30) NOT NULL,
    "leaseId" BIGINT NOT NULL,
    "nextDueDate" DATE NULL,
    "paymentMethod" NVARCHAR(30) NOT NULL,
    "sequence" NUMERIC NOT NULL,
    "startDate" DATE NULL,
    "status" NVARCHAR(20) NOT NULL,
    "type" NVARCHAR(30) NOT NULL,
    "version" BIGINT NOT NULL,
    CONSTRAINT "LeaseItem_PK" PRIMARY KEY ("id")
)
20:48:15,142 [Schema                        ] Execution Time = 2 ms
20:48:15,144 [Schema                        ] Check of existence of
"AgreementRoleCommunicationChannelType" returned no table
20:48:15,144 [Schema                        ] Creating table
"AgreementRoleCommunicationChannelType"
20:48:15,144 [Schema                        ] CREATE TABLE
"AgreementRoleCommunicationChannelType"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "appliesToAgreementTypeId" BIGINT NOT NULL,
    "title" NVARCHAR(50) NOT NULL,
    CONSTRAINT "AgreementRoleCommunicationChannelType_PK" PRIMARY KEY ("id")
)
20:48:15,145 [Schema                        ] Execution Time = 1 ms
20:48:15,148 [Schema                        ] Check of existence of
"LeaseType" returned no table
20:48:15,148 [Schema                        ] Creating table "LeaseType"
20:48:15,148 [Schema                        ] CREATE TABLE "LeaseType"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "name" NVARCHAR(50) NOT NULL,
    "reference" NVARCHAR(24) NOT NULL,
    CONSTRAINT "LeaseType_PK" PRIMARY KEY ("id")
)
20:48:15,149 [Schema                        ] Execution Time = 1 ms
20:48:15,151 [Schema                        ] Check of existence of
"AgreementRoleCommunicationChannel" returned no table
20:48:15,151 [Schema                        ] Creating table
"AgreementRoleCommunicationChannel"
20:48:15,151 [Schema                        ] CREATE TABLE
"AgreementRoleCommunicationChannel"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "communicationChannelId" BIGINT NOT NULL,
    "endDate" DATE NULL,
    "agreementRoleId" BIGINT NOT NULL,
    "startDate" DATE NULL,
    "typeId" BIGINT NOT NULL,
    "version" BIGINT NOT NULL,
    CONSTRAINT "AgreementRoleCommunicationChannel_PK" PRIMARY KEY ("id")
)
20:48:15,153 [Schema                        ] Execution Time = 1 ms
20:48:15,155 [Schema                        ] Check of existence of
"AgreementType" returned no table
20:48:15,155 [Schema                        ] Creating table "AgreementType"
20:48:15,155 [Schema                        ] CREATE TABLE "AgreementType"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "title" NVARCHAR(50) NOT NULL,
    CONSTRAINT "AgreementType_PK" PRIMARY KEY ("id")
)
20:48:15,156 [Schema                        ] Execution Time = 1 ms
20:48:15,158 [Schema                        ] Check of existence of
"Occupancy" returned no table
20:48:15,158 [Schema                        ] Creating table "Occupancy"
20:48:15,158 [Schema                        ] CREATE TABLE "Occupancy"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "activityId" BIGINT NULL,
    "brandId" BIGINT NULL,
    "endDate" DATE NULL,
    "leaseId" BIGINT NOT NULL,
    "reportOCR" NVARCHAR(30) NOT NULL,
    "reportRent" NVARCHAR(30) NOT NULL,
    "reportTurnover" NVARCHAR(30) NOT NULL,
    "sectorId" BIGINT NULL,
    "startDate" DATE NULL,
    "unitId" BIGINT NOT NULL,
    "unitSizeId" BIGINT NULL,
    "version" BIGINT NOT NULL,
    CONSTRAINT "Occupancy_PK" PRIMARY KEY ("id")
)
20:48:15,160 [Schema                        ] Execution Time = 2 ms
20:48:15,161 [Schema                        ] Check of existence of
"IndexBase" returned no table
20:48:15,161 [Schema                        ] Creating table "IndexBase"
20:48:15,161 [Schema                        ] CREATE TABLE "IndexBase"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "factor" DECIMAL(19,4) NULL,
    "indexId" BIGINT NOT NULL,
    "nextIndexBaseId" BIGINT NULL,
    "startDate" DATE NOT NULL,
    "version" BIGINT NOT NULL,
    CONSTRAINT "IndexBase_PK" PRIMARY KEY ("id")
)
20:48:15,162 [Schema                        ] Execution Time = 1 ms
20:48:15,164 [Schema                        ] Check of existence of "Index"
returned no table
20:48:15,164 [Schema                        ] Creating table "Index"
20:48:15,164 [Schema                        ] CREATE TABLE "Index"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "name" NVARCHAR(50) NOT NULL,
    "reference" NVARCHAR(24) NOT NULL,
    "version" BIGINT NOT NULL,
    CONSTRAINT "Index_PK" PRIMARY KEY ("id")
)
20:48:15,165 [Schema                        ] Execution Time = 1 ms
20:48:15,167 [Schema                        ] Check of existence of
"AgreementRole" returned no table
20:48:15,167 [Schema                        ] Creating table "AgreementRole"
20:48:15,167 [Schema                        ] CREATE TABLE "AgreementRole"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "agreementId" BIGINT NOT NULL,
    "endDate" DATE NULL,
    "partyId" BIGINT NOT NULL,
    "startDate" DATE NULL,
    "typeId" BIGINT NOT NULL,
    "version" BIGINT NOT NULL,
    CONSTRAINT "AgreementRole_PK" PRIMARY KEY ("id")
)
20:48:15,168 [Schema                        ] Execution Time = 1 ms
20:48:15,170 [Schema                        ] Check of existence of
"Sector" returned no table
20:48:15,170 [Schema                        ] Creating table "Sector"
20:48:15,170 [Schema                        ] CREATE TABLE "Sector"
(
    "id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
    "name" NVARCHAR(50) NOT NULL,
    "version" BIGINT NOT NULL,
    CONSTRAINT "Sector_PK" PRIMARY KEY ("id")
)
20:48:15,171 [Schema                        ] Execution Time = 1 ms
20:48:15,176 [Schema                        ] Creating foreign key
constraint : "CommunicationChannel_FK2" in catalog "" schema ""
20:48:15,176 [Schema                        ] ALTER TABLE
"CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK2" FOREIGN
KEY ("stateId") REFERENCES "State" ("id")
20:48:15,178 [Schema                        ] Execution Time = 2 ms
20:48:15,178 [Schema                        ] Creating foreign key
constraint : "CommunicationChannel_FK1" in catalog "" schema ""
20:48:15,178 [Schema                        ] ALTER TABLE
"CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK1" FOREIGN
KEY ("countryId") REFERENCES "Country" ("id")
20:48:15,180 [Schema                        ] Execution Time = 2 ms
20:48:15,180 [Schema                        ] Creating foreign key
constraint : "CommunicationChannel_FK4" in catalog "" schema ""
20:48:15,180 [Schema                        ] ALTER TABLE
"CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK4" FOREIGN
KEY ("ownerPersonId") REFERENCES "Person" ("id")
20:48:15,181 [Schema                        ] Execution Time = 1 ms
20:48:15,181 [Schema                        ] Creating foreign key
constraint : "CommunicationChannel_FK3" in catalog "" schema ""
20:48:15,181 [Schema                        ] ALTER TABLE
"CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK3" FOREIGN
KEY ("ownerOrganisationId") REFERENCES "Organisation" ("id")
20:48:15,182 [Schema                        ] Execution Time = 1 ms
20:48:15,182 [Schema                        ] Creating foreign key
constraint : "CommunicationChannel_FK6" in catalog "" schema ""
20:48:15,182 [Schema                        ] ALTER TABLE
"CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK6" FOREIGN
KEY ("ownerUnitId") REFERENCES "Unit" ("id")
20:48:15,183 [Schema                        ] Execution Time = 1 ms
20:48:15,183 [Schema                        ] Creating foreign key
constraint : "CommunicationChannel_FK5" in catalog "" schema ""
20:48:15,183 [Schema                        ] ALTER TABLE
"CommunicationChannel" ADD CONSTRAINT "CommunicationChannel_FK5" FOREIGN
KEY ("ownerPropertyId") REFERENCES "Property" ("id")
20:48:15,184 [Schema                        ] Execution Time = 1 ms
20:48:15,186 [Schema                        ] Creating index
"CommunicationChannel_N53" in catalog "" schema ""
20:48:15,186 [Schema                        ] CREATE INDEX
"CommunicationChannel_N53" ON "CommunicationChannel" ("countryId")
20:48:15,187 [Schema                        ] Execution Time = 0 ms
20:48:15,187 [Schema                        ] Creating index
"CommunicationChannel_N54" in catalog "" schema ""
20:48:15,187 [Schema                        ] CREATE INDEX
"CommunicationChannel_N54" ON "CommunicationChannel" ("ownerUnitId")
20:48:15,187 [Schema                        ] Execution Time = 0 ms
20:48:15,187 [Schema                        ] Creating index
"CommunicationChannel_N51" in catalog "" schema ""
20:48:15,187 [Schema                        ] CREATE INDEX
"CommunicationChannel_N51" ON "CommunicationChannel" ("ownerPropertyId")
20:48:15,187 [Schema                        ] Execution Time = 0 ms
20:48:15,187 [Schema                        ] Creating index
"CommunicationChannel_N52" in catalog "" schema ""
20:48:15,187 [Schema                        ] CREATE INDEX
"CommunicationChannel_N52" ON "CommunicationChannel" ("stateId")
20:48:15,188 [Schema                        ] Execution Time = 1 ms
20:48:15,188 [Schema                        ] Creating index
"PhoneNumber_phoneNumber_IDX" in catalog "" schema ""
20:48:15,188 [Schema                        ] CREATE INDEX
"PhoneNumber_phoneNumber_IDX" ON "CommunicationChannel" ("phoneNumber")
20:48:15,188 [Schema                        ] Execution Time = 0 ms
20:48:15,188 [Schema                        ] Creating index
"PostalAddress_main_idx" in catalog "" schema ""
20:48:15,188 [Schema                        ] CREATE INDEX
"PostalAddress_main_idx" ON "CommunicationChannel"
("ownerOrganisationId","ownerPersonId","ownerPropertyId","ownerUnitId","address1","postalCode","city","countryId")
20:48:15,188 [Schema                        ] Execution Time = 0 ms
20:48:15,188 [Schema                        ] Creating index
"CommunicationChannel_N49" in catalog "" schema ""
20:48:15,188 [Schema                        ] CREATE INDEX
"CommunicationChannel_N49" ON "CommunicationChannel" ("ownerOrganisationId")
20:48:15,189 [Schema                        ] Execution Time = 0 ms
20:48:15,189 [Schema                        ] Creating index
"CommunicationChannel_N50" in catalog "" schema ""
20:48:15,189 [Schema                        ] CREATE INDEX
"CommunicationChannel_N50" ON "CommunicationChannel" ("ownerPersonId")
20:48:15,189 [Schema                        ] Execution Time = 0 ms
20:48:15,189 [Schema                        ] Creating index
"EmailAddress_emailAddress_IDX" in catalog "" schema ""
20:48:15,189 [Schema                        ] CREATE INDEX
"EmailAddress_emailAddress_IDX" ON "CommunicationChannel" ("emailAddress")
20:48:15,190 [Schema                        ] Execution Time = 1 ms
20:48:15,190 [Schema                        ] Creating foreign key
constraint : "LeaseTerm_FK2" in catalog "" schema ""
20:48:15,190 [Schema                        ] ALTER TABLE "LeaseTerm" ADD
CONSTRAINT "LeaseTerm_FK2" FOREIGN KEY ("indexId") REFERENCES "Index"
("id")
20:48:15,192 [Schema                        ] Execution Time = 2 ms
20:48:15,192 [Schema                        ] Creating foreign key
constraint : "LeaseTerm_FK3" in catalog "" schema ""
20:48:15,192 [Schema                        ] ALTER TABLE "LeaseTerm" ADD
CONSTRAINT "LeaseTerm_FK3" FOREIGN KEY ("nextLeaseTermId") REFERENCES
"LeaseTerm" ("id")
20:48:15,194 [Schema                        ] Execution Time = 2 ms
20:48:15,194 [Schema                        ] Creating foreign key
constraint : "LeaseTerm_FK1" in catalog "" schema ""
20:48:15,194 [Schema                        ] ALTER TABLE "LeaseTerm" ADD
CONSTRAINT "LeaseTerm_FK1" FOREIGN KEY ("leaseItemId") REFERENCES
"LeaseItem" ("id")
20:48:15,195 [Schema                        ] Execution Time = 1 ms
20:48:15,196 [Schema                        ] Creating index
"LeaseTerm_N50" in catalog "" schema ""
20:48:15,196 [Schema                        ] CREATE INDEX "LeaseTerm_N50"
ON "LeaseTerm" ("indexId")
20:48:15,196 [Schema                        ] Execution Time = 0 ms
20:48:15,196 [Schema                        ] Creating index
"LeaseTerm_leaseItem_startDate_IDX" in catalog "" schema ""
20:48:15,196 [Schema                        ] CREATE INDEX
"LeaseTerm_leaseItem_startDate_IDX" ON "LeaseTerm"
("leaseItemId","startDate")
20:48:15,196 [Schema                        ] Execution Time = 0 ms
20:48:15,196 [Schema                        ] Creating index
"LeaseTerm_N51" in catalog "" schema ""
20:48:15,196 [Schema                        ] CREATE INDEX "LeaseTerm_N51"
ON "LeaseTerm" ("leaseItemId")
20:48:15,197 [Schema                        ] Execution Time = 0 ms
20:48:15,197 [Schema                        ] Creating index
"LeaseTerm_N49" in catalog "" schema ""
20:48:15,197 [Schema                        ] CREATE INDEX "LeaseTerm_N49"
ON "LeaseTerm" ("nextLeaseTermId")
20:48:15,197 [Schema                        ] Execution Time = 0 ms
20:48:15,197 [Schema                        ] Creating index
"LeaseTerm_leaseItem_sequence_IDX" in catalog "" schema ""
20:48:15,197 [Schema                        ] CREATE INDEX
"LeaseTerm_leaseItem_sequence_IDX" ON "LeaseTerm" ("leaseItemId","sequence")
20:48:15,197 [Schema                        ] Execution Time = 0 ms
20:48:15,198 [Schema                        ] Creating foreign key
constraint : "Unit_FK1" in catalog "" schema ""
20:48:15,198 [Schema                        ] ALTER TABLE "Unit" ADD
CONSTRAINT "Unit_FK1" FOREIGN KEY ("id") REFERENCES "FixedAsset" ("id")
20:48:15,199 [Schema                        ] Execution Time = 1 ms
20:48:15,199 [Schema                        ] Creating foreign key
constraint : "Unit_FK2" in catalog "" schema ""
20:48:15,199 [Schema                        ] ALTER TABLE "Unit" ADD
CONSTRAINT "Unit_FK2" FOREIGN KEY ("propertyId") REFERENCES "Property"
("id")
20:48:15,200 [Schema                        ] Execution Time = 1 ms
20:48:15,200 [Schema                        ] Creating index "Unit_N49" in
catalog "" schema ""
20:48:15,200 [Schema                        ] CREATE INDEX "Unit_N49" ON
"Unit" ("propertyId")
20:48:15,200 [Schema                        ] Execution Time = 0 ms
20:48:15,200 [Schema                        ] Unique metadata defined to
use field notificationDate which doesn't exist in this class
20:48:15,200 [Schema                        ] Creating foreign key
constraint : "BreakOption_FK1" in catalog "" schema ""
20:48:15,200 [Schema                        ] ALTER TABLE "BreakOption" ADD
CONSTRAINT "BreakOption_FK1" FOREIGN KEY ("leaseId") REFERENCES "Lease"
("id")
20:48:15,202 [Schema                        ] Execution Time = 1 ms
20:48:15,202 [Schema                        ] Creating index
"BreakOption_N49" in catalog "" schema ""
20:48:15,202 [Schema                        ] CREATE INDEX
"BreakOption_N49" ON "BreakOption" ("leaseId")
20:48:15,203 [Schema                        ] Execution Time = 1 ms
20:48:15,203 [Schema                        ] Creating foreign key
constraint : "InvoiceItem_FK4" in catalog "" schema ""
20:48:15,203 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
CONSTRAINT "InvoiceItem_FK4" FOREIGN KEY ("invoiceId") REFERENCES "Invoice"
("id")
20:48:15,204 [Schema                        ] Execution Time = 1 ms
20:48:15,204 [Schema                        ] Creating foreign key
constraint : "InvoiceItem_FK3" in catalog "" schema ""
20:48:15,204 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
CONSTRAINT "InvoiceItem_FK3" FOREIGN KEY ("leaseTermId") REFERENCES
"LeaseTerm" ("id")
20:48:15,205 [Schema                        ] Execution Time = 1 ms
20:48:15,205 [Schema                        ] Creating foreign key
constraint : "InvoiceItem_FK2" in catalog "" schema ""
20:48:15,205 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
CONSTRAINT "InvoiceItem_FK2" FOREIGN KEY ("chargeId") REFERENCES "Charge"
("id")
20:48:15,206 [Schema                        ] Execution Time = 1 ms
20:48:15,206 [Schema                        ] Creating foreign key
constraint : "InvoiceItem_FK1" in catalog "" schema ""
20:48:15,206 [Schema                        ] ALTER TABLE "InvoiceItem" ADD
CONSTRAINT "InvoiceItem_FK1" FOREIGN KEY ("taxId") REFERENCES "Tax" ("id")
20:48:15,207 [Schema                        ] Execution Time = 1 ms
20:48:15,208 [Schema                        ] Creating index
"InvoiceItem_N51" in catalog "" schema ""
20:48:15,208 [Schema                        ] CREATE INDEX
"InvoiceItem_N51" ON "InvoiceItem" ("taxId")
20:48:15,208 [Schema                        ] Execution Time = 0 ms
20:48:15,208 [Schema                        ] Creating index
"InvoiceItem_N50" in catalog "" schema ""
20:48:15,208 [Schema                        ] CREATE INDEX
"InvoiceItem_N50" ON "InvoiceItem" ("invoiceId")
20:48:15,208 [Schema                        ] Execution Time = 0 ms
20:48:15,208 [Schema                        ] Creating index
"InvoiceItem_N52" in catalog "" schema ""
20:48:15,208 [Schema                        ] CREATE INDEX
"InvoiceItem_N52" ON "InvoiceItem" ("leaseTermId")
20:48:15,208 [Schema                        ] Execution Time = 0 ms
20:48:15,208 [Schema                        ] Creating index
"InvoiceItemForLease_LeaseTerm_StartDate_EndDate_DueDate_IDX" in catalog ""
schema ""
20:48:15,208 [Schema                        ] CREATE INDEX
"InvoiceItemForLease_LeaseTerm_StartDate_EndDate_DueDate_IDX" ON
"InvoiceItem" ("leaseTermId","startDate","endDate","dueDate")
20:48:15,208 [Schema                        ] Execution Time = 0 ms
20:48:15,208 [Schema                        ] Creating index
"InvoiceItem_N49" in catalog "" schema ""
20:48:15,208 [Schema                        ] CREATE INDEX
"InvoiceItem_N49" ON "InvoiceItem" ("chargeId")
20:48:15,209 [Schema                        ] Execution Time = 1 ms
20:48:15,209 [Schema                        ] Creating candidate key
"Brand_name_UNQ" in catalog "" schema ""
20:48:15,209 [Schema                        ] ALTER TABLE "Brand" ADD
CONSTRAINT "Brand_name_UNQ" UNIQUE ("name")
20:48:15,209 [Schema                        ] Execution Time = 0 ms
20:48:15,209 [Schema                        ] Creating foreign key
constraint : "FixedAssetRole_FK1" in catalog "" schema ""
20:48:15,209 [Schema                        ] ALTER TABLE "FixedAssetRole"
ADD CONSTRAINT "FixedAssetRole_FK1" FOREIGN KEY ("assetId") REFERENCES
"FixedAsset" ("id")
20:48:15,210 [Schema                        ] Execution Time = 1 ms
20:48:15,210 [Schema                        ] Creating foreign key
constraint : "FixedAssetRole_FK2" in catalog "" schema ""
20:48:15,210 [Schema                        ] ALTER TABLE "FixedAssetRole"
ADD CONSTRAINT "FixedAssetRole_FK2" FOREIGN KEY ("partyId") REFERENCES
"Party" ("id")
20:48:15,211 [Schema                        ] Execution Time = 1 ms
20:48:15,211 [Schema                        ] Creating index
"FixedAssetRole_N50" in catalog "" schema ""
20:48:15,211 [Schema                        ] CREATE INDEX
"FixedAssetRole_N50" ON "FixedAssetRole" ("assetId")
20:48:15,211 [Schema                        ] Execution Time = 0 ms
20:48:15,212 [Schema                        ] Creating index
"FixedAssetRole_N49" in catalog "" schema ""
20:48:15,212 [Schema                        ] CREATE INDEX
"FixedAssetRole_N49" ON "FixedAssetRole" ("partyId")
20:48:15,212 [Schema                        ] Execution Time = 0 ms
20:48:15,212 [Schema                        ] Creating candidate key
"Agreement_reference_UNQ" in catalog "" schema ""
20:48:15,212 [Schema                        ] ALTER TABLE "Agreement" ADD
CONSTRAINT "Agreement_reference_UNQ" UNIQUE ("reference")
20:48:15,213 [Schema                        ] Execution Time = 1 ms
20:48:15,213 [Schema                        ] Creating foreign key
constraint : "Agreement_FK1" in catalog "" schema ""
20:48:15,213 [Schema                        ] ALTER TABLE "Agreement" ADD
CONSTRAINT "Agreement_FK1" FOREIGN KEY ("typeId") REFERENCES
"AgreementType" ("id")
20:48:15,214 [Schema                        ] Execution Time = 1 ms
20:48:15,214 [Schema                        ] Creating foreign key
constraint : "Agreement_FK2" in catalog "" schema ""
20:48:15,214 [Schema                        ] ALTER TABLE "Agreement" ADD
CONSTRAINT "Agreement_FK2" FOREIGN KEY ("nextAgreementId") REFERENCES
"Agreement" ("id")
20:48:15,214 [Schema                        ] Execution Time = 0 ms
20:48:15,215 [Schema                        ] Creating index
"Lease_reference_name_IDX" in catalog "" schema ""
20:48:15,215 [Schema                        ] CREATE INDEX
"Lease_reference_name_IDX" ON "Agreement" ("reference","name")
20:48:15,215 [Schema                        ] Execution Time = 0 ms
20:48:15,215 [Schema                        ] Creating index
"Agreement_N50" in catalog "" schema ""
20:48:15,215 [Schema                        ] CREATE INDEX "Agreement_N50"
ON "Agreement" ("typeId")
20:48:15,215 [Schema                        ] Execution Time = 0 ms
20:48:15,215 [Schema                        ] Creating index
"Agreement_N49" in catalog "" schema ""
20:48:15,215 [Schema                        ] CREATE INDEX "Agreement_N49"
ON "Agreement" ("nextAgreementId")
20:48:15,215 [Schema                        ] Execution Time = 0 ms
20:48:15,215 [Schema                        ] Creating foreign key
constraint : "BankMandate_FK1" in catalog "" schema ""
20:48:15,215 [Schema                        ] ALTER TABLE "BankMandate" ADD
CONSTRAINT "BankMandate_FK1" FOREIGN KEY ("id") REFERENCES "Agreement"
("id")
20:48:15,216 [Schema                        ] Execution Time = 1 ms
20:48:15,216 [Schema                        ] Creating foreign key
constraint : "BankMandate_FK2" in catalog "" schema ""
20:48:15,216 [Schema                        ] ALTER TABLE "BankMandate" ADD
CONSTRAINT "BankMandate_FK2" FOREIGN KEY ("bankAccountId") REFERENCES
"FinancialAccount" ("id")
20:48:15,216 [Schema                        ] Execution Time = 0 ms
20:48:15,217 [Schema                        ] Creating index
"BankMandate_N49" in catalog "" schema ""
20:48:15,217 [Schema                        ] CREATE INDEX
"BankMandate_N49" ON "BankMandate" ("bankAccountId")
20:48:15,217 [Schema                        ] Execution Time = 0 ms
20:48:15,217 [Schema                        ] Creating foreign key
constraint : "Event_FK1" in catalog "" schema ""
20:48:15,217 [Schema                        ] ALTER TABLE "Event" ADD
CONSTRAINT "Event_FK1" FOREIGN KEY ("subjectBreakOptionId") REFERENCES
"BreakOption" ("id")
20:48:15,218 [Schema                        ] Execution Time = 1 ms
20:48:15,218 [Schema                        ] Creating index "Event_N49" in
catalog "" schema ""
20:48:15,218 [Schema                        ] CREATE INDEX "Event_N49" ON
"Event" ("subjectBreakOptionId")
20:48:15,218 [Schema                        ] Execution Time = 0 ms
20:48:15,218 [Schema                        ] Creating candidate key
"ChargeGroup_reference_UNQ" in catalog "" schema ""
20:48:15,218 [Schema                        ] ALTER TABLE "ChargeGroup" ADD
CONSTRAINT "ChargeGroup_reference_UNQ" UNIQUE ("reference")
20:48:15,219 [Schema                        ] Execution Time = 1 ms
20:48:15,219 [Schema                        ] Creating candidate key
"Currency_reference_UNQ" in catalog "" schema ""
20:48:15,219 [Schema                        ] ALTER TABLE "Currency" ADD
CONSTRAINT "Currency_reference_UNQ" UNIQUE ("reference")
20:48:15,219 [Schema                        ] Execution Time = 0 ms
20:48:15,220 [Schema                        ] Creating candidate key
"Currency_name_UNQ" in catalog "" schema ""
20:48:15,220 [Schema                        ] ALTER TABLE "Currency" ADD
CONSTRAINT "Currency_name_UNQ" UNIQUE ("name")
20:48:15,221 [Schema                        ] Execution Time = 1 ms
20:48:15,221 [Schema                        ] Creating foreign key
constraint : "TaxRate_FK1" in catalog "" schema ""
20:48:15,221 [Schema                        ] ALTER TABLE "TaxRate" ADD
CONSTRAINT "TaxRate_FK1" FOREIGN KEY ("taxId") REFERENCES "Tax" ("id")
20:48:15,222 [Schema                        ] Execution Time = 1 ms
20:48:15,222 [Schema                        ] Creating foreign key
constraint : "TaxRate_FK2" in catalog "" schema ""
20:48:15,222 [Schema                        ] ALTER TABLE "TaxRate" ADD
CONSTRAINT "TaxRate_FK2" FOREIGN KEY ("nextTaxRateId") REFERENCES "TaxRate"
("id")
20:48:15,223 [Schema                        ] Execution Time = 1 ms
20:48:15,223 [Schema                        ] Creating index "TaxRate_N49"
in catalog "" schema ""
20:48:15,223 [Schema                        ] CREATE INDEX "TaxRate_N49" ON
"TaxRate" ("nextTaxRateId")
20:48:15,223 [Schema                        ] Execution Time = 0 ms
20:48:15,223 [Schema                        ] Creating index "TaxRate_N50"
in catalog "" schema ""
20:48:15,223 [Schema                        ] CREATE INDEX "TaxRate_N50" ON
"TaxRate" ("taxId")
20:48:15,223 [Schema                        ] Execution Time = 0 ms
20:48:15,223 [Schema                        ] Creating foreign key
constraint : "PartyRegistration_FK1" in catalog "" schema ""
20:48:15,224 [Schema                        ] ALTER TABLE
"PartyRegistration" ADD CONSTRAINT "PartyRegistration_FK1" FOREIGN KEY
("partyId") REFERENCES "Party" ("id")
20:48:15,225 [Schema                        ] Execution Time = 1 ms
20:48:15,225 [Schema                        ] Creating index
"PartyRegistration_N49" in catalog "" schema ""
20:48:15,225 [Schema                        ] CREATE INDEX
"PartyRegistration_N49" ON "PartyRegistration" ("partyId")
20:48:15,225 [Schema                        ] Execution Time = 0 ms
20:48:15,225 [Schema                        ] Creating foreign key
constraint : "AgreementRoleType_FK1" in catalog "" schema ""
20:48:15,225 [Schema                        ] ALTER TABLE
"AgreementRoleType" ADD CONSTRAINT "AgreementRoleType_FK1" FOREIGN KEY
("appliesToAgreementTypeId") REFERENCES "AgreementType" ("id")
20:48:15,226 [Schema                        ] Execution Time = 1 ms
20:48:15,226 [Schema                        ] Creating index
"AgreementRoleType_N49" in catalog "" schema ""
20:48:15,226 [Schema                        ] CREATE INDEX
"AgreementRoleType_N49" ON "AgreementRoleType" ("appliesToAgreementTypeId")
20:48:15,227 [Schema                        ] Execution Time = 1 ms
20:48:15,227 [Schema                        ] Creating candidate key
"FinancialAccount_reference_UNQ" in catalog "" schema ""
20:48:15,227 [Schema                        ] ALTER TABLE
"FinancialAccount" ADD CONSTRAINT "FinancialAccount_reference_UNQ" UNIQUE
("reference")
20:48:15,228 [Schema                        ] Execution Time = 1 ms
20:48:15,229 [Schema                        ] Creating foreign key
constraint : "FinancialAccount_FK1" in catalog "" schema ""
20:48:15,229 [Schema                        ] ALTER TABLE
"FinancialAccount" ADD CONSTRAINT "FinancialAccount_FK1" FOREIGN KEY
("ownerPartyId") REFERENCES "Party" ("id")
20:48:15,231 [Schema                        ] Execution Time = 2 ms
20:48:15,231 [Schema                        ] Creating index
"FinancialAccount_N49" in catalog "" schema ""
20:48:15,231 [Schema                        ] CREATE INDEX
"FinancialAccount_N49" ON "FinancialAccount" ("ownerPartyId")
20:48:15,231 [Schema                        ] Execution Time = 0 ms
20:48:15,232 [Schema                        ] Creating foreign key
constraint : "BankAccount_FK1" in catalog "" schema ""
20:48:15,232 [Schema                        ] ALTER TABLE "BankAccount" ADD
CONSTRAINT "BankAccount_FK1" FOREIGN KEY ("id") REFERENCES
"FinancialAccount" ("id")
20:48:15,232 [Schema                        ] Execution Time = 0 ms
20:48:15,232 [Schema                        ] Creating foreign key
constraint : "BankAccount_FK2" in catalog "" schema ""
20:48:15,232 [Schema                        ] ALTER TABLE "BankAccount" ADD
CONSTRAINT "BankAccount_FK2" FOREIGN KEY ("countryId") REFERENCES "Country"
("id")
20:48:15,233 [Schema                        ] Execution Time = 1 ms
20:48:15,233 [Schema                        ] Creating foreign key
constraint : "BankAccount_FK3" in catalog "" schema ""
20:48:15,233 [Schema                        ] ALTER TABLE "BankAccount" ADD
CONSTRAINT "BankAccount_FK3" FOREIGN KEY ("fixedAssetId") REFERENCES
"Property" ("id")
20:48:15,234 [Schema                        ] Execution Time = 1 ms
20:48:15,234 [Schema                        ] Creating foreign key
constraint : "BankAccount_FK4" in catalog "" schema ""
20:48:15,234 [Schema                        ] ALTER TABLE "BankAccount" ADD
CONSTRAINT "BankAccount_FK4" FOREIGN KEY ("bankPartyId") REFERENCES "Party"
("id")
20:48:15,234 [Schema                        ] Execution Time = 0 ms
20:48:15,235 [Schema                        ] Creating index
"BankAccount_N51" in catalog "" schema ""
20:48:15,235 [Schema                        ] CREATE INDEX
"BankAccount_N51" ON "BankAccount" ("fixedAssetId")
20:48:15,235 [Schema                        ] Execution Time = 0 ms
20:48:15,235 [Schema                        ] Creating index
"BankAccount_N50" in catalog "" schema ""
20:48:15,235 [Schema                        ] CREATE INDEX
"BankAccount_N50" ON "BankAccount" ("bankPartyId")
20:48:15,235 [Schema                        ] Execution Time = 0 ms
20:48:15,235 [Schema                        ] Creating index
"BankAccount_N49" in catalog "" schema ""
20:48:15,235 [Schema                        ] CREATE INDEX
"BankAccount_N49" ON "BankAccount" ("countryId")
20:48:15,235 [Schema                        ] Execution Time = 0 ms
20:48:15,235 [Schema                        ] Creating candidate key
"UnitSize_name_UNQ" in catalog "" schema ""
20:48:15,235 [Schema                        ] ALTER TABLE "UnitSize" ADD
CONSTRAINT "UnitSize_name_UNQ" UNIQUE ("name")
20:48:15,236 [Schema                        ] Execution Time = 1 ms
20:48:15,236 [Schema                        ] Creating candidate key
"FixedAsset_reference_UNQ" in catalog "" schema ""
20:48:15,236 [Schema                        ] ALTER TABLE "FixedAsset" ADD
CONSTRAINT "FixedAsset_reference_UNQ" UNIQUE ("reference")
20:48:15,237 [Schema                        ] Execution Time = 1 ms
20:48:15,237 [Schema                        ] Creating index
"FixedAsset_reference_name_IDX" in catalog "" schema ""
20:48:15,237 [Schema                        ] CREATE INDEX
"FixedAsset_reference_name_IDX" ON "FixedAsset" ("reference","name")
20:48:15,237 [Schema                        ] Execution Time = 0 ms
20:48:15,237 [Schema                        ] Creating foreign key
constraint : "Property_FK2" in catalog "" schema ""
20:48:15,237 [Schema                        ] ALTER TABLE "Property" ADD
CONSTRAINT "Property_FK2" FOREIGN KEY ("countryId") REFERENCES "Country"
("id")
20:48:15,238 [Schema                        ] Execution Time = 1 ms
20:48:15,238 [Schema                        ] Creating foreign key
constraint : "Property_FK1" in catalog "" schema ""
20:48:15,238 [Schema                        ] ALTER TABLE "Property" ADD
CONSTRAINT "Property_FK1" FOREIGN KEY ("id") REFERENCES "FixedAsset" ("id")
20:48:15,238 [Schema                        ] Execution Time = 0 ms
20:48:15,238 [Schema                        ] Creating index "Property_N49"
in catalog "" schema ""
20:48:15,238 [Schema                        ] CREATE INDEX "Property_N49"
ON "Property" ("countryId")
20:48:15,239 [Schema                        ] Execution Time = 1 ms
20:48:15,239 [Schema                        ] Creating foreign key
constraint : "LeaseAssignment_FK2" in catalog "" schema ""
20:48:15,239 [Schema                        ] ALTER TABLE "LeaseAssignment"
ADD CONSTRAINT "LeaseAssignment_FK2" FOREIGN KEY ("previousLeaseId")
REFERENCES "Lease" ("id")
20:48:15,239 [Schema                        ] Execution Time = 0 ms
20:48:15,239 [Schema                        ] Creating foreign key
constraint : "LeaseAssignment_FK1" in catalog "" schema ""
20:48:15,239 [Schema                        ] ALTER TABLE "LeaseAssignment"
ADD CONSTRAINT "LeaseAssignment_FK1" FOREIGN KEY ("nextLeaseId") REFERENCES
"Lease" ("id")
20:48:15,240 [Schema                        ] Execution Time = 1 ms
20:48:15,240 [Schema                        ] Creating index
"LeaseAssignment_N49" in catalog "" schema ""
20:48:15,240 [Schema                        ] CREATE INDEX
"LeaseAssignment_N49" ON "LeaseAssignment" ("previousLeaseId")
20:48:15,241 [Schema                        ] Execution Time = 0 ms
20:48:15,241 [Schema                        ] Creating index
"LeaseAssignment_N50" in catalog "" schema ""
20:48:15,241 [Schema                        ] CREATE INDEX
"LeaseAssignment_N50" ON "LeaseAssignment" ("nextLeaseId")
20:48:15,241 [Schema                        ] Execution Time = 0 ms
20:48:15,241 [Schema                        ] Creating candidate key
"Geography_reference_UNQ" in catalog "" schema ""
20:48:15,241 [Schema                        ] ALTER TABLE "State" ADD
CONSTRAINT "Geography_reference_UNQ" UNIQUE ("reference")
20:48:15,242 [Schema                        ] Execution Time = 1 ms
20:48:15,242 [Schema                        ] Creating candidate key
"Geography_name_UNQ" in catalog "" schema ""
20:48:15,242 [Schema                        ] ALTER TABLE "State" ADD
CONSTRAINT "Geography_name_UNQ" UNIQUE ("name")
20:48:15,243 [Schema                        ] Execution Time = 0 ms
20:48:15,243 [Schema                        ] Creating foreign key
constraint : "State_FK1" in catalog "" schema ""
20:48:15,243 [Schema                        ] ALTER TABLE "State" ADD
CONSTRAINT "State_FK1" FOREIGN KEY ("countryId") REFERENCES "Country"
("id")
20:48:15,243 [Schema                        ] Execution Time = 0 ms
20:48:15,244 [Schema                        ] Creating index "State_N49" in
catalog "" schema ""
20:48:15,244 [Schema                        ] CREATE INDEX "State_N49" ON
"State" ("countryId")
20:48:15,244 [Schema                        ] Execution Time = 0 ms
20:48:15,244 [Schema                        ] Creating foreign key
constraint : "LeaseStatusReason_FK1" in catalog "" schema ""
20:48:15,244 [Schema                        ] ALTER TABLE
"LeaseStatusReason" ADD CONSTRAINT "LeaseStatusReason_FK1" FOREIGN KEY
("leaseId") REFERENCES "Lease" ("id")
20:48:15,245 [Schema                        ] Execution Time = 1 ms
20:48:15,245 [Schema                        ] Creating index
"LeaseStatusReason_N49" in catalog "" schema ""
20:48:15,245 [Schema                        ] CREATE INDEX
"LeaseStatusReason_N49" ON "LeaseStatusReason" ("leaseId")
20:48:15,245 [Schema                        ] Execution Time = 0 ms
20:48:15,246 [Schema                        ] Creating candidate key
"Activity_sector_name_UNQ" in catalog "" schema ""
20:48:15,246 [Schema                        ] ALTER TABLE "Activity" ADD
CONSTRAINT "Activity_sector_name_UNQ" UNIQUE ("sectorId","name")
20:48:15,246 [Schema                        ] Execution Time = 0 ms
20:48:15,246 [Schema                        ] Creating foreign key
constraint : "Activity_FK1" in catalog "" schema ""
20:48:15,246 [Schema                        ] ALTER TABLE "Activity" ADD
CONSTRAINT "Activity_FK1" FOREIGN KEY ("sectorId") REFERENCES "Sector"
("id")
20:48:15,247 [Schema                        ] Execution Time = 0 ms
20:48:15,247 [Schema                        ] Creating index "Activity_N49"
in catalog "" schema ""
20:48:15,247 [Schema                        ] CREATE INDEX "Activity_N49"
ON "Activity" ("sectorId")
20:48:15,248 [Schema                        ] Execution Time = 1 ms
20:48:15,248 [Schema                        ] Creating candidate key
"Party_reference_UNQ" in catalog "" schema ""
20:48:15,248 [Schema                        ] ALTER TABLE "Party" ADD
CONSTRAINT "Party_reference_UNQ" UNIQUE ("reference")
20:48:15,248 [Schema                        ] Execution Time = 0 ms
20:48:15,249 [Schema                        ] Creating index
"Party_reference_name_IDX" in catalog "" schema ""
20:48:15,249 [Schema                        ] CREATE INDEX
"Party_reference_name_IDX" ON "Party" ("reference","name")
20:48:15,249 [Schema                        ] Execution Time = 0 ms
20:48:15,249 [Schema                        ] Creating foreign key
constraint : "Organisation_FK1" in catalog "" schema ""
20:48:15,249 [Schema                        ] ALTER TABLE "Organisation"
ADD CONSTRAINT "Organisation_FK1" FOREIGN KEY ("id") REFERENCES "Party"
("id")
20:48:15,249 [Schema                        ] Execution Time = 0 ms
20:48:15,250 [Schema                        ] Creating candidate key
"FixedAssetRegistrationType_title_UNQ" in catalog "" schema ""
20:48:15,250 [Schema                        ] ALTER TABLE
"FixedAssetRegistrationType" ADD CONSTRAINT
"FixedAssetRegistrationType_title_UNQ" UNIQUE ("title")
20:48:15,250 [Schema                        ] Execution Time = 0 ms
20:48:15,250 [Schema                        ] Creating foreign key
constraint : "FixedAssetRegistration_FK2" in catalog "" schema ""
20:48:15,250 [Schema                        ] ALTER TABLE
"FixedAssetRegistration" ADD CONSTRAINT "FixedAssetRegistration_FK2"
FOREIGN KEY ("subjectId") REFERENCES "FixedAsset" ("id")
20:48:15,251 [Schema                        ] Execution Time = 1 ms
20:48:15,251 [Schema                        ] Creating foreign key
constraint : "FixedAssetRegistration_FK1" in catalog "" schema ""
20:48:15,251 [Schema                        ] ALTER TABLE
"FixedAssetRegistration" ADD CONSTRAINT "FixedAssetRegistration_FK1"
FOREIGN KEY ("typeId") REFERENCES "FixedAssetRegistrationType" ("id")
20:48:15,252 [Schema                        ] Execution Time = 1 ms
20:48:15,252 [Schema                        ] Creating index
"FixedAssetRegistration_N49" in catalog "" schema ""
20:48:15,252 [Schema                        ] CREATE INDEX
"FixedAssetRegistration_N49" ON "FixedAssetRegistration" ("subjectId")
20:48:15,252 [Schema                        ] Execution Time = 0 ms
20:48:15,252 [Schema                        ] Creating index
"FixedAssetRegistration_N50" in catalog "" schema ""
20:48:15,252 [Schema                        ] CREATE INDEX
"FixedAssetRegistration_N50" ON "FixedAssetRegistration" ("typeId")
20:48:15,252 [Schema                        ] Execution Time = 0 ms
20:48:15,253 [Schema                        ] Creating foreign key
constraint : "LandRegister_FK1" in catalog "" schema ""
20:48:15,253 [Schema                        ] ALTER TABLE "LandRegister"
ADD CONSTRAINT "LandRegister_FK1" FOREIGN KEY ("id") REFERENCES
"FixedAssetRegistration" ("id")
20:48:15,253 [Schema                        ] Execution Time = 0 ms
20:48:15,253 [Schema                        ] Creating candidate key
"Tag_taggable_name_UNQ" in catalog "" schema ""
20:48:15,253 [Schema                        ] ALTER TABLE "Tag" ADD
CONSTRAINT "Tag_taggable_name_UNQ" UNIQUE
("taggable_Occupancy_id_EID","name")
20:48:15,254 [Schema                        ] Execution Time = 1 ms
20:48:15,254 [Schema                        ] Creating foreign key
constraint : "Tag_FK1" in catalog "" schema ""
20:48:15,254 [Schema                        ] ALTER TABLE "Tag" ADD
CONSTRAINT "Tag_FK1" FOREIGN KEY ("taggable_Occupancy_id_EID") REFERENCES
"Occupancy" ("id")
20:48:15,255 [Schema                        ] Execution Time = 1 ms
20:48:15,255 [Schema                        ] Creating index "Tag_N49" in
catalog "" schema ""
20:48:15,255 [Schema                        ] CREATE INDEX "Tag_N49" ON
"Tag" ("taggable_Occupancy_id_EID")
20:48:15,255 [Schema                        ] Execution Time = 0 ms
20:48:15,255 [Schema                        ] Creating candidate key
"Charge_reference_UNQ" in catalog "" schema ""
20:48:15,255 [Schema                        ] ALTER TABLE "Charge" ADD
CONSTRAINT "Charge_reference_UNQ" UNIQUE ("reference")
20:48:15,256 [Schema                        ] Execution Time = 1 ms
20:48:15,256 [Schema                        ] Creating candidate key
"Charge_name_UNQ" in catalog "" schema ""
20:48:15,256 [Schema                        ] ALTER TABLE "Charge" ADD
CONSTRAINT "Charge_name_UNQ" UNIQUE ("name")
20:48:15,257 [Schema                        ] Execution Time = 1 ms
20:48:15,257 [Schema                        ] Creating foreign key
constraint : "Charge_FK2" in catalog "" schema ""
20:48:15,257 [Schema                        ] ALTER TABLE "Charge" ADD
CONSTRAINT "Charge_FK2" FOREIGN KEY ("taxId") REFERENCES "Tax" ("id")
20:48:15,258 [Schema                        ] Execution Time = 1 ms
20:48:15,258 [Schema                        ] Creating foreign key
constraint : "Charge_FK1" in catalog "" schema ""
20:48:15,258 [Schema                        ] ALTER TABLE "Charge" ADD
CONSTRAINT "Charge_FK1" FOREIGN KEY ("groupId") REFERENCES "ChargeGroup"
("id")
20:48:15,259 [Schema                        ] Execution Time = 1 ms
20:48:15,259 [Schema                        ] Creating index "Charge_N50"
in catalog "" schema ""
20:48:15,259 [Schema                        ] CREATE INDEX "Charge_N50" ON
"Charge" ("groupId")
20:48:15,259 [Schema                        ] Execution Time = 0 ms
20:48:15,259 [Schema                        ] Creating index "Charge_N49"
in catalog "" schema ""
20:48:15,259 [Schema                        ] CREATE INDEX "Charge_N49" ON
"Charge" ("taxId")
20:48:15,260 [Schema                        ] Execution Time = 0 ms
20:48:15,260 [Schema                        ] Creating foreign key
constraint : "IndexValue_FK1" in catalog "" schema ""
20:48:15,260 [Schema                        ] ALTER TABLE "IndexValue" ADD
CONSTRAINT "IndexValue_FK1" FOREIGN KEY ("indexBaseId") REFERENCES
"IndexBase" ("id")
20:48:15,260 [Schema                        ] Execution Time = 0 ms
20:48:15,261 [Schema                        ] Creating index
"IndexValue_N49" in catalog "" schema ""
20:48:15,261 [Schema                        ] CREATE INDEX "IndexValue_N49"
ON "IndexValue" ("indexBaseId")
20:48:15,261 [Schema                        ] Execution Time = 0 ms
20:48:15,261 [Schema                        ] Creating candidate key
"Tax_reference_UNQ" in catalog "" schema ""
20:48:15,261 [Schema                        ] ALTER TABLE "Tax" ADD
CONSTRAINT "Tax_reference_UNQ" UNIQUE ("reference")
20:48:15,261 [Schema                        ] Execution Time = 0 ms
20:48:15,262 [Schema                        ] Creating foreign key
constraint : "Invoice_FK4" in catalog "" schema ""
20:48:15,262 [Schema                        ] ALTER TABLE "Invoice" ADD
CONSTRAINT "Invoice_FK4" FOREIGN KEY ("currencyId") REFERENCES "Currency"
("id")
20:48:15,262 [Schema                        ] Execution Time = 0 ms
20:48:15,263 [Schema                        ] Creating foreign key
constraint : "Invoice_FK3" in catalog "" schema ""
20:48:15,263 [Schema                        ] ALTER TABLE "Invoice" ADD
CONSTRAINT "Invoice_FK3" FOREIGN KEY ("sellerPartyId") REFERENCES "Party"
("id")
20:48:15,264 [Schema                        ] Execution Time = 0 ms
20:48:15,264 [Schema                        ] Creating foreign key
constraint : "Invoice_FK2" in catalog "" schema ""
20:48:15,264 [Schema                        ] ALTER TABLE "Invoice" ADD
CONSTRAINT "Invoice_FK2" FOREIGN KEY ("buyerPartyId") REFERENCES "Party"
("id")
20:48:15,264 [Schema                        ] Execution Time = 0 ms
20:48:15,265 [Schema                        ] Creating foreign key
constraint : "Invoice_FK1" in catalog "" schema ""
20:48:15,265 [Schema                        ] ALTER TABLE "Invoice" ADD
CONSTRAINT "Invoice_FK1" FOREIGN KEY ("sourceLeaseId") REFERENCES "Lease"
("id")
20:48:15,266 [Schema                        ] Execution Time = 0 ms
20:48:15,266 [Schema                        ] Creating index "Invoice_N51"
in catalog "" schema ""
20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N51" ON
"Invoice" ("currencyId")
20:48:15,266 [Schema                        ] Execution Time = 0 ms
20:48:15,266 [Schema                        ] Creating index "Invoice_N52"
in catalog "" schema ""
20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N52" ON
"Invoice" ("sourceLeaseId")
20:48:15,266 [Schema                        ] Execution Time = 0 ms
20:48:15,266 [Schema                        ] Creating index "Invoice_N49"
in catalog "" schema ""
20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N49" ON
"Invoice" ("buyerPartyId")
20:48:15,266 [Schema                        ] Execution Time = 0 ms
20:48:15,266 [Schema                        ] Creating index "Invoice_N50"
in catalog "" schema ""
20:48:15,266 [Schema                        ] CREATE INDEX "Invoice_N50" ON
"Invoice" ("sellerPartyId")
20:48:15,266 [Schema                        ] Execution Time = 0 ms
20:48:15,267 [Schema                        ] Creating foreign key
constraint : "Person_FK1" in catalog "" schema ""
20:48:15,267 [Schema                        ] ALTER TABLE "Person" ADD
CONSTRAINT "Person_FK1" FOREIGN KEY ("id") REFERENCES "Party" ("id")
20:48:15,267 [Schema                        ] Execution Time = 0 ms
20:48:15,267 [Schema                        ] Creating candidate key
"Country_alpha2Code_UNQ" in catalog "" schema ""
20:48:15,267 [Schema                        ] ALTER TABLE "Country" ADD
CONSTRAINT "Country_alpha2Code_UNQ" UNIQUE ("alpha2Code")
20:48:15,268 [Schema                        ] Execution Time = 1 ms
20:48:15,269 [Schema                        ] Creating candidate key
"Country_reference_UNQ" in catalog "" schema ""
20:48:15,269 [Schema                        ] ALTER TABLE "Country" ADD
CONSTRAINT "Country_reference_UNQ" UNIQUE ("reference")
20:48:15,270 [Schema                        ] Execution Time = 1 ms
20:48:15,270 [Schema                        ] Creating candidate key
"Country_name_UNQ" in catalog "" schema ""
20:48:15,270 [Schema                        ] ALTER TABLE "Country" ADD
CONSTRAINT "Country_name_UNQ" UNIQUE ("name")
20:48:15,271 [Schema                        ] Execution Time = 1 ms
20:48:15,271 [Schema                        ] Creating foreign key
constraint : "Lease_FK3" in catalog "" schema ""
20:48:15,271 [Schema                        ] ALTER TABLE "Lease" ADD
CONSTRAINT "Lease_FK3" FOREIGN KEY ("leaseTypeId") REFERENCES "LeaseType"
("id")
20:48:15,272 [Schema                        ] Execution Time = 1 ms
20:48:15,272 [Schema                        ] Creating foreign key
constraint : "Lease_FK2" in catalog "" schema ""
20:48:15,272 [Schema                        ] ALTER TABLE "Lease" ADD
CONSTRAINT "Lease_FK2" FOREIGN KEY ("paidByBankMandateId") REFERENCES
"BankMandate" ("id")
20:48:15,273 [Schema                        ] Execution Time = 1 ms
20:48:15,273 [Schema                        ] Creating foreign key
constraint : "Lease_FK1" in catalog "" schema ""
20:48:15,273 [Schema                        ] ALTER TABLE "Lease" ADD
CONSTRAINT "Lease_FK1" FOREIGN KEY ("id") REFERENCES "Agreement" ("id")
20:48:15,274 [Schema                        ] Execution Time = 1 ms
20:48:15,274 [Schema                        ] Creating index "Lease_N50" in
catalog "" schema ""
20:48:15,274 [Schema                        ] CREATE INDEX "Lease_N50" ON
"Lease" ("leaseTypeId")
20:48:15,274 [Schema                        ] Execution Time = 0 ms
20:48:15,275 [Schema                        ] Creating index "Lease_N49" in
catalog "" schema ""
20:48:15,275 [Schema                        ] CREATE INDEX "Lease_N49" ON
"Lease" ("paidByBankMandateId")
20:48:15,275 [Schema                        ] Execution Time = 0 ms
20:48:15,275 [Schema                        ] Creating candidate key
"LeaseItem_lease_type_startDate_sequence_IDX" in catalog "" schema ""
20:48:15,275 [Schema                        ] ALTER TABLE "LeaseItem" ADD
CONSTRAINT "LeaseItem_lease_type_startDate_sequence_IDX" UNIQUE
("leaseId","type","startDate","sequence")
20:48:15,277 [Schema                        ] Execution Time = 2 ms
20:48:15,277 [Schema                        ] Creating foreign key
constraint : "LeaseItem_FK1" in catalog "" schema ""
20:48:15,277 [Schema                        ] ALTER TABLE "LeaseItem" ADD
CONSTRAINT "LeaseItem_FK1" FOREIGN KEY ("leaseId") REFERENCES "Lease"
("id")
20:48:15,279 [Schema                        ] Execution Time = 2 ms
20:48:15,279 [Schema                        ] Creating foreign key
constraint : "LeaseItem_FK2" in catalog "" schema ""
20:48:15,279 [Schema                        ] ALTER TABLE "LeaseItem" ADD
CONSTRAINT "LeaseItem_FK2" FOREIGN KEY ("chargeId") REFERENCES "Charge"
("id")
20:48:15,281 [Schema                        ] Execution Time = 2 ms
20:48:15,281 [Schema                        ] Creating index
"LeaseItem_lease_type_startDate_IDX" in catalog "" schema ""
20:48:15,281 [Schema                        ] CREATE INDEX
"LeaseItem_lease_type_startDate_IDX" ON "LeaseItem"
("leaseId","type","startDate")
20:48:15,282 [Schema                        ] Execution Time = 1 ms
20:48:15,282 [Schema                        ] Creating index
"LeaseItem_N50" in catalog "" schema ""
20:48:15,282 [Schema                        ] CREATE INDEX "LeaseItem_N50"
ON "LeaseItem" ("leaseId")
20:48:15,282 [Schema                        ] Execution Time = 0 ms
20:48:15,282 [Schema                        ] Creating index
"LeaseItem_lease_type_sequence_IDX" in catalog "" schema ""
20:48:15,282 [Schema                        ] CREATE INDEX
"LeaseItem_lease_type_sequence_IDX" ON "LeaseItem"
("leaseId","type","sequence")
20:48:15,282 [Schema                        ] Execution Time = 0 ms
20:48:15,282 [Schema                        ] Creating index
"LeaseItem_N49" in catalog "" schema ""
20:48:15,282 [Schema                        ] CREATE INDEX "LeaseItem_N49"
ON "LeaseItem" ("chargeId")
20:48:15,283 [Schema                        ] Execution Time = 1 ms
20:48:15,283 [Schema                        ] Creating foreign key
constraint : "AgreementRoleCommunicationChannelType_FK1" in catalog ""
schema ""
20:48:15,283 [Schema                        ] ALTER TABLE
"AgreementRoleCommunicationChannelType" ADD CONSTRAINT
"AgreementRoleCommunicationChannelType_FK1" FOREIGN KEY
("appliesToAgreementTypeId") REFERENCES "AgreementType" ("id")
20:48:15,284 [Schema                        ] Execution Time = 1 ms
20:48:15,284 [Schema                        ] Creating index
"AgreementRoleCommunicationChannelType_N49" in catalog "" schema ""
20:48:15,284 [Schema                        ] CREATE INDEX
"AgreementRoleCommunicationChannelType_N49" ON
"AgreementRoleCommunicationChannelType" ("appliesToAgreementTypeId")
20:48:15,284 [Schema                        ] Execution Time = 0 ms
20:48:15,284 [Schema                        ] Creating candidate key
"LeaseType_reference_UNQ" in catalog "" schema ""
20:48:15,284 [Schema                        ] ALTER TABLE "LeaseType" ADD
CONSTRAINT "LeaseType_reference_UNQ" UNIQUE ("reference")
20:48:15,285 [Schema                        ] Execution Time = 1 ms
20:48:15,285 [Schema                        ] Creating candidate key
"LeaseType_name_UNQ" in catalog "" schema ""
20:48:15,285 [Schema                        ] ALTER TABLE "LeaseType" ADD
CONSTRAINT "LeaseType_name_UNQ" UNIQUE ("name")
20:48:15,286 [Schema                        ] Execution Time = 1 ms
20:48:15,286 [Schema                        ] Creating foreign key
constraint : "AgreementRoleCommunicationChannel_FK3" in catalog "" schema ""
20:48:15,286 [Schema                        ] ALTER TABLE
"AgreementRoleCommunicationChannel" ADD CONSTRAINT
"AgreementRoleCommunicationChannel_FK3" FOREIGN KEY
("communicationChannelId") REFERENCES "CommunicationChannel" ("id")
20:48:15,287 [Schema                        ] Execution Time = 1 ms
20:48:15,287 [Schema                        ] Creating foreign key
constraint : "AgreementRoleCommunicationChannel_FK2" in catalog "" schema ""
20:48:15,287 [Schema                        ] ALTER TABLE
"AgreementRoleCommunicationChannel" ADD CONSTRAINT
"AgreementRoleCommunicationChannel_FK2" FOREIGN KEY ("agreementRoleId")
REFERENCES "AgreementRole" ("id")
20:48:15,288 [Schema                        ] Execution Time = 1 ms
20:48:15,289 [Schema                        ] Creating foreign key
constraint : "AgreementRoleCommunicationChannel_FK1" in catalog "" schema ""
20:48:15,289 [Schema                        ] ALTER TABLE
"AgreementRoleCommunicationChannel" ADD CONSTRAINT
"AgreementRoleCommunicationChannel_FK1" FOREIGN KEY ("typeId") REFERENCES
"AgreementRoleCommunicationChannelType" ("id")
20:48:15,290 [Schema                        ] Execution Time = 1 ms
20:48:15,290 [Schema                        ] Creating index
"AgreementRoleCommunicationChannel_N49" in catalog "" schema ""
20:48:15,290 [Schema                        ] CREATE INDEX
"AgreementRoleCommunicationChannel_N49" ON
"AgreementRoleCommunicationChannel" ("communicationChannelId")
20:48:15,291 [Schema                        ] Execution Time = 1 ms
20:48:15,291 [Schema                        ] Creating index
"AgreementRoleCommunicationChannel_N50" in catalog "" schema ""
20:48:15,291 [Schema                        ] CREATE INDEX
"AgreementRoleCommunicationChannel_N50" ON
"AgreementRoleCommunicationChannel" ("agreementRoleId")
20:48:15,291 [Schema                        ] Execution Time = 0 ms
20:48:15,291 [Schema                        ] Creating index
"AgreementRoleCommunicationChannel_N51" in catalog "" schema ""
20:48:15,291 [Schema                        ] CREATE INDEX
"AgreementRoleCommunicationChannel_N51" ON
"AgreementRoleCommunicationChannel" ("typeId")
20:48:15,291 [Schema                        ] Execution Time = 0 ms
20:48:15,291 [Schema                        ] Creating candidate key
"AgreementType_title_UNQ" in catalog "" schema ""
20:48:15,291 [Schema                        ] ALTER TABLE "AgreementType"
ADD CONSTRAINT "AgreementType_title_UNQ" UNIQUE ("title")
20:48:15,292 [Schema                        ] Execution Time = 1 ms
20:48:15,292 [Schema                        ] Creating candidate key
"Occupancy_lease_unit_startDate_UNQ" in catalog "" schema ""
20:48:15,292 [Schema                        ] ALTER TABLE "Occupancy" ADD
CONSTRAINT "Occupancy_lease_unit_startDate_UNQ" UNIQUE
("leaseId","unitId","startDate")
20:48:15,294 [Schema                        ] Execution Time = 2 ms
20:48:15,294 [Schema                        ] Creating foreign key
constraint : "Occupancy_FK5" in catalog "" schema ""
20:48:15,294 [Schema                        ] ALTER TABLE "Occupancy" ADD
CONSTRAINT "Occupancy_FK5" FOREIGN KEY ("sectorId") REFERENCES "Sector"
("id")
20:48:15,295 [Schema                        ] Execution Time = 1 ms
20:48:15,296 [Schema                        ] Creating foreign key
constraint : "Occupancy_FK6" in catalog "" schema ""
20:48:15,296 [Schema                        ] ALTER TABLE "Occupancy" ADD
CONSTRAINT "Occupancy_FK6" FOREIGN KEY ("brandId") REFERENCES "Brand"
("id")
20:48:15,297 [Schema                        ] Execution Time = 1 ms
20:48:15,297 [Schema                        ] Creating foreign key
constraint : "Occupancy_FK3" in catalog "" schema ""
20:48:15,297 [Schema                        ] ALTER TABLE "Occupancy" ADD
CONSTRAINT "Occupancy_FK3" FOREIGN KEY ("activityId") REFERENCES "Activity"
("id")
20:48:15,299 [Schema                        ] Execution Time = 2 ms
20:48:15,299 [Schema                        ] Creating foreign key
constraint : "Occupancy_FK4" in catalog "" schema ""
20:48:15,299 [Schema                        ] ALTER TABLE "Occupancy" ADD
CONSTRAINT "Occupancy_FK4" FOREIGN KEY ("leaseId") REFERENCES "Lease"
("id")
20:48:15,301 [Schema                        ] Execution Time = 2 ms
20:48:15,301 [Schema                        ] Creating foreign key
constraint : "Occupancy_FK1" in catalog "" schema ""
20:48:15,301 [Schema                        ] ALTER TABLE "Occupancy" ADD
CONSTRAINT "Occupancy_FK1" FOREIGN KEY ("unitId") REFERENCES "Unit" ("id")
20:48:15,302 [Schema                        ] Execution Time = 1 ms
20:48:15,303 [Schema                        ] Creating foreign key
constraint : "Occupancy_FK2" in catalog "" schema ""
20:48:15,303 [Schema                        ] ALTER TABLE "Occupancy" ADD
CONSTRAINT "Occupancy_FK2" FOREIGN KEY ("unitSizeId") REFERENCES "UnitSize"
("id")
20:48:15,304 [Schema                        ] Execution Time = 1 ms
20:48:15,304 [Schema                        ] Creating index
"Occupancy_N54" in catalog "" schema ""
20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N54"
ON "Occupancy" ("brandId")
20:48:15,305 [Schema                        ] Execution Time = 0 ms
20:48:15,305 [Schema                        ] Creating index
"Occupancy_N53" in catalog "" schema ""
20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N53"
ON "Occupancy" ("unitId")
20:48:15,305 [Schema                        ] Execution Time = 0 ms
20:48:15,305 [Schema                        ] Creating index
"Occupancy_N52" in catalog "" schema ""
20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N52"
ON "Occupancy" ("sectorId")
20:48:15,305 [Schema                        ] Execution Time = 0 ms
20:48:15,305 [Schema                        ] Creating index
"Occupancy_N51" in catalog "" schema ""
20:48:15,305 [Schema                        ] CREATE INDEX "Occupancy_N51"
ON "Occupancy" ("activityId")
20:48:15,306 [Schema                        ] Execution Time = 1 ms
20:48:15,306 [Schema                        ] Creating index
"Occupancy_N49" in catalog "" schema ""
20:48:15,306 [Schema                        ] CREATE INDEX "Occupancy_N49"
ON "Occupancy" ("leaseId")
20:48:15,306 [Schema                        ] Execution Time = 0 ms
20:48:15,306 [Schema                        ] Creating index
"Occupancy_N50" in catalog "" schema ""
20:48:15,306 [Schema                        ] CREATE INDEX "Occupancy_N50"
ON "Occupancy" ("unitSizeId")
20:48:15,306 [Schema                        ] Execution Time = 0 ms
20:48:15,306 [Schema                        ] Creating foreign key
constraint : "IndexBase_FK2" in catalog "" schema ""
20:48:15,306 [Schema                        ] ALTER TABLE "IndexBase" ADD
CONSTRAINT "IndexBase_FK2" FOREIGN KEY ("indexId") REFERENCES "Index"
("id")
20:48:15,307 [Schema                        ] Execution Time = 1 ms
20:48:15,307 [Schema                        ] Creating foreign key
constraint : "IndexBase_FK1" in catalog "" schema ""
20:48:15,307 [Schema                        ] ALTER TABLE "IndexBase" ADD
CONSTRAINT "IndexBase_FK1" FOREIGN KEY ("nextIndexBaseId") REFERENCES
"IndexBase" ("id")
20:48:15,308 [Schema                        ] Execution Time = 1 ms
20:48:15,308 [Schema                        ] Creating index
"IndexBase_N50" in catalog "" schema ""
20:48:15,308 [Schema                        ] CREATE INDEX "IndexBase_N50"
ON "IndexBase" ("indexId")
20:48:15,309 [Schema                        ] Execution Time = 0 ms
20:48:15,309 [Schema                        ] Creating index
"IndexBase_N49" in catalog "" schema ""
20:48:15,309 [Schema                        ] CREATE INDEX "IndexBase_N49"
ON "IndexBase" ("nextIndexBaseId")
20:48:15,309 [Schema                        ] Execution Time = 0 ms
20:48:15,309 [Schema                        ] Creating candidate key
"Index_name_UNQ" in catalog "" schema ""
20:48:15,309 [Schema                        ] ALTER TABLE "Index" ADD
CONSTRAINT "Index_name_UNQ" UNIQUE ("name")
20:48:15,310 [Schema                        ] Execution Time = 1 ms
20:48:15,310 [Schema                        ] Creating candidate key
"Index_reference_UNQ" in catalog "" schema ""
20:48:15,310 [Schema                        ] ALTER TABLE "Index" ADD
CONSTRAINT "Index_reference_UNQ" UNIQUE ("reference")
20:48:15,311 [Schema                        ] Execution Time = 1 ms
20:48:15,311 [Schema                        ] Creating foreign key
constraint : "AgreementRole_FK3" in catalog "" schema ""
20:48:15,311 [Schema                        ] ALTER TABLE "AgreementRole"
ADD CONSTRAINT "AgreementRole_FK3" FOREIGN KEY ("agreementId") REFERENCES
"Agreement" ("id")
20:48:15,312 [Schema                        ] Execution Time = 1 ms
20:48:15,313 [Schema                        ] Creating foreign key
constraint : "AgreementRole_FK2" in catalog "" schema ""
20:48:15,313 [Schema                        ] ALTER TABLE "AgreementRole"
ADD CONSTRAINT "AgreementRole_FK2" FOREIGN KEY ("typeId") REFERENCES
"AgreementRoleType" ("id")
20:48:15,314 [Schema                        ] Execution Time = 1 ms
20:48:15,314 [Schema                        ] Creating foreign key
constraint : "AgreementRole_FK1" in catalog "" schema ""
20:48:15,314 [Schema                        ] ALTER TABLE "AgreementRole"
ADD CONSTRAINT "AgreementRole_FK1" FOREIGN KEY ("partyId") REFERENCES
"Party" ("id")
20:48:15,315 [Schema                        ] Execution Time = 1 ms
20:48:15,315 [Schema                        ] Creating index
"AgreementRole_N49" in catalog "" schema ""
20:48:15,315 [Schema                        ] CREATE INDEX
"AgreementRole_N49" ON "AgreementRole" ("agreementId")
20:48:15,315 [Schema                        ] Execution Time = 0 ms
20:48:15,315 [Schema                        ] Creating index
"AgreementRole_N51" in catalog "" schema ""
20:48:15,315 [Schema                        ] CREATE INDEX
"AgreementRole_N51" ON "AgreementRole" ("typeId")
20:48:15,316 [Schema                        ] Execution Time = 1 ms
20:48:15,316 [Schema                        ] Creating index
"AgreementRole_N50" in catalog "" schema ""
20:48:15,316 [Schema                        ] CREATE INDEX
"AgreementRole_N50" ON "AgreementRole" ("partyId")
20:48:15,316 [Schema                        ] Execution Time = 0 ms
20:48:15,316 [Schema                        ] Creating candidate key
"Sector_name_UNQ" in catalog "" schema ""
20:48:15,316 [Schema                        ] ALTER TABLE "Sector" ADD
CONSTRAINT "Sector_name_UNQ" UNIQUE ("name")
20:48:15,317 [Schema                        ] Execution Time = 1 ms
20:48:15,318 [Schema                        ] Check of existence of
"InvoiceSummaryForPropertyDueDate" returned no table
20:48:15,318 [Schema                        ] Creating table
"InvoiceSummaryForPropertyDueDate"
20:48:15,318 [Schema                        ] CREATE VIEW
"InvoiceSummaryForPropertyDueDate" (   "reference",   "dueDate",   "total",
  "netAmount",   "vatAmount",   "grossAmount" ) AS SELECT
 "FixedAsset"."reference" ,    "Invoice"."dueDate",
 COUNT(DISTINCT("Invoice"."id")) AS "total",
 SUM("InvoiceItem"."netAmount") AS "netAmount",
 SUM("InvoiceItem"."vatAmount") AS "vatAmount",
 SUM("InvoiceItem"."grossAmount") AS "grossAmount"   FROM "Invoice"   INNER
JOIN "Lease"       ON "Invoice"."sourceLeaseId" = "Lease"."id"   INNER JOIN
"Occupancy"     ON "Lease"."id"              = "Occupancy"."leaseId"
INNER JOIN "Unit"       ON "Unit"."id"               = "Occupancy"."unitId"
  INNER JOIN "Property"     ON "Property"."id"           =
"Unit"."propertyId"   INNER JOIN "FixedAsset"     ON "FixedAsset"."id"
    = "Property"."id"   INNER JOIN "InvoiceItem"     ON
"InvoiceItem"."invoiceId" = "Invoice"."id" GROUP BY
 "FixedAsset"."reference",  "Invoice"."dueDate"



On 13 January 2014 18:47, GESCONSULTOR - Óscar Bou
<o....@gesconsultor.com>wrote:

>
> Hi, Dharmesh.
>
> Can you copy on an email the class definition for
> org.atos.tfgm.basket.ShoppingBasketItem?
>
> Perhaps the JDO annotations for identity are not properly defined.
>
> See [1] for an example. The relevant ones are:
>
>
> @javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
> @javax.jdo.annotations.DatastoreIdentity(
>         strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY,
>          column="id")
> @javax.jdo.annotations.Version(
>         strategy=VersionStrategy.VERSION_NUMBER,
>         column="version")
>
>
>
>
> Regards,
>
> Oscar
>
>
> [1]
> https://github.com/apache/isis/blob/master/example/archetype/quickstart_wicket_restful_jdo/src/main/resources/archetype-resources/dom/src/main/java/dom/todo/ToDoItem.java
>
>
>
> El 13/01/2014, a las 18:03, Chohan, Dharmesh <dh...@atos.net>
> escribió:
>
> > Hello
> >
> > I have sorted out the issue below, however I have encountered another
> problem,
> >
> > Data already exists
> >
> > integrity constraint violation: NOT NULL check constraint; SYS_CT_10102
> table: "ShoppingBasketItem" column: "shoppingBasket_id_OID"
> >
> > This is the log output and am not sure why shoppingBasket_id_OID is NULL
> >
> >     [exec] 16:58:55,845  [Native               qtp1742392524-31 DEBUG]
>  INSERT INTO "ShoppingBasketItem"
> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
> VALUES (<'123456789001'>,<'Please_Select'>,<'Item
> 1'>,<'▒5'>,<null>,<1>,<null>)
> >     [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]
>  Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b"
> using statement "INSERT INTO "ShoppingBasketItem"
> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
> VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL
> check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column:
> "shoppingBasket_id_OID"
> >     [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]
>  Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b"
> using statement "INSERT INTO "ShoppingBasketItem"
> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
> VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL
> check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column:
> "shoppingBasket_id_OID"
> >     [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]
>  Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b"
> using statement "INSERT INTO "ShoppingBasketItem"
> ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID")
> VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL
> check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column:
> "shoppingBasket_id_OID"
> >     [exec] 16:58:55,945  [IsisTransaction      qtp1742392524-31 INFO ]
>  abort transaction IsisTransaction@2fab0086[state=MUST_ABORT,commands=0]
> >
> > Regards
> > Dharmesh
> >
> > -----Original Message-----
> > From: Chohan, Dharmesh [mailto:dharmesh.chohan@atos.net]
> > Sent: Monday, January 13, 2014 4:09 PM
> > To: users@isis.apache.org
> > Subject: Domain Mappings 1:m Exception
> >
> > Hi
> >
> > I am implementing a domain object mapping of 1 to many.  I have followed
> the documentation on
> http://isis.apache.org/components/objectstores/jdo/managed-1-to-m-relationships.html
> >
> > This is what I have implemented,
> >
> > @javax.jdo.annotations.Persistent(mappedBy="shoppingBasket")
> >        private SortedSet<ShoppingBasketItem> shoppingBasketItem = new
> TreeSet<ShoppingBasketItem>();
> >
> >        @javax.jdo.annotations.Column(allowsNull="false")
> >    @MemberOrder(sequence = "3")
> >        public SortedSet <ShoppingBasketItem> getShoppingBasketItem() {
> >                return shoppingBasketItem;
> >        }
> >
> >        public void setShoppingBasketItem(SortedSet <ShoppingBasketItem>
> shoppingBasketItem) {
> >                this.shoppingBasketItem = shoppingBasketItem;
> >        }
> >
> > public class ShoppingBasketItem implements
> Comparable<ShoppingBasketItem> {
> >
> >        private ShoppingBasket shoppingBasket;
> >
> >        @javax.jdo.annotations.Column(allowsNull="false")
> >        public ShoppingBasket getShoppingBasket() {
> >                return shoppingBasket;
> >        }
> >
> >        public void setShoppingBasket(ShoppingBasket shoppingBasket) {
> >                this.shoppingBasket = shoppingBasket;
> >        }
> >
> > ...
> >
> > When I run ISIS and test the screen, I am getting the following
> exception,
> >
> > *       java.lang.IllegalArgumentException
> > *       No such method ' getShoppingBasketItem' or 'isShoppingBasketItem'
> > *
> org.apache.isis.applib.util.Clause#getValueOf(ObjectContracts.java:204)
> > *
> org.apache.isis.applib.util.ObjectContracts#compare(ObjectContracts.java:45)
> > *
> org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:117)
> > *
> org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:15)
> > *       java.util.TreeMap#put(TreeMap.java:545)
> > *       java.util.TreeSet#add(TreeSet.java:238)
> > *
> org.atos.tfgm.basket.ShoppingBaskets#getBasket(ShoppingBaskets.java:150)
> > *
> sun.reflect.NativeMethodAccessorImpl#invoke0(NativeMethodAccessorImpl.java:-2)
> > *
> sun.reflect.NativeMethodAccessorImpl#invoke(NativeMethodAccessorImpl.java:39)
> > *
> sun.reflect.DelegatingMethodAccessorImpl#invoke(DelegatingMethodAccessorImpl.java:25)
> > *       java.lang.reflect.Method#invoke(Method.java:597)
> >
> >
> > Have I implemented the relationship incorrectly or missing something.
> >
> >
> > Regards
> > Dharmesh
> >
>
>

Re: Domain Mappings 1:m Exception

Posted by GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>.
Hi, Dharmesh.

Can you copy on an email the class definition for org.atos.tfgm.basket.ShoppingBasketItem?

Perhaps the JDO annotations for identity are not properly defined.

See [1] for an example. The relevant ones are:

@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
@javax.jdo.annotations.DatastoreIdentity(
        strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY,
         column="id")
@javax.jdo.annotations.Version(
        strategy=VersionStrategy.VERSION_NUMBER, 
        column="version")




Regards,

Oscar


[1] https://github.com/apache/isis/blob/master/example/archetype/quickstart_wicket_restful_jdo/src/main/resources/archetype-resources/dom/src/main/java/dom/todo/ToDoItem.java



El 13/01/2014, a las 18:03, Chohan, Dharmesh <dh...@atos.net> escribió:

> Hello
> 
> I have sorted out the issue below, however I have encountered another problem,
> 
> Data already exists
> 
> integrity constraint violation: NOT NULL check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column: "shoppingBasket_id_OID"
> 
> This is the log output and am not sure why shoppingBasket_id_OID is NULL
> 
>     [exec] 16:58:55,845  [Native               qtp1742392524-31 DEBUG]  INSERT INTO "ShoppingBasketItem" ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID") VALUES (<'123456789001'>,<'Please_Select'>,<'Item 1'>,<'▒5'>,<null>,<1>,<null>)
>     [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]  Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b" using statement "INSERT INTO "ShoppingBasketItem" ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID") VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column: "shoppingBasket_id_OID"
>     [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]  Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b" using statement "INSERT INTO "ShoppingBasketItem" ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID") VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column: "shoppingBasket_id_OID"
>     [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]  Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b" using statement "INSERT INTO "ShoppingBasketItem" ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID") VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column: "shoppingBasket_id_OID"
>     [exec] 16:58:55,945  [IsisTransaction      qtp1742392524-31 INFO ]  abort transaction IsisTransaction@2fab0086[state=MUST_ABORT,commands=0]
> 
> Regards
> Dharmesh
> 
> -----Original Message-----
> From: Chohan, Dharmesh [mailto:dharmesh.chohan@atos.net] 
> Sent: Monday, January 13, 2014 4:09 PM
> To: users@isis.apache.org
> Subject: Domain Mappings 1:m Exception
> 
> Hi
> 
> I am implementing a domain object mapping of 1 to many.  I have followed the documentation on http://isis.apache.org/components/objectstores/jdo/managed-1-to-m-relationships.html
> 
> This is what I have implemented,
> 
> @javax.jdo.annotations.Persistent(mappedBy="shoppingBasket")
>        private SortedSet<ShoppingBasketItem> shoppingBasketItem = new TreeSet<ShoppingBasketItem>();
> 
>        @javax.jdo.annotations.Column(allowsNull="false")
>    @MemberOrder(sequence = "3")
>        public SortedSet <ShoppingBasketItem> getShoppingBasketItem() {
>                return shoppingBasketItem;
>        }
> 
>        public void setShoppingBasketItem(SortedSet <ShoppingBasketItem> shoppingBasketItem) {
>                this.shoppingBasketItem = shoppingBasketItem;
>        }
> 
> public class ShoppingBasketItem implements Comparable<ShoppingBasketItem> {
> 
>        private ShoppingBasket shoppingBasket;
> 
>        @javax.jdo.annotations.Column(allowsNull="false")
>        public ShoppingBasket getShoppingBasket() {
>                return shoppingBasket;
>        }
> 
>        public void setShoppingBasket(ShoppingBasket shoppingBasket) {
>                this.shoppingBasket = shoppingBasket;
>        }
> 
> ...
> 
> When I run ISIS and test the screen, I am getting the following exception,
> 
> *       java.lang.IllegalArgumentException
> *       No such method ' getShoppingBasketItem' or 'isShoppingBasketItem'
> *       org.apache.isis.applib.util.Clause#getValueOf(ObjectContracts.java:204)
> *       org.apache.isis.applib.util.ObjectContracts#compare(ObjectContracts.java:45)
> *       org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:117)
> *       org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:15)
> *       java.util.TreeMap#put(TreeMap.java:545)
> *       java.util.TreeSet#add(TreeSet.java:238)
> *       org.atos.tfgm.basket.ShoppingBaskets#getBasket(ShoppingBaskets.java:150)
> *       sun.reflect.NativeMethodAccessorImpl#invoke0(NativeMethodAccessorImpl.java:-2)
> *       sun.reflect.NativeMethodAccessorImpl#invoke(NativeMethodAccessorImpl.java:39)
> *       sun.reflect.DelegatingMethodAccessorImpl#invoke(DelegatingMethodAccessorImpl.java:25)
> *       java.lang.reflect.Method#invoke(Method.java:597)
> 
> 
> Have I implemented the relationship incorrectly or missing something.
> 
> 
> Regards
> Dharmesh
> 


RE: Domain Mappings 1:m Exception

Posted by "Chohan, Dharmesh" <dh...@atos.net>.
Hello

I have sorted out the issue below, however I have encountered another problem,

Data already exists

integrity constraint violation: NOT NULL check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column: "shoppingBasket_id_OID"

This is the log output and am not sure why shoppingBasket_id_OID is NULL

     [exec] 16:58:55,845  [Native               qtp1742392524-31 DEBUG]  INSERT INTO "ShoppingBasketItem" ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID") VALUES (<'123456789001'>,<'Please_Select'>,<'Item 1'>,<'▒5'>,<null>,<1>,<null>)
     [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]  Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b" using statement "INSERT INTO "ShoppingBasketItem" ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID") VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column: "shoppingBasket_id_OID"
     [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]  Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b" using statement "INSERT INTO "ShoppingBasketItem" ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID") VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column: "shoppingBasket_id_OID"
     [exec] 16:58:55,845  [Persist              qtp1742392524-31 WARN ]  Insert of object "org.atos.tfgm.basket.ShoppingBasketItem@4e50079b" using statement "INSERT INTO "ShoppingBasketItem" ("cardNumber","location","description","amount","shoppingBasket_id_OID","version","shoppingBasketItem_id_OID") VALUES (?,?,?,?,?,?,?)" failed : integrity constraint violation: NOT NULL check constraint; SYS_CT_10102 table: "ShoppingBasketItem" column: "shoppingBasket_id_OID"
     [exec] 16:58:55,945  [IsisTransaction      qtp1742392524-31 INFO ]  abort transaction IsisTransaction@2fab0086[state=MUST_ABORT,commands=0]

Regards
Dharmesh

-----Original Message-----
From: Chohan, Dharmesh [mailto:dharmesh.chohan@atos.net] 
Sent: Monday, January 13, 2014 4:09 PM
To: users@isis.apache.org
Subject: Domain Mappings 1:m Exception

Hi

I am implementing a domain object mapping of 1 to many.  I have followed the documentation on http://isis.apache.org/components/objectstores/jdo/managed-1-to-m-relationships.html

This is what I have implemented,

@javax.jdo.annotations.Persistent(mappedBy="shoppingBasket")
        private SortedSet<ShoppingBasketItem> shoppingBasketItem = new TreeSet<ShoppingBasketItem>();

        @javax.jdo.annotations.Column(allowsNull="false")
    @MemberOrder(sequence = "3")
        public SortedSet <ShoppingBasketItem> getShoppingBasketItem() {
                return shoppingBasketItem;
        }

        public void setShoppingBasketItem(SortedSet <ShoppingBasketItem> shoppingBasketItem) {
                this.shoppingBasketItem = shoppingBasketItem;
        }

public class ShoppingBasketItem implements Comparable<ShoppingBasketItem> {

        private ShoppingBasket shoppingBasket;

        @javax.jdo.annotations.Column(allowsNull="false")
        public ShoppingBasket getShoppingBasket() {
                return shoppingBasket;
        }

        public void setShoppingBasket(ShoppingBasket shoppingBasket) {
                this.shoppingBasket = shoppingBasket;
        }

...

When I run ISIS and test the screen, I am getting the following exception,

*       java.lang.IllegalArgumentException
*       No such method ' getShoppingBasketItem' or 'isShoppingBasketItem'
*       org.apache.isis.applib.util.Clause#getValueOf(ObjectContracts.java:204)
*       org.apache.isis.applib.util.ObjectContracts#compare(ObjectContracts.java:45)
*       org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:117)
*       org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:15)
*       java.util.TreeMap#put(TreeMap.java:545)
*       java.util.TreeSet#add(TreeSet.java:238)
*       org.atos.tfgm.basket.ShoppingBaskets#getBasket(ShoppingBaskets.java:150)
*       sun.reflect.NativeMethodAccessorImpl#invoke0(NativeMethodAccessorImpl.java:-2)
*       sun.reflect.NativeMethodAccessorImpl#invoke(NativeMethodAccessorImpl.java:39)
*       sun.reflect.DelegatingMethodAccessorImpl#invoke(DelegatingMethodAccessorImpl.java:25)
*       java.lang.reflect.Method#invoke(Method.java:597)


Have I implemented the relationship incorrectly or missing something.


Regards
Dharmesh


Re: Domain Mappings 1:m Exception

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
I think that your Comparable implementation of ShoppingBaskItem is wrong.

What does ShoppingBasketItem's constructor look like?


On 13 January 2014 16:08, Chohan, Dharmesh <dh...@atos.net> wrote:

> Hi
>
> I am implementing a domain object mapping of 1 to many.  I have followed
> the documentation on
> http://isis.apache.org/components/objectstores/jdo/managed-1-to-m-relationships.html
>
> This is what I have implemented,
>
> @javax.jdo.annotations.Persistent(mappedBy="shoppingBasket")
>         private SortedSet<ShoppingBasketItem> shoppingBasketItem = new
> TreeSet<ShoppingBasketItem>();
>
>         @javax.jdo.annotations.Column(allowsNull="false")
>     @MemberOrder(sequence = "3")
>         public SortedSet <ShoppingBasketItem> getShoppingBasketItem() {
>                 return shoppingBasketItem;
>         }
>
>         public void setShoppingBasketItem(SortedSet <ShoppingBasketItem>
> shoppingBasketItem) {
>                 this.shoppingBasketItem = shoppingBasketItem;
>         }
>
> public class ShoppingBasketItem implements Comparable<ShoppingBasketItem> {
>
>         private ShoppingBasket shoppingBasket;
>
>         @javax.jdo.annotations.Column(allowsNull="false")
>         public ShoppingBasket getShoppingBasket() {
>                 return shoppingBasket;
>         }
>
>         public void setShoppingBasket(ShoppingBasket shoppingBasket) {
>                 this.shoppingBasket = shoppingBasket;
>         }
>
> ...
>
> When I run ISIS and test the screen, I am getting the following exception,
>
> *       java.lang.IllegalArgumentException
> *       No such method ' getShoppingBasketItem' or 'isShoppingBasketItem'
> *
> org.apache.isis.applib.util.Clause#getValueOf(ObjectContracts.java:204)
> *
> org.apache.isis.applib.util.ObjectContracts#compare(ObjectContracts.java:45)
> *
> org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:117)
> *
> org.atos.tfgm.basket.ShoppingBasketItem#compareTo(ShoppingBasketItem.java:15)
> *       java.util.TreeMap#put(TreeMap.java:545)
> *       java.util.TreeSet#add(TreeSet.java:238)
> *
> org.atos.tfgm.basket.ShoppingBaskets#getBasket(ShoppingBaskets.java:150)
> *
> sun.reflect.NativeMethodAccessorImpl#invoke0(NativeMethodAccessorImpl.java:-2)
> *
> sun.reflect.NativeMethodAccessorImpl#invoke(NativeMethodAccessorImpl.java:39)
> *
> sun.reflect.DelegatingMethodAccessorImpl#invoke(DelegatingMethodAccessorImpl.java:25)
> *       java.lang.reflect.Method#invoke(Method.java:597)
>
>
> Have I implemented the relationship incorrectly or missing something.
>
>
> Regards
> Dharmesh
>
>
>