reflection - How to create a class dynamically in java -


i don't know if possible. anyway, here problem: want create class having database table schema, example suppose have table

id - unsigned int  username - varchar(128) password - varchar(128) 

and let's assume can query data db. want dynamically create (and, of course, instantiate) java class should this:

public class user{     private unsigned int id;     private string username;     private string password; } 

(actually activerecord table)

can me starting this? tnks

what do dynamically created , instantiated class none of other code knows about?

for stically typed language java, makes little sense have such classes. on other hand, or mappers hibernate come tools allow statically generate classes database schema.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -