|
How to Change URL to our database
We need to change the url, name for the connection to our DB
it should be done, for the time being by manipulating the class that is generated and self
the class in question is called loadJDBC, do not be fooled by the class JDBCURL
although it contains the addresses for the connection to your DB
must interact with the Class loadJDBC, particularly in loadData method ();
need to edit the JDBCURL containing the HashMap:
Example:
readxlm.put("infoset", new JDBCURL("jdbc:mysql://localhost/infoset", "root", "root", "infoset", "com.mysql.jdbc.Driver"));
key as we pass the name of our DB, we understand the rest alone, in the class JDBCURL
enter the url, user, password, and classForName ..
|