diff options
author | Seshu Kumar M <seshu.kumar.m@huawei.com> | 2017-10-13 04:44:17 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-10-13 04:44:17 +0000 |
commit | 18345bdd80561efd7031086d48b2321b69d2e0e4 (patch) | |
tree | 3170e14e50b82c22a80f11df51b71fae9ff21dea /mso-api-handlers/mso-requests-db/src/main/resources/SiteStatus.hbm.xml | |
parent | a10e358bb0d385b22cbd7b38b069401f61206359 (diff) | |
parent | 20e60c893bbed7f68a9475a3886b58d150d92b57 (diff) |
Merge "Update hibernate files to initialize timestamp"
Diffstat (limited to 'mso-api-handlers/mso-requests-db/src/main/resources/SiteStatus.hbm.xml')
-rw-r--r-- | mso-api-handlers/mso-requests-db/src/main/resources/SiteStatus.hbm.xml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mso-api-handlers/mso-requests-db/src/main/resources/SiteStatus.hbm.xml b/mso-api-handlers/mso-requests-db/src/main/resources/SiteStatus.hbm.xml index 95ccfda5fe..f755ad0b0b 100644 --- a/mso-api-handlers/mso-requests-db/src/main/resources/SiteStatus.hbm.xml +++ b/mso-api-handlers/mso-requests-db/src/main/resources/SiteStatus.hbm.xml @@ -30,6 +30,8 @@ <id name="siteName" type="string" column="SITE_NAME"/> <property name="status" column="STATUS" type="boolean" length="256"/> - <property name="created" column="CREATION_TIMESTAMP" type="timestamp" generated="insert" insert="false" update="false"/> + <property name="created" type="timestamp" generated="insert" insert="false" update="false" not-null="true"> + <column name="CREATION_TIMESTAMP" default="CURRENT_TIMESTAMP"/> + </property> </class> </hibernate-mapping> |