Hi,

Here is a sample of how I used it:

                        ReverseMappingTool.main(new String[] {
                                        "-connectionURL",  "jdbc:mysql://" + 
host +" ":3306/" + dbname +
"?user=" + user + "t&password=" + passw0rd;
                                        "-connectionDriverName", 
"com.mysql.jdbc.Driver",
                                        //package
                                        "-pkg", packageName,
                                        //source dir
                                        "-directory", srcDir,
                        //customizer
                        "-cp", "conf/customizer.properties",
                        //annotations
                        "-annotations", "true" 
                                        });

In my case the database didn't have explicit foreign keys, so I didn't use
this option, but I think there should be some support for this.

Carmel.

-- 
View this message in context: 
http://openjpa.208410.n2.nabble.com/Using-entity-beans-created-by-the-ReverseMappingTool-tp5759987p5794830.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to