]
George Gastaldi closed FORGE-1345.
----------------------------------
Fix Version/s: (was: 2.x Future)
Resolution: Out of Date
Unable to reproduce on Forge 2
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
Security Level: Public(Everyone can see)
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_htm...
- 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}