+

Search Tips   |   Advanced Search

ANT task WsJpaDBGenTask

The ANT task WsJpaDBGenTask provides an alternative to the wsdbgen command.

The WsJpaDBGenTask ANT task utility supports utilizing the pureQuery feature in Java Persistence API (JPA) 2.0 and later applications that do not use DB2 databases. Instead of using the wsdbgen from the command line, we can use the example code in the ANT build XML file to use the WsJpaDBGenTask in the build process.

Both the PDQ runtime JAR files, pdq.jar and pdqmgmt.jar, must be specified using the ANT -lib option.

Read more about the DB2 JAR level compliance for pureQuery at the IBM Support website: System requirements for IBM Optimâ„¢ pureQuery Run time for Linux, UNIX, and Windows.


Example

The following example is run in the Windows environment with the ANT command:

When calling the ANT command, the JAR files for pureQuery, JPA, and the JDBC driver must be on the library list.

  • wsdbgen command


    Related information:

    System requirements for IBM Optim pureQuery Run time for Linux, UNIX, and Windows