Is it possible to retrieve autoinc field after I execute my insert:
String queryString = "insert into " + String.format("table%04d", id) +
"(sectionid, topicid, dc) values (" + entry.getSectionId() +
", " + entry.getTopicId() + ", " + entry.getDc() + ")";
SQLQuery query = session.createSQLQuery(queryString);
query.executeUpdate();
The table has four fields
eid - autoinc
sectionid - int
topicid - int
dc - int
Please help me