Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 984 Bytes

File metadata and controls

39 lines (27 loc) · 984 Bytes

Yawn

Note

💡 Want to quickly get up and running with Yawn? Check our quick start guide:

Getting Started

Introduction

Yawn is our type-safe wrapper over Hibernate. It allows us to write queries in a fully type-safe, code-complete-ready manner. No more nasty strings, unchecked types and runtime bugs.

This is what it looks like:

transactor.callPrimaryReadOnly {
  val theHobbit = yawn.query(BookTable) { books ->
    addEq(books.name, "The Hobbit")
  }.uniqueResult()!!

  assertThat(theHobbit.token.id).isEqualTo("b_2")
  assertThat(theHobbit.author).isEqualTo("J.R.R. Tolkien")
}

Index

Contributing

Feel free to report bugs or suggest adding missing features by following the Contribution guide!