Should i include database logic in library models
I am messing around with Kotlins JS capabilities interfacing with a Kotlin rest server.
I wrote a commons library that holds the data classes and dto for Book and Author objects.
The rest server populates an app-scoped component that has lists holding both objects, it gets the objects from the commons library. The Kotlin JS client also uses the library and it works amazingly well.
Now I want to get rid of the app-scoped bean and start using hibernate to store the data. Should I be...