Does Flash Builder 4 Generated Value Objects Support Inheritance/Polymorphism?

524 views Asked by At

At Java side, I have

Interface Node
FloatLiteral implements Node
Resource implements Node

And DAO that provide service that returns

public List<Node> getAll()

Thus it can return FloatLiterals and Resources.

When I use Flash Builder 4 Data/Services wizard, it generates value object only for Node. If I force the wizard to generate value objects for FloatLiteral and Resource by adding the below (which will be removed after value objects are generated)

public List<FloatLiteral> getFloats()
public List<Resource> getResources()

The generated value objects seems does not build the relationship like at Java side. All are standalone classes.

Anyone have idea how to make Flex remoting support inheritance and polymorphism by using Flash Builder 4 Data/Services wizard?

Thanks.

1

There are 1 answers

2
Christophe Herreman On BEST ANSWER

Inheritance is supported by remoting since it uses the mapped aliases of the classes to (de)serialize the objects. However, the Flash Builder data wizards (Fiber) do NOT support inheritance. We were also faced with this issue some time ago and decided to write our own code generator instead.