frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: How do you test your MyBatis dynamic SQL queries?

2•allegorist•2h ago
(Full Disclosure: I am developing this plugin and drafting this post with the assistance of AI agents. It’s been an eye-opening experiment in how AI can help "scratch an itch" faster than ever.)

I’m currently working on a project using MyBatis, and one of the biggest friction points for me is verifying dynamic SQL. Whenever I have a complex query with <foreach>, <if>, or OGNL expressions, the feedback loop is painfully slow.

My current "workflow" (which I find incredibly tedious) is: 1. Copy the raw SQL from the XML mapper. 2. Manually scrub the XML tags like <if test="..."> and <where>. 3. Replace all #{param} placeholders with actual values, one by one. (or :param) 4. Finally, paste the cleaned-up SQL into the IDE’s database console to see if it even runs.

I was surprised to find that, despite many MyBatis plugins existing, none of them seem to offer a "direct execution with parameters" feature within the IDE. I expected this to be a standard feature by now, but it feels like we’re still stuck with manual labor for query verification.

To solve this, I’m building an IntelliJ plugin () that: - Automatically detects parameters in your SQL (XML or Annotations). - Prompts for values and evaluates all dynamic tags/OGNL on the fly. - Executes the final native SQL directly via the IDE’s built-in database tools.

I’m curious to hear from the HN community: 1. If I were to release a tool like this, would it be something you’d actually find useful in your daily work? I'm trying to gauge if others share this specific frustration. 2. How do you currently verify your complex MyBatis queries before they hit production? 3. Are there any specific edge cases or reasons why you think this kind of "direct execution" hasn't been widely implemented yet?

I'm eager to hear your thoughts and suggestions. Many thanks for your feedback!

MacBook Tilt Sim Toy – One-Shot Experiment

https://github.com/NSEvent/tilt-sim-experiment
1•thekevintang•1m ago•0 comments

The Cuneiform Tablets of 2015 [pdf]

https://tinlizzie.org/VPRIPapers/tr2015004_cuneiform.pdf
1•tosh•3m ago•0 comments

Automated PR risk scoring with LLMs

https://github.com/KinanNasri/PRScope
1•KinanNasri•4m ago•1 comments

Show HN: Tapedeck – A 4-track cassette recorder in your terminal, built in Rust

https://github.com/manthan787/tapedeck
2•EmTekker•5m ago•1 comments

Mining metrics from unstructured logs (2022)

https://coroot.com/blog/engineering/mining-metrics-from-unstructured-logs/
1•hhthrowaway1230•6m ago•0 comments

Show HN: 149/year landing page and hosting and domain for small businesses

1•laci27•6m ago•0 comments

Evidence of the bouba-kiki effect in naïve baby chicks

https://www.science.org/doi/10.1126/science.adq7188
1•suddenlybananas•7m ago•0 comments

Postmortem: Clerk System Outage (February 19, 2026)

https://clerk.com/blog/2026-02-19-system-outage-postmortem
1•hisamafahri•8m ago•0 comments

Agent-First Software Development Lifecycle

https://github.com/podviaznikov/sdlc-bridge/blob/main/AGENT-FIRST-SDLC.md
2•podviaznikov•9m ago•1 comments

Gauss's Weekday Algorithm, Visualized

https://lukasmetzner.github.io/blog/gauss-weekday.html
1•lukasmetzner•9m ago•0 comments

One man's trail of alleged abuse through SF's private club scene

https://sfstandard.com/2026/02/13/mickey-gerold-amador-clubs-investigation/
1•randycupertino•10m ago•1 comments

Colorado Democrats suggest age verification on OS level

https://twitter.com/LundukeJournal/status/2025313056352600341
1•miohtama•11m ago•0 comments

End of Productivity Theater

http://muratbuffalo.blogspot.com/2026/02/end-of-productivity-theater.html
2•zdw•13m ago•0 comments

The future of AI is uncertain even for Anthropic and OpenAI

https://www.albertplaya.com/posts/future-of-ai-uncertain-anthropic-openai/
2•albertplaya•14m ago•1 comments

Show HN: Use plain English to make forms on WordPress

https://wp.forms.md
1•darkhorse13•14m ago•0 comments

Dumpling: Fine-Grained Differential JavaScript Engine Fuzzing

https://www.ndss-symposium.org/ndss-paper/dumpling-fine-grained-differential-javascript-engine-fu...
1•todsacerdoti•14m ago•0 comments

Inferno

https://en.wikipedia.org/wiki/Inferno_(operating_system)
2•tosh•14m ago•0 comments

The Kingkiller Chronicles Completion Using LLMs

https://thethirdsilence.com/
1•Geobond•14m ago•1 comments

NSA and IETF, Part 6

https://blog.cr.yp.to/20260221-structure.html
3•Tomte•16m ago•0 comments

I built an app to organize web links like collections. Would love feedback

https://linkits.xyz
3•max_cm•17m ago•1 comments

SB26-051 Age Attestation on Computing Devices – Colorado General Assembly

https://leg.colorado.gov/bills/SB26-051
2•bilsbie•18m ago•0 comments

Happy Zelda's 40th first LLM running on N64 hardware (4MB RAM, 93MHz)

https://github.com/sophiaeagent-beep/n64llm-legend-of-Elya
2•AutoJanitor•18m ago•0 comments

Ask HN: Programmable Watches with WiFi?

3•dakiol•19m ago•0 comments

RIP Willie Colón (salsa legend)

https://www.billboard.com/music/latin/willie-colon-dead-reactions-latin-music-stars-1236184469/
2•pauseandplay•19m ago•0 comments

Show HN: Claw Drive – Open-source AI file manager that auto-organizes your files

https://github.com/dissaozw/claw-drive
2•dissao_zw•20m ago•0 comments

Password managers less secure than promised

https://ethz.ch/en/news-and-events/eth-news/news/2026/02/password-managers-less-secure-than-promi...
4•mono-bob•23m ago•0 comments

Graph Topology and Battle Royale Mechanics

https://blog.lukesalamone.com/posts/beam-search-graph-pruning/
2•salamo•25m ago•0 comments

Intense sunlight reduces plant diversity and biomass across global grasslands

https://phys.org/news/2026-02-intense-sunlight-diversity-biomass-global.html
2•PaulHoule•25m ago•0 comments

So what about the students and people in college?

1•tbirch•27m ago•0 comments

Epstein Financial Forensics: Automated Financial Reconstruction from EFTA

https://github.com/randallscott25-star/epstein-forensic-finance
3•timkq•29m ago•0 comments