I understand that XMLPipeDB can be used to create DB applications other than GenMAPP - I just have not yet been able to figure how to do it: the xsd of my application runs fine through xsd2db, but what after that? Should I build an application based on the XMLPipeDB utilities? If so, some help beyond "XMLPipeDB User and Developer's Manual" seems to be necessary. Would a peek at the source code of GenMAPP Builder be of assistance? Where can I find the source code?
Thanks,
Werner
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The general steps for using your xsd2db-generated JAR would be:
- place the JAR in your classpath
- configure Hibernate and JAXB to see the mappings in that JAR
- configure Hibernate for the particular database you're using
- place your database's JDBC driver in your classpath
- place the Hibernate and JAXB libraries in your classpath
Once this is done, then your xsd2db-generated JAR acts like a JAXB app when converting XML to Java objects, then it acts like a Hibernate app when reading/writing the Java objects to the database. Thus, the docs for JAXB and Hibernate would be the ones to read for details on how those pieces work.
The XMLPipeDBUtilities library is optional; we wrote it because we observed that if there's anything we do in every database app that we write using the xsd2db-generated JARs, it's configure, import, and query. You may use it if you like, or not at all. However, even if you don't choose to use it, some of its code might help you (for example, the ImportEngine class shows how to import an XML file into Java then into the relational database in one fell swoop).
The GenMAPP Builder source may be useful too; I recommend looking at the main() class, GenMAPPBuilder, which is near the top of the package hierarchy. The source code can be browsed right on this SourceForge site.
Hope this helps...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I understand that XMLPipeDB can be used to create DB applications other than GenMAPP - I just have not yet been able to figure how to do it: the xsd of my application runs fine through xsd2db, but what after that? Should I build an application based on the XMLPipeDB utilities? If so, some help beyond "XMLPipeDB User and Developer's Manual" seems to be necessary. Would a peek at the source code of GenMAPP Builder be of assistance? Where can I find the source code?
Thanks,
Werner
Hello Werner,
The general steps for using your xsd2db-generated JAR would be:
- place the JAR in your classpath
- configure Hibernate and JAXB to see the mappings in that JAR
- configure Hibernate for the particular database you're using
- place your database's JDBC driver in your classpath
- place the Hibernate and JAXB libraries in your classpath
Once this is done, then your xsd2db-generated JAR acts like a JAXB app when converting XML to Java objects, then it acts like a Hibernate app when reading/writing the Java objects to the database. Thus, the docs for JAXB and Hibernate would be the ones to read for details on how those pieces work.
The XMLPipeDBUtilities library is optional; we wrote it because we observed that if there's anything we do in every database app that we write using the xsd2db-generated JARs, it's configure, import, and query. You may use it if you like, or not at all. However, even if you don't choose to use it, some of its code might help you (for example, the ImportEngine class shows how to import an XML file into Java then into the relational database in one fell swoop).
The GenMAPP Builder source may be useful too; I recommend looking at the main() class, GenMAPPBuilder, which is near the top of the package hierarchy. The source code can be browsed right on this SourceForge site.
Hope this helps...