https://kotlinlang.org logo
#exposed
Title
# exposed
n

Nezteb

04/18/2019, 10:48 PM
Does Exposed count as an ORM? Or just a SQL generator?
a

Alexander Potukar

04/18/2019, 11:53 PM
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

Nezteb

04/19/2019, 1:46 AM
Cool; that’s the impression I got. Is there a commonly used ORM for Kotlin? Or do most people just use Hibernate?
t

TanVD

04/24/2019, 1:51 PM
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.
2 Views