Skip to content

docs: EXPOSED-1085 Add the JDBC and R2DBC DAO sample applications - #2937

Merged
Oleg Babichev (obabichevjb) merged 2 commits into
mainfrom
obabichev/exposed-1085-r2dbc-dao-samples
Sep 30, 2026
Merged

Oleg Babichev (obabichevjb) merged 2 commits into
mainfrom
obabichev/exposed-1085-r2dbc-dao-samples

Conversation

@obabichevjb

Copy link
Copy Markdown
Collaborator

Description

Summary of the change: Adds two standalone Ktor sample applications — samples/exposed-jdbc-dao-sample and samples/exposed-r2dbc-dao-sample — that implement the same small brokerage domain, one against the JDBC DAO (exposed-dao) and one against the R2DBC DAO (exposed-dao-r2dbc).


Type of Change

Please mark the relevant options with an "X":

  • Documentation update

Related Issues

@e5l Leonid Stashevsky (e5l) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@bog-walk Chantal Loncle (bog-walk) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great samples! Please just check minor comments about some lines in READMEs.

Comment thread samples/README.md Outdated
Comment thread samples/exposed-jdbc-dao-sample/README.md Outdated
Comment thread samples/exposed-r2dbc-dao-sample/README.md Outdated
Comment thread samples/exposed-r2dbc-dao-sample/README.md
Comment on lines +14 to +15
`exposed-dao-r2dbc` is not on Maven Central yet. Until the first release that contains it, add
`includeBuild("../..")` to `settings.gradle.kts` to build the sample against this repository.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just commenting so we both remember to remove this during or just before 1.6.0 release. Unless it's already logged somewhere to be dropped as part of release PR.


var name by Clients.name
var email by Clients.email
val broker by Broker referencedOn Clients.broker

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm doesn't it need to be var broker?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh wait I'm forgetting the API changes. With R2DBC these reference fields can be val now because we call .set() instead of property setting, ok got it.

companion object : IntEntityClass<Portfolio>(Portfolios)

var name by Portfolios.name
val client by Client referencedOn Portfolios.client

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it be var client?

Comment on lines +13 to +15
val client by Client referencedOn Trades.client
val instrument by Instrument referencedOn Trades.instrument
val portfolio by Portfolio optionalReferencedOn Trades.portfolio

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for all 3 fields, shouldn't they be var if we're setting them based on the table Trades definition?

@obabichevjb
Oleg Babichev (obabichevjb) merged commit 0703402 into main Sep 30, 2026
14 checks passed
@obabichevjb
Oleg Babichev (obabichevjb) deleted the obabichev/exposed-1085-r2dbc-dao-samples branch September 30, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants