Also, it seems like Meta.all() doesn't work when I...
# komapper
d
Also, it seems like Meta.all() doesn't work when I tried to use it to create and drop all the tables in my tests... when I manually put all the meta classes there it works.
t
To ensure that
Meta.all()
works correctly, it’s essential to ensure the successful execution of KSP. Please try running
gradle clean build
. If it still doesn’t work, check if the file named
META-INF/services/org.komapper.core.spi.EntityMetamodelFactory
has been generated as a result of executing KSP.
d
Is that somewhere in the build directory?
It doesn't seem to be in build/generated/ksp/... at all
t
Have you enabled the
komapper.enableEntityMetamodelListing
option for Annotation Processing? https://www.komapper.org/docs/reference/annotation-processing/#komapperenableentitymetamodellisting
d
Is it supposed to generated it in my own code source set? If so, maybe it's because I don't have a resources folder in that gradle module?
t
It is generated in build/generated/ksp/...
d
Yeah, that was the problem... I forgot it had to be enabled... maybe it might be worth a KDoc on the
Meta.all()
function...?
👍 1
Thanks!
👍 1