Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where are JDBC4 annotations?

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 ?

like image 575
baraber Avatar asked Jun 14 '10 19:06

baraber


1 Answers

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

like image 119
nos Avatar answered Oct 11 '22 20:10

nos