Change the format for Oracle DATE to string conversion in EAP 6
Issue
Application code needs to configure the string conversion format for a DATE type accessed by ResultSet.getString(int)
ResultSet rs = st.executeQuery("select id, date_data from my_table");
while (rs.next()) {
...
String dateAsString = rs.getString(2);
...
}
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 6
- Oracle
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.