add more stuff
This commit is contained in:
parent
e09ff4ce2b
commit
2be4df0b6d
@ -180,7 +180,7 @@ object Session {
|
||||
val s = database
|
||||
.sqlQuery("SELECT nextval('${seqName(entity)}');")
|
||||
.findOne()?.getLong("nextval") ?: throw DataNotFoundException
|
||||
return String.format("%s-%s", entity, "$s".padStart(10, '0'))
|
||||
return "$entity-${"$s".padStart(10, '0')}"
|
||||
}
|
||||
|
||||
val redis = JedisPooled(appConfig.redisUri().getOrDefault("redis://localhost:6739/0"))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user