dave08
01/17/2023, 4:54 PMAny
....!dave08
02/01/2023, 1:34 PMdave08
02/01/2023, 1:36 PMdave08
02/01/2023, 1:37 PMdave08
02/02/2023, 4:27 PMRow::getNotNull
doesn't return fields that are supposed to be wrapped in a value class
in fromTemplate... I wonder if there's any way to make it wrap the value when a value class is needed...? It would make this more consistent with the behaviour for value classes elsewhere...dave08
02/02/2023, 4:28 PMdave08
02/05/2023, 11:30 AMdave08
02/07/2023, 11:23 AMEntityStore
subclasses for each aggregate root, and have it store the the root by itself type safely and the relations already in the form they need to be?Toshihiro Nakamura
02/11/2023, 2:34 PMzt
02/11/2023, 9:35 PMzt
02/11/2023, 10:04 PM@org.komapper.annotation.KomapperExperimentalAssociation
context(org.komapper.core.dsl.query.EntityStoreContext)
fun zt.minkinator.data.Guild2.`markovConfig2`(
Which doesn't compile because context
has to be above annotations Expecting a top level declaration
zt
02/14/2023, 3:30 AMzt
02/14/2023, 4:30 AMwithTransaction
blocks, it passed the database as the this
scope?dave08
02/16/2023, 1:08 PMConnectionFactory
in R2dbcDatabase(...)
? Like when shutting down a Ktor server in Kubernetes, will all the connections be closed automatically? Otherwise, I'd need some kind of close()
to clean them up on SIGTERM
or SIGINT
.zt
02/16/2023, 8:59 PMToshihiro Nakamura
02/25/2023, 3:21 AMzt
02/25/2023, 5:04 AM@KomapperEntity
@KomapperAggregateRoot("guilds")
@KomapperOneToOne(targetEntity = MarkovConfig::class)
@KomapperOneToMany(targetEntity = Filter::class, navigator = "filters")
data class Guild(
@KomapperId
val id: Long,
val markovConfigId: Int,
@KomapperColumn(alternateType = ClobString::class)
val data: String = ""
)
@KomapperEntity
@KomapperOneToOne(targetEntity = Guild::class)
data class MarkovConfig(
@KomapperId
val id: Int = 0,
val enabled: Boolean = true,
val frequency: Float = 0.5f,
val handleMention: Boolean = true
)
When creating the Guild entity, I would like to only have to specify the id, with a default MarkovConfig entity associated, is this possible?
Any other advice on my code would be appreciateddave08
02/28/2023, 2:44 PMdave08
03/12/2023, 12:59 PMzt
03/13/2023, 10:19 PMToshihiro Nakamura
03/25/2023, 2:10 PMToshihiro Nakamura
04/08/2023, 8:09 AMToshihiro Nakamura
04/16/2023, 3:14 AMINSERT ... RETURNING
feature. Any suggestions are welcome.
https://github.com/komapper/komapper/pull/962Hakon Grotte
04/20/2023, 7:01 AMToshihiro Nakamura
04/28/2023, 10:16 PMzt
05/12/2023, 3:18 AM@KomapperEntity
@KomapperAggregateRoot("guilds")
@KomapperOneToOne(targetEntity = MarkovConfig::class)
@KomapperOneToMany(targetEntity = Filter::class, navigator = "filters")
@KomapperOneToMany(targetEntity = DBMessage::class, navigator = "messages")
data class Guild(
@KomapperId
@KomapperColumn("GUILD_ID")
val id: Snowflake
)
@KomapperEntity
@KomapperOneToOne(targetEntity = Guild::class)
data class MarkovConfig(
@KomapperId
val id: Int = 0,
val guildId: Snowflake,
val enabled: Boolean = true,
val frequency: Float = 0.5f,
val handleMention: Boolean = true
)
Ayfri
05/26/2023, 8:33 PMUser(id: Int), Game(id: Int), UserGame(gameId: Int, userId: Int)
I want to use the association API to be able to do like users.games()
and game.members()
, but I don't quite understand the docs about this
How can I do this ? I currently only created two data classes for my 2 tables, but none for the association table.Ayfri
05/27/2023, 2:03 AMUser(username = "", password = "").insert()
I don't know if it's a good thing to do, stop me if I'm wrong !
But I can't find any way to get the QueryDSL.insert()
method work, it always says that I'm having the wrong type, even when getting the metamodel by reflection or by a property in my interface, I don't quite get it
Could you help me figuring all this ?Ayfri
05/28/2023, 1:01 AMkotlinx.datetime.Instant
for a @KomapperCreatedAt
field ?Ayfri
05/28/2023, 1:01 AM