[JBoss JIRA] (FORGE-1346) Introduce wildcards to the CLI
by Lincoln Baxter III (JIRA)
[ https://issues.jboss.org/browse/FORGE-1346?page=com.atlassian.jira.plugin... ]
Lincoln Baxter III closed FORGE-1346.
-------------------------------------
Resolution: Won't Fix
Since we have the bayesian distance feature implemented "Did you mean?" I think that we are OK without this one. It would also be difficult to implement and not a huge benefit as it would have to be learned (aka, non-intuitive) as a feature.
> Introduce wildcards to the CLI
> ------------------------------
>
> Key: FORGE-1346
> URL: https://issues.jboss.org/browse/FORGE-1346
> Project: Forge
> Issue Type: Enhancement
> Components: UI - Shell
> Affects Versions: 2.x Future
> Reporter: Antonio Goncalves
>
> At the moment you start typing a command, you hit TAB, and you get all the possible hints :
> {code}
> > jpa- TAB
> jpa-new-entity jpa-new-field
> {code}
> If wildcards are introduced, you could then do :
> {code}
> > *scaffold* TAB
> jpa-scaffold-from-db rest-scaffold-from-jpa rest-scaffold-from-ejb
> {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
12 years, 2 months
[JBoss JIRA] (FORGE-1360) Review Property and Field Access support for JPA and related specs
by Lincoln Baxter III (JIRA)
[ https://issues.jboss.org/browse/FORGE-1360?page=com.atlassian.jira.plugin... ]
Lincoln Baxter III updated FORGE-1360:
--------------------------------------
Fix Version/s: 2.x Future
> Review Property and Field Access support for JPA and related specs
> ------------------------------------------------------------------
>
> Key: FORGE-1360
> URL: https://issues.jboss.org/browse/FORGE-1360
> Project: Forge
> Issue Type: Task
> Components: Blessed Plugins
> Affects Versions: 2.0.0.Beta3
> Reporter: Vineet Reynolds
> Fix For: 2.x Future
>
>
> Annotations should be written to the fielld or the getter, based on whether property or field access is used in JPA entities. Likewise, the presence of the annotation should also be flagged based on property vs field access used for the entity.
> Note that there are different rules for JPA 1.0 and 2/0 entities. Different rules may also exist for other addons that support other specifications/JSRs involving beans.
> This task is to conduct a review of the behavior of Forge addons for scenarios involving property vs field access. Raise additional feature requests or bugs as necessary.
--
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
12 years, 2 months
[JBoss JIRA] (FORGE-1345) Unable to use --strategy ROOT_AND_NESTED_DTO for rest endpoint generation
by Lincoln Baxter III (JIRA)
[ https://issues.jboss.org/browse/FORGE-1345?page=com.atlassian.jira.plugin... ]
Lincoln Baxter III updated FORGE-1345:
--------------------------------------
Fix Version/s: 2.x Future
> 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
> Fix For: 2.x Future
>
>
> 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}
--
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
12 years, 2 months
[JBoss JIRA] (FORGE-1432) run command is missing (and with it, scripting)
by Lincoln Baxter III (JIRA)
[ https://issues.jboss.org/browse/FORGE-1432?page=com.atlassian.jira.plugin... ]
Lincoln Baxter III commented on FORGE-1432:
-------------------------------------------
So ';' doesn't appear to be the problem. Looking deeper.
> run command is missing (and with it, scripting)
> -----------------------------------------------
>
> Key: FORGE-1432
> URL: https://issues.jboss.org/browse/FORGE-1432
> Project: Forge
> Issue Type: Sub-task
> Components: UI - Shell
> Affects Versions: 2.0.0.Beta4
> Reporter: Antonio Goncalves
> Assignee: Lincoln Baxter III
> Fix For: 2.0.0.Final
>
>
> I use a lot of scripts to start my projects, add/remove Maven dependencies.... So when I'm in Forge console, I type {{run ../myScript.fsh}}. For example, here is a script I use to get ride of EE 6 dependencies and add EE7 :
> {code}
> @/* ====================================== */;
> @/* == From Java EE 6 to 7 Dependencies == */;
> @/* ====================================== */;
> project remove-dependency org.hibernate.javax.persistence:hibernate-jpa-2.0-api ;
> project remove-dependency javax.validation:validation-api ;
> project remove-dependency org.hibernate:hibernate-validator ;
> project remove-dependency javax.enterprise:cdi-api ;
> project remove-dependency org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec ;
> project remove-dependency org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_1.1_spec ;
> project remove-dependency org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec ;
> project remove-dependency org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec ;
> project remove-dependency org.jboss.spec.javax.faces:jboss-jsf-api_2.1_spec ;
> project remove-dependency org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec ;
> project add-dependency javax:javaee-api:7.0:provided ;
> project add-dependency org.primefaces:primefaces:4.0 ;
> project add-repository primefaces-repo http://repository.primefaces.org ;
> {code}
> I have other scripts like that. The good this is, without leaving the console, I can write :
> {code}
> [Forge]$ run script1.fsh
> [Forge]$ run script2.fsh
> [Forge]$ run script3.fsh
> {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
12 years, 2 months
[JBoss JIRA] (FORGE-1386) JPA setup should avoid adding Java EE 6 API POM/BOM when EE 7 APIs are present
by Lincoln Baxter III (JIRA)
[ https://issues.jboss.org/browse/FORGE-1386?page=com.atlassian.jira.plugin... ]
Lincoln Baxter III updated FORGE-1386:
--------------------------------------
Fix Version/s: 2.x Future
> JPA setup should avoid adding Java EE 6 API POM/BOM when EE 7 APIs are present
> ------------------------------------------------------------------------------
>
> Key: FORGE-1386
> URL: https://issues.jboss.org/browse/FORGE-1386
> Project: Forge
> Issue Type: Feature Request
> Components: Builtin Plugins
> Affects Versions: 2.0.0.Beta4
> Reporter: Vineet Reynolds
> Fix For: 2.x Future
>
>
> When the JPA setup wizard is run, and the WildFly container is chosen, the EE 6 APIs should not be added to the project POM unless they were already present.
> I think the default behavior should be to add the dependencies for the most recent version of the supported EE version (EE 7 APIs) to the POM, unless a lower supported version (EE 6) is available in the POM. This needn't be desirable always, but should be considered.
--
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
12 years, 2 months