Does Exposed count as an ORM? Or just a SQL genera...
# exposed
n
Does Exposed count as an ORM? Or just a SQL generator?
a
Nope, it is not an ORM. From Exposed website:
Copy code
Exposed is a prototype for a lightweight SQL library written over JDBC driver for Kotlin language. It does have two layers of database access: typesafe SQL wrapping DSL and lightweight data access objects
However, DAO style with methods such as find(), all(), findById() may resemble to some extend to JPA/Hibernate or similar fully-fledged ORMs.
n
Cool; that’s the impression I got. Is there a commonly used ORM for Kotlin? Or do most people just use Hibernate?
t
Exposed is a lot more than just SQL generator. I would say it is an ORM -- just take a look at IntEntity class and delegates provided. Don't trust README, it looks a little bit outdated.