[forge-issues] [JBoss JIRA] (FORGE-2141) rest-generate-endpoints-from-entities selector does not select correct entity

George Gastaldi (JIRA) issues at jboss.org
Wed Nov 12 03:01:19 EST 2014


    [ https://issues.jboss.org/browse/FORGE-2141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13019034#comment-13019034 ] 

George Gastaldi commented on FORGE-2141:
----------------------------------------

The correct command is: 
{{rest-generate-endpoints-from-entities --targets org.cdbookstore.model.*}}

Have you tried the following steps? 

1) Run {{rest-generate-endpoints-from-entities}}
You should see 
{code}
[0] - org.bookstore.model.Author
[1] - org.bookstore.model.Book

Target: [0-1]: 
{code}
2) Press "0" and then press <ENTER>
3) When the next prompt appears (with Book entity only), do not select anything and press <ENTER>
4) Check if the AuthorEndpoint is created.


> rest-generate-endpoints-from-entities selector does not select correct entity
> -----------------------------------------------------------------------------
>
>                 Key: FORGE-2141
>                 URL: https://issues.jboss.org/browse/FORGE-2141
>             Project: Forge
>          Issue Type: Bug
>    Affects Versions: 2.12.2.Final
>            Reporter: Tom Van den Bulck
>            Priority: Minor
>         Attachments: jboss forge error.jpg
>
>
> When executing the command rest-generate-endpoints-from-entities --target  org.cdbookstore.model.*
> It provides a selector 
> [0] - org.bookstore.model.Author
> [1] - org.bookstore.model.Book
> Target: [0-1]: 0
> This gives the following result
> [0] - org.bookstore.model.Book (which was selection 1)
> And vice versa, pressing 1 gives the Author object to select



--
This message was sent by Atlassian JIRA
(v6.3.8#6338)


More information about the forge-issues mailing list