I have a table in which date column is stores as varchar. while doing the Object relational mapping (i am using eclipselink) i want to map this string/varchar to Date object in java.
My table is :
T_BUSINESS TRAN_ID Number, BUSINESS_DATE Varchar
and I want to select all the rows where business date is between two input dates, here problem is since BUSINESS_DATE is varchar i cannot carry out the comparison. I can't modify the table and i don't wanna use the Native sql.
Can anybody tell me how can I do this.
Thanks in advance!