Im back, with a new problem. LOL!
I need to change Java datatypes to SQL types.
I have sql queries as String object. like this one :
create table MyTable ( id bigint, name String , city String , state String ) OR create table MyTable ( id bigint, name java.lang.String , city java.lang.String , state java.lang.String )
I need to change "String" or "java.lang.String" to varchar or char and same thing for other types.
One way is, Write a code to replace java datatypes to sqltypes.
For that, I need to map all the java datatypes to sqltypes.
But i want to know, is there any other way to do it ? any inbuild class for this, or any third party class ?
Waiting for your response.