Results 1 to 2 of 2

Thread: Grails db-reverse-engineer not generating model class

  1. #1
    Join Date
    Jul 2012
    Posts
    1

    Default Grails db-reverse-engineer not generating model class

    Hi,

    I have successfully installed reverse engineer plugin and modified following configuration files

    *****************Config.groovy************
    grails.plugin.reveng.destDir = 'tempreverse'
    grails.plugin.reveng.jdbcDriverJarPath='C:/Starteam_HP_Local/CS_DEV/lib/ojdbc5.jar'
    grails.plugin.reveng.packageName='com.hp.us.citpre proc'
    //grails.plugin.reveng.defaultSchema ='staging'
    grails.plugin.reveng.includeTables = ['quote']

    ***************DataSource.groovy*************
    dataSource {
    pooled = true
    url="jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROT OCOL=TCP)(HOST=g9u0472.houston.hp.com)(PORT=1525)) (CONNECT_DATA=(SERVICE_NAME=CITD)))"
    driverClassName = "oracle.jdbc.driver.OracleDriver"
    username = "staging"
    password = "******"
    dialect = "org.hibernate.dialect.Oracle10gDialect"
    }

    when i Ran : grails db-reverse-engineer command domain files are not generated

    following is the command output
    C:\GrailsWS\CiTPreProcessor>grails db-reverse-engineer
    | Configuring classpath
    Resolving [test] dependencies...
    | Compiling 1 source files.....
    | Starting database reverse engineering, connecting to 'jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL =TCP)(HOS
    | Starting database reverse engineering, connecting to 'jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL =TCP)(HOS
    | Starting database reverse engineering, connecting to 'jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL =TCP)(HOS
    | Compiling 10 source files...

    log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
    log4j:WARN Please initialize the log4j system properly.

    | Finished database reverse engineering


    any help appreciated

  2. #2
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    768

    Default

    This question would be better answered on the grails forum.
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •