Merge pull request #2540 from hongwei1/develop

refactor/removed the Idk from the BankAccountBalance table
This commit is contained in:
Simon Redfern 2025-05-05 11:45:12 +02:00 committed by GitHub
commit e1beba205e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -3534,7 +3534,7 @@ object Glossary extends MdcLoggable {
.filter(_.getName.endsWith(".md"))
.toList
} else {
logger.error(s"Do not have any files under glossary path ($glossaryPath), please double check the folder path: $glossaryPath")
logger.error(s"There are no glossary files under the path ($glossaryPath), please double check the folder path: $glossaryPath")
List.empty[File]
}
}

View File

@ -8,10 +8,13 @@ import net.liftweb.mapper._
import net.liftweb.util.Helpers.tryo
class BankAccountBalance extends BankAccountBalanceTrait with LongKeyedMapper[BankAccountBalance] with CreatedUpdated with IdPK {
class BankAccountBalance extends BankAccountBalanceTrait with KeyedMapper[String, BankAccountBalance]{
override def getSingleton = BankAccountBalance
// Define BalanceId_ as the primary key
override def primaryKeyField = BalanceId_.asInstanceOf[KeyedMetaMapper[String, BankAccountBalance]].primaryKeyField
object BankId_ extends MappedUUID(this)
object AccountId_ extends MappedUUID(this)
object BalanceId_ extends MappedUUID(this)
@ -33,4 +36,4 @@ class BankAccountBalance extends BankAccountBalanceTrait with LongKeyedMapper[Ba
override def balanceAmount: BigDecimal = Helper.smallestCurrencyUnitToBigDecimal(BalanceAmount.get, foreignMappedBankAccountCurrency)
}
object BankAccountBalance extends BankAccountBalance with LongKeyedMetaMapper[BankAccountBalance] {}
object BankAccountBalance extends BankAccountBalance with KeyedMetaMapper[String, BankAccountBalance] with CreatedUpdated {}