All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.killbill.billing.util.customfield.dao.CustomFieldSqlDao.sql.stg Maven / Gradle / Ivy

There is a newer version: 0.24.12
Show newest version
import "org/killbill/billing/util/entity/dao/EntitySqlDao.sql.stg"

andCheckSoftDeletionWithComma(prefix) ::= "and is_active = TRUE"

tableName() ::= "custom_fields"

tableFields(prefix) ::= <<
  object_id
, object_type
, is_active
, field_name
, field_value
, created_by
, created_date
, updated_by
, updated_date
>>

tableValues() ::= <<
  :objectId
, :objectType
, :isActive
, :fieldName
, :fieldValue
, :createdBy
, :createdDate
, :updatedBy
, :updatedDate
>>

historyTableName() ::= "custom_field_history"

markTagAsDeleted() ::= <<
update 
set is_active = FALSE
where  = :id

;
>>

updateValue() ::= <<
update 
set field_value = :fieldValue
where  = :id

;
>>


getCustomFieldsForObject() ::= <<
select

from 
where
object_id = :objectId
and object_type = :objectType
and is_active = TRUE


;
>>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy