[forge-issues] [JBoss JIRA] (FORGE-1345) Unable to use --strategy ROOT_AND_NESTED_DTO for rest endpoint generation
Pete Muir (JIRA)
jira-events at lists.jboss.org
Wed Dec 4 11:20:06 EST 2013
Pete Muir created FORGE-1345:
--------------------------------
Summary: Unable to use --strategy ROOT_AND_NESTED_DTO for rest endpoint generation
Key: FORGE-1345
URL: https://issues.jboss.org/browse/FORGE-1345
Project: Forge
Issue Type: Feature Request
Components: Scaffold
Environment: JBDS 7.1.0.CR1
Reporter: Pete Muir
Using this script - https://github.com/jboss-jdf/jdf-collateral/blob/master/scripts/forge_html5_5_mins.asciidoc - but with the new strategy suggested by Vineet, I get this error:
[code]
[rhsessions] rhsessions $ rest endpoint-from-entity --contentType application/json com.redhat.sessions.model.* --strategy ROOT_AND_NESTED_DTO
? An action has requested to install the following facets into your project [interface org.jboss.forge.spec.javaee.JTAFacet, interface org.jboss.forge.spec.javaee.EJBFacet, interface org.jboss.forge.spec.javaee.PersistenceFacet] continue? [Y/n]
***SUCCESS*** Installed [forge.spec.jta] successfully.
***SUCCESS*** Installed [forge.spec.ejb] successfully.
***SUCCESS*** Generated REST endpoint for [com.redhat.sessions.model.Attendee]
Wrote /Users/pmuir/workspace-demos/rhsessions/pom.xml
Wrote /Users/pmuir/workspace-demos/rhsessions/src/main/java/com/redhat/sessions/rest/dto/AttendeeDTO.java
Wrote /Users/pmuir/workspace-demos/rhsessions/src/main/java/com/redhat/sessions/rest/AttendeeEndpoint.java
Wrote /Users/pmuir/workspace-demos/rhsessions/src/main/java/com/redhat/sessions/rest/dto/NestedAttendeeDTO.java
***ERROR*** Exception encountered: Attempted to import the illegal type [null] (type "set VERBOSE true" to enable stack traces)
[rhsessions] rhsessions $
[code]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the forge-issues
mailing list