views:

69

answers:

2

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 ?

+5  A: 

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

nos
A: 

JLibs DAOPattern provides similar functionality that you are looking for...

Santhosh Kumar T