Chris said:
If I'm understanding you correctly, try MiddleGen.
- probably because of I am new to the Java db programming.
Here is a closer look:
What I have, is a db table with the following structure:
CREATE TABLE MY_TABLE (
PASSWORD VARCHAR(50),
USERNAME VARCHAR(50) NOT NULL
)
Now, I am looking for a tool which can:
- connect to database,
- take somehow the database table structure,
- generate the folowing Java class:
public class MyTable {
private String username = null;
private String password = null;
public MyTable(String username, String password){
this.username = username;
this.password = password;
}// of constructor
public String getUsername(){
return this.username;
}
public String getPassword(){
return this.password;
}
public void setUsername(String username){
.....
}
}// of class