Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Complex object

$
0
0

Hi,

(applogies for the newbie question)

Does Alloy support more complex model structures? If so how?

consider the following:

"order" : {
    "id" : 1,
    "date" : "2001-01-01T00:00:00.000Z", 
    "orderEntires" : [
        { "item" : { "name" : "book1" }, "cost" : 12.95 },
        { "item" : { "name" : "book33" }, "cost" : 13.95 }]
    "customerId": 1236 }
something like the above, I do not mind having ids on each object (identity field - http://martinfowler.com/eaaCatalog/identityField.html)

thanks in advance.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>