I am looking for some existing library in java which is capable of parsing a SQL DDL
statements, which is capable of doing this:
Say I have a table as follows :
create table emp
(
name varchar(20),
empid int,
date_of_joining date
);
Then, I want a class with the following constructor:
Emp(String name, int empid, Date date_of_joining)
Now, if we someone changes the schema of the table as follows:
alter table emp
add salary double;
Emp(String name, int empid, Date date_of_joining, double salary)
alter table emp
modify empid varchar(6);
Emp(String name, String empid, Date date_of_joining, double salary)
Is there something already existing, which does something lie this ?