aboutsummaryrefslogtreecommitdiffstats
path: root/mso-catalog-db/src/main/resources/ToscaCsar.hbm.xml
diff options
context:
space:
mode:
Diffstat (limited to 'mso-catalog-db/src/main/resources/ToscaCsar.hbm.xml')
-rw-r--r--mso-catalog-db/src/main/resources/ToscaCsar.hbm.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/mso-catalog-db/src/main/resources/ToscaCsar.hbm.xml b/mso-catalog-db/src/main/resources/ToscaCsar.hbm.xml
index 9ffb7824cf..3529620ec9 100644
--- a/mso-catalog-db/src/main/resources/ToscaCsar.hbm.xml
+++ b/mso-catalog-db/src/main/resources/ToscaCsar.hbm.xml
@@ -33,7 +33,9 @@
<property name="url" column="URL" type="string" length="200" not-null="true"/>
<property name="description" column="DESCRIPTION" type="string" length="1200"/>
- <property name="created" type="timestamp" generated="insert" update="false" insert="false" column="CREATION_TIMESTAMP" not-null="true"/>
+ <property name="created" type="timestamp" generated="insert" update="false" insert="false" not-null="true">
+ <column name="CREATION_TIMESTAMP" default="CURRENT_TIMESTAMP"/>
+ </property>
<set name="services" inverse="true" cascade="all">
<key column="TOSCA_CSAR_ARTIFACT_UUID" not-null="true" />