[forge-issues] [JBoss JIRA] (FORGEPLUGINS-120) Invalid AngularJS controllers are generated

Vineet Reynolds (JIRA) jira-events at lists.jboss.org
Mon Jul 15 23:00:26 EDT 2013


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

Vineet Reynolds commented on FORGEPLUGINS-120:
----------------------------------------------

This is due to the type of the class lacking a primary key annotated with {{@Id}}. In this case, the entities generated from the Sakila-H2 model includes the {FilmActor} entity that contains an {{@EmbeddedId}} instead of a plain {{@Id}}.
                
> Invalid AngularJS controllers are generated
> -------------------------------------------
>
>                 Key: FORGEPLUGINS-120
>                 URL: https://issues.jboss.org/browse/FORGEPLUGINS-120
>             Project: Forge Plugins
>          Issue Type: Bug
>          Components: AngularJS Scaffold
>         Environment: AngularJS scaffold plugin v1.0.1.Final
>            Reporter: Vineet Reynolds
>            Assignee: Vineet Reynolds
>
> The following code is generated in the AngularJS controllers via the Scaffolding plugin:
> {noformat}
> if($scope.actor.filmActors){
>     $.each($scope.actor.filmActors, function(idx, element) {
>         if(item. == element.) {
>             $scope.filmActorsSelection.push(wrappedObject);
>         }
>     });
> }
> {noformat}
> Note the invalid comparison expression.

--
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