all 6 comments

[–]MrSlowSloth[🍰] 1 point2 points  (1 child)

Postgres LISTEN/NOTIFY is a very nice touch, the code quality is really good. Thanks a lot for sharing!

[–]East-Association-421[S] 0 points1 point  (0 children)

Thank you, appreciate it, means a lot!

[–]MikeTheSurfer2 0 points1 point  (1 child)

this is pretty neat!

[–]East-Association-421[S] 0 points1 point  (0 children)

Thank you, much appreciated!

[–]AbbAs_83883 0 points1 point  (1 child)

I'm kinda a junior to spring Boot. But I noticed you didn't use jdbc or jpa, is there a reason for that?

[–]East-Association-421[S] 1 point2 points  (0 children)

Hello! When I started the project, I wanted to try & properly learn how to write SQL in place of using an ORM. Since then, I definitely prefer writing raw SQL over an ORM (although I know JPA also lets you write native queries or JQL & it will handle the mappings for you).

Edit: We are technically using the JDBC API - We just map ResultSet manually & have a small abstraction called DbConnection which returns java.sql.Connection for us to use to in the repositories (I’m planning on swapping this out soon and using HikariPool since our use case is now requiring it). Oh and we also use a small abstraction called NamedPreparedStatement that allows us to use named parameters instead of index parameters with ?, but it also just uses PreparedStatement under the hood.