Open-source tool which generates Java Value objects ?

  • Thread starter writeOnceDebugEverywhere()
  • Start date
W

writeOnceDebugEverywhere()

Hi,
I am looking for a (open-source) tool, which can generate Java Value
Object against database table structure.

Thanks in advance,...
 
C

Chris Smith

writeOnceDebugEverywhere() said:
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.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 
W

writeOnceDebugEverywhere()

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top