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.
The 'hint' advices me to adding fields, but i have everything in the dbre.xmlCode: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. ...
So what to do after database reverse engineer to continue the work ?
Thanks in advance.
Cs.


Reply With Quote
