Hi everyone, I have a question about `Dao/Reposito...
# announcements
d
Hi everyone, I have a question about
Dao/Repository
in Kotlin. Some Github projects like https://github.com/mvysny/vok-orm and https://github.com/JetBrains/Exposed/ use the DAO approach defining data access methods on the entity using a companion object, while, generally, in Java(i.e. Spring Data) we use Repositories to access the data. What is your opinion? Why one approach is better than another?
s
d
Thanks @sdeleuze, after I’ll read with attention. Looking around I found this link http://mavi.logdown.com/posts/5771422 where there is some reason about this choice. TL;dr, avoinding dependency injection.