
Signature
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
>>I am looking for a (open-source) tool, which can generate Java Value
>>Object against database table structure.
>
> 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
Bryce - 23 Mar 2005 20:17 GMT
>>>I am looking for a (open-source) tool, which can generate Java Value
>>>Object against database table structure.
[quoted text clipped - 6 lines]
>
>What I have, is a db table with the following structure:
Middlegen will work perfectly for that.
http://boss.bekk.no/boss/middlegen/
--
now with more cowbell