Some time ago, jdk 6 announced JDBC4 with the "Annotation-Based SQL Queries". I was looking for testing the approach but didn't find the required classes (like java.sql.BasicQuery) in the JDK 6. Googling a little on the subject, I found a thread on java.net that tells these "Ease of User" features haven't finally been included in the JDK because of a lack of time. Does someone here tell me more about the future availability of these features ?
Annotation based SQL queries never made it into the final JDBC 4.0, and there havn't been much talk about bringing them back, work seems rather to have been focused on JPA.
If you still want something similar, look at iBatis. Here's some examples
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With