New Clear Data Builder 4.0 doc

I’ve uploaded the pdf, which contains the description of the hands-on workshop on CDB4.0 that we ran for one of our customers. Currently we are working on the September release of CDB 4.1 that will automate data persistence via Hibernate. The appropriate section will be added to the workshop when ready. The Java branch of code generation will have substantial changes in CDB 4.1, but the current doc may be helpful in understanding of the CDB basics.

You can download it in the doc section of Clear Toolkit on Sourceforge: https://sourceforge.net/projects/cleartoolkit/

The beta version of CDB 4.1 will be presented during our symposium on September 10, 2010 in New York City http://www.eventbrite.com/event/770788449 . Enter the code njflex to get $50 off the ticket price.

Yakov

3 thoughts on “New Clear Data Builder 4.0 doc

  1. i have test the CDB4.0
    Walkthrough 8. Using CDB In the Model‚ÄźDriven Way (SQL, JPQL, Fiber)

    Buildfile: C:\Users\aaron\workspace\testtt\daoflex.build\daoflex-build.xml

    init:
    [echo] daoflex.home=C:/eclipse-jee-ganymede-SR2-win32/eclipse/plugins/com.farata.myflex.cdb.resources_4.0.0.20100727090759/resources/ClearBuildFiles

    print-ok:

    print-fail:

    print-error:
    [mkdir] Created dir: C:\Users\aaron\workspace\testtt\.daoflex-temp\gen\bin\original
    [mkdir] Created dir: C:\Users\aaron\workspace\testtt\.daoflex-temp\gen\bin\generated
    [mkdir] Created dir: C:\Users\aaron\workspace\testtt\.daoflex-temp\gen\lib
    [mkdir] Created dir: C:\Users\aaron\workspace\testtt\.daoflex-temp\gen\meta
    [mkdir] Created dir: C:\Users\aaron\workspace\testtt\.daoflex-temp\gen\web
    [mkdir] Created dir: C:\Users\aaron\workspace\testtt\.daoflex-temp\gen\SQL

    build-original:
    [javac] Compiling 5 source files to C:\Users\aaron\workspace\testtt\.daoflex-temp\gen\bin\original
    [jar] Building jar: C:\Users\aaron\workspace\testtt\WebContent\WEB-INF\lib\services-original.jar

    generate:
    [javadoc] Generating Javadoc
    [javadoc] Javadoc execution
    [javadoc] Loading source file C:\Users\aaron\workspace\testtt\src\com\farata\test\Company.java…
    [javadoc] Loading source file C:\Users\aaron\workspace\testtt\src\com\farata\test\Department.java…
    [javadoc] Loading source file C:\Users\aaron\workspace\testtt\src\com\farata\test\Employee.java…
    [javadoc] Loading source file C:\Users\aaron\workspace\testtt\src\com\farata\test\Order.java…
    [javadoc] Loading source file C:\Users\aaron\workspace\testtt\src\com\farata\test\StoredProcedures.java…
    [javadoc] Constructing Javadoc information…
    [javadoc]
    [javadoc] FarataSystems, LLC daoFlex Code Generator 1.0.16
    [javadoc] Processing “com.farata.test.Company” class…
    [javadoc] Error[1]: Failed retrieving bean metadata. Table ‘test.company’ doesn’t exist
    [javadoc] SQL state: 42S02
    [javadoc] SQL: select id,company from company
    [javadoc] pool: jdbc/test
    [javadoc] [2010-08-30 13:31:18,748] ERROR [main] (generateBeanMetadata@AntDoclet.java:277) – Failed retrieving bean metadata. Table ‘test.company’ doesn’t exist
    [javadoc] SQL state: 42S02
    [javadoc] SQL: select id,company from company
    [javadoc] pool: jdbc/test
    [javadoc] [Ljava.lang.StackTraceElement;@1bd2664Failed retrieving bean metadata. Table ‘test.company’ doesn’t exist
    [javadoc] SQL state: 42S02
    [javadoc] SQL: select id,company from company
    [javadoc] pool: jdbc/test
    [javadoc] com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table ‘test.company’ doesn’t exist
    [javadoc] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
    [javadoc] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870)
    [javadoc] at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573)
    [javadoc] at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665)
    [javadoc] at com.mysql.jdbc.Connection.execSQL(Connection.java:3176)
    [javadoc] at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1153)
    [javadoc] at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:794)
    [javadoc] at com.mysql.jdbc.PreparedStatement.getMetaData(PreparedStatement.java:1807)
    [javadoc] at com.theriabook.daoflex.util.TypeConversion.getPrepRSMD(TypeConversion.java:50)
    [javadoc] at com.theriabook.daoflex.util.TypeConversion.getResultSetMetaData(TypeConversion.java:46)
    [javadoc] at com.theriabook.daoflex.AntDoclet.generateBeanMetadata(AntDoclet.java:235)
    [javadoc] at com.theriabook.daoflex.AntDoclet.generateBeanType(AntDoclet.java:354)
    [javadoc] at com.theriabook.daoflex.WebServiceCreator.processType(WebServiceCreator.java:1373)
    [javadoc] at com.theriabook.daoflex.WebServiceCreator.processMethods(WebServiceCreator.java:1018)
    [javadoc] at com.theriabook.daoflex.WebServiceCreator.create(WebServiceCreator.java:633)
    [javadoc] at com.theriabook.daoflex.AntDoclet.generateDao(AntDoclet.java:484)
    [javadoc] at com.theriabook.daoflex.AntDoclet.processClass(AntDoclet.java:687)
    [javadoc] at com.theriabook.daoflex.DocletBase.processAllClasses(DocletBase.java:81)
    [javadoc] at com.theriabook.daoflex.DocletBase.startImpl(DocletBase.java:104)
    [javadoc] at com.theriabook.daoflex.AntDoclet.start(AntDoclet.java:704)
    [javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [javadoc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [javadoc] at java.lang.reflect.Method.invoke(Method.java:597)
    [javadoc] at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:215)
    [javadoc] at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:91)
    [javadoc] at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
    [javadoc] at com.sun.tools.javadoc.Start.begin(Start.java:128)
    [javadoc] at com.sun.tools.javadoc.Main.execute(Main.java:41)
    [javadoc] at com.sun.tools.javadoc.Main.main(Main.java:31)
    [javadoc] (Location of error unknown)java.io.FileNotFoundException: C:\eclipse-jee-ganymede-SR2-win32\eclipse\.\com\farata\test\dto\CompanyDTO.java (The system cannot find the path specified)
    [javadoc] Error[2]: Failed retrieving bean metadata. Table ‘test.company_associate’ doesn’t exist
    [javadoc] SQL state: 42S02
    [javadoc] SQL: select * from company_associate WHERE company_id=?
    [javadoc] pool: jdbc/test
    [javadoc] [2010-08-30 13:31:19,625] ERROR [main] (generateBeanMetadata@AntDoclet.java:277) – Failed retrieving bean metadata. Table ‘test.company_associate’ doesn’t exist
    [javadoc] SQL state: 42S02
    [javadoc] SQL: select * from company_associate WHERE company_id=?
    [javadoc] pool: jdbc/test
    [javadoc] [Ljava.lang.StackTraceElement;@c743ebFailed retrieving bean metadata. Table ‘test.company_associate’ doesn’t exist
    [javadoc] SQL state: 42S02
    [javadoc] SQL: select * from company_associate WHERE company_id=?
    [javadoc] pool: jdbc/test
    [javadoc] com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table ‘test.company_associate’ doesn’t exist
    [javadoc] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
    [javadoc] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870)
    [javadoc] at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573)
    [javadoc] at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665)
    [javadoc] at com.mysql.jdbc.Connection.execSQL(Connection.java:3176)
    [javadoc] at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1153)
    [javadoc] at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:794)
    [javadoc] at com.mysql.jdbc.PreparedStatement.getMetaData(PreparedStatement.java:1807)
    [javadoc] at com.theriabook.daoflex.util.TypeConversion.getPrepRSMD(TypeConversion.java:50)
    [javadoc] at com.theriabook.daoflex.util.TypeConversion.getResultSetMetaData(TypeConversion.java:46)
    [javadoc] at com.theriabook.daoflex.AntDoclet.generateBeanMetadata(AntDoclet.java:235)
    [javadoc] at com.theriabook.daoflex.AntDoclet.generateBeanType(AntDoclet.java:354)
    [javadoc] at com.theriabook.daoflex.WebServiceCreator.processType(WebServiceCreator.java:1373)
    [javadoc] at com.theriabook.daoflex.WebServiceCreator.processMethods(WebServiceCreator.java:1018)
    [javadoc] at com.theriabook.daoflex.WebServiceCreator.create(WebServiceCreator.java:633)
    [javadoc] at com.theriabook.daoflex.AntDoclet.generateDao(AntDoclet.java:484)
    [javadoc] at com.theriabook.daoflex.AntDoclet.processClass(AntDoclet.java:687)
    [javadoc] at com.theriabook.daoflex.DocletBase.processAllClasses(DocletBase.java:81)
    [javadoc] at com.theriabook.daoflex.DocletBase.startImpl(DocletBase.java:104)
    [javadoc] at com.theriabook.daoflex.AntDoclet.start(AntDoclet.java:704)
    [javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [javadoc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [javadoc] at java.lang.reflect.Method.invoke(Method.java:597)
    [javadoc] at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:215)
    [javadoc] at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:91)
    [javadoc] at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
    [javadoc] at com.sun.tools.javadoc.Start.begin(Start.java:128)
    [javadoc] at com.sun.tools.javadoc.Main.execute(Main.java:41)
    [javadoc] at com.sun.tools.javadoc.Main.main(Main.java:31)
    [javadoc] (Location of error unknown)java.io.FileNotFoundException: C:\eclipse-jee-ganymede-SR2-win32\eclipse\.\com\farata\test\dto\CompanyAssociateDTO.java (The system cannot find the path specified)
    [javadoc] Processing “com.farata.test.Department” class…
    [javadoc] Processing “com.farata.test.Employee” class…
    [javadoc] Warning[1]: Using already created “com.farata.test.dto.EmployeeDTO” bean type.
    [javadoc] Warning[2]: Using already created “com.farata.test.dto.DepartmentDTO” bean type.
    [javadoc] Processing “com.farata.test.Order” class…
    [javadoc] Processing “com.farata.test.StoredProcedures” class…
    [javadoc] Done. 2 errors, 2 warnings.

    build-generated:
    [javac] Compiling 18 source files to C:\Users\aaron\workspace\testtt\.daoflex-temp\gen\bin\generated
    [javac] C:\Users\aaron\workspace\testtt\src\generated\com\farata\test\CompanyDAO.java:53: cannot access com.farata.test.dto.CompanyDTO
    [javac] bad class file: C:\Users\aaron\workspace\testtt\src\generated\com\farata\test\dto\CompanyDTO.java
    [javac] file does not contain class com.farata.test.dto.CompanyDTO
    [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
    [javac] public com.farata.test.dto.CompanyDTO[] /*com.farata.test.dto.CompanyDTO[]*/ getCompanies()
    [javac] ^

    BUILD FAILED
    C:\Users\aaron\workspace\testtt\daoflex.build\daoflex-build.xml:122: Compile failed; see the compiler error output for details.

    Total time: 12 seconds

    can help me, please.

    thanks

  2. i have not use the farata_test_MySQLWindows.sql because i cant find it and i used the Enterprise Flex Development Chapter 1 script.

    is it that is a problem.

    thanks

Comments are closed.