openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Cameron <Steve.Came...@aad.gov.au>
Subject more details on SQL Server reverse mapping problem[SEC=UNCLASSIFIED]
Date Thu, 08 Mar 2012 11:44:20 GMT
I have written a little program as follows:

import java.io.File;
import org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl;
import org.apache.openjpa.jdbc.meta.ReverseMappingTool;

public class reverse {

       private static ReverseMappingTool tool;
       private static JDBCConfigurationImpl conf;

       /**
       * @param args
       */
       public static void main(String[] args) {
             // TODO Auto-generated method stub
             conf = new JDBCConfigurationImpl();
              conf.setConnectionDriverName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
              conf.setConnectionURL("jdbc:sqlserver://localhost\\SQLEXPRESS;databaseName=Fishlog");
             conf.setConnectionUserName("sa");
             conf.setConnectionPassword("password");
             tool = new ReverseMappingTool(conf);
             tool.setDirectory(new File("c:/temp/fishlog.xml"));
             tool.setPackageName("au.gov.aad");
             try{
                    tool.run();
             }
             catch(Exception e){
                    e.printStackTrace();
             }
       }

}

In Eclipse I can see an untrapped ClassNotFoundException being thrown (not sure why at this
stage).

Refering to "org.apache.openjpa.jdbc.schema.SchemaGenerator"

At ReverseMappingTool.getSchemaGroup() line 610

See attached screendump as well


Stephen Cameron
Antarctic Fisheries Computing and Database Support Provider
Australian Antarctic Division
Kingston, Tasmania

[cid:image001.jpg@01CCFD7B.72D10F10]
Phone: 03 62323571


___________________________________________________________________________

    Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not the
intended recipient, you are notified that use or dissemination of this communication is
strictly prohibited by Commonwealth law. If you have received this transmission in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and
DELETE the message.
        Visit our web site at http://www.antarctica.gov.au/
___________________________________________________________________________

Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message