Results 1 to 3 of 3

Thread: What is the next step after 'database reverse engineer' ?

  1. #1
    Join Date
    Jun 2010
    Posts
    13

    Thumbs up [SOLVED]What is the next step after 'database reverse engineer' ?

    Hi Guys!

    Q.What would be next step after using 'database reverse engineer' ?
    As for me the 'repository jpa' would be the good way is making repo for existing entities, but It throws the folowing
    java.lang.IllegalStateException: Failed to convert '*' to type JavaType for option 'entity'
    Unknown type; please indicate the type as a command option (ie --xxxx)


    See my try in action.
    Code:
    roo> database reverse engineer --schema db --activeRecord false --package com.mycompany.credit.domain
    Created SRC_MAIN_RESOURCES\dbre.xml
    Updated ROOT\pom.xml
    Updated SRC_MAIN_RESOURCES\META-INF\persistence.xml
    Created SRC_MAIN_JAVA\com\mycompany\credit\domain
    Created SRC_MAIN_JAVA\com\mycompany\credit\domain\Type.java
    Created SRC_MAIN_JAVA\com\mycompany\credit\domain\User.java
    Created SRC_MAIN_JAVA\com\mycompany\credit\domain\Type_Roo_ToString.aj
    Created SRC_MAIN_JAVA\com\mycompany\credit\domain\Type_Roo_DbManaged.aj
    Created SRC_MAIN_JAVA\com\mycompany\credit\domain\Type_Roo_Jpa_Entity.aj
    Created SRC_MAIN_JAVA\com\mycompany\credit\domain\User_Roo_ToString.aj
    Created SRC_MAIN_JAVA\com\mycompany\credit\domain\User_Roo_DbManaged.aj
    Created SRC_MAIN_JAVA\com\mycompany\credit\domain\User_Roo_Jpa_Entity.aj
    roo> repository jpa --interface com.mycompany.credit.domain.User
    java.lang.IllegalStateException: Failed to convert '*' to type JavaType for option 'entity'
    Unknown type; please indicate the type as a command option (ie --xxxx)
    roo> hint
    You can add fields to your entities using either Roo or your IDE. ...
    The 'hint' advices me to adding fields, but i have everything in the dbre.xml
    So what to do after database reverse engineer to continue the work ?

    Thanks in advance.

    Cs.
    Last edited by cscsaba242; Mar 7th, 2012 at 09:39 AM. Reason: SOLVED

  2. #2

    Default

    I think you need to define the --entity option to define what you are creating a repository for.

    Cheers,

    Matt

  3. #3
    Join Date
    Jun 2010
    Posts
    13

    Default [solved]

    Hello mattharr,

    Sorry for the late reply, you were right.
    Thanks for your help.

    Cs.

Tags for this Thread

Posting Permissions

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