I used the following config to generate AS3 object. The AS3 object
does not look right. It has empty body and it extends a mysterious
base class. I would expect the AS3 object has var members inside
without a parent class. See POJO and generated AS object below. What I
did wrong? Thank you for your time.

<plugin>
        <groupId>org.sonatype.flexmojos</groupId>
        <artifactId>flexmojos-maven-plugin</artifactId>
        <version>3.4.2</version>
        <executions>
                <execution>
            <goals>
              <goal>generate</goal>
            </goals>
                <configuration>
                    <generatorToUse>graniteds2</generatorToUse>
            </configuration>
          </execution>
        </executions>
      </plugin>

Input POJO:

public class TodoItem {
    public TodoItem(){};

    private Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}

Output AS3 object:
/**
 * Generated by Gas3 v2.0.0 (Granite Data Services).
 *
 * NOTE: this file is only generated if it does not exist. You may
safely put
 * your custom code here.
 */

package pojo{

    [Bindable]
    [RemoteClass(alias="pojo.TodoItem")]
    public class TodoItem extends TodoItemBase {
    }
}

-- 
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos?hl=en?hl=en

http://blog.flex-mojos.info/

Reply via email to