Ok, this one's for posterity... I didn't try out the tideEntityBase.gsp template in the end as I'm just knocking together a simple PoC that has one DTO; if I ever develop an app that has several, I'd revisit the generation approach.
So for now, I took what was initially generated and changed [Bindable] to [Managed] and stripped out the IExternalizable stuff. Also obviously removed the generate mojo from my POM. I also figured out the 'ArgumentError: Items must support IManaged' issue. I have a swc project that defines the DTO; I also have a swf project, which a) declares the LCDS dependencies and b) depends on the swc project. The problem here is that both projects need to declare the LCDS dependencies: swf, so it can build the Destination and DataService stuff; but also the swc, so it can build the managed entity stuff. Problem solved. Cheers, Darren On Dec 9, 6:59 am, Darren <[email protected]> wrote: > Ok, granite-generator, the dependency of flexmojos-maven-plugin that > contains all the standard templates, includes a tideEntityBase.gsp. > I'll try declaring the use of that first then try modifying it second. > > Cheers > > On Dec 9, 6:53 am, Darren <[email protected]> wrote: > > > > > Yes, is it simply the case that flexmojos:generate and GraniteDS/Gas3 > > does not support LCDS data management? > > > I suspect I have a missing SWC dependency i.e. fds.swc. I thought I > > had correctly declared that but I'll have to check; it's the only > > place I can imagine that would declare/define/recognise the [Managed] > > metadata. > > > So I've done some reading on > > GraniteDS:http://www.graniteds.org/confluence/pages/viewpage.action?pageId=5668941 > > > Does flexmojos:generate support the tide=true setting? > > I guess workarounds are: > > Don't use flexmojos:generate and perhaps use GraniteDS' Eclipse > > builder to manually generate the AS3 classes > > Write a custom base-template that uses [Managed] instead of [Bindable] > > Hand-code the AS3 objects > > > I guess for now I'll just define a custom template. > > > Cheers, Darren > > > On Dec 8, 4:44 pm, velo <[email protected]> wrote: > > > > That is a granite issue, not flexmojos. > > > > Please refer to granite doc for > > > instructionshttp://www.graniteds.org/confluence/pages/viewpage.action?pageId=229378 > > > > VELO > > > > On Dec 8, 1:17 pm, Darren <[email protected]> wrote: > > > > > Hi All, > > > > > I've been trying to use the generate mojo to produce AS entity > > > > classes, but I (and the compiler) have noticed that the Xxx.as and/or > > > > XxxBase.as classes don't declare the [Managed] metadata. > > > > > When I try to create an item on my data-service I get: > > > > > ArgumentError: Items must support IManaged. See [Managed] for more > > > > information: object: org.workingwithmrb.model::Employee > > > > > Also most examples I've seen don't declare any graniteds SWC > > > > dependencies, but I have had to as the generated code imports/uses a > > > > 'meta' namespace that isn't defined anywhere. Including > > > > org.graniteds:granite-essentials-swc:2.0.0.SP1:swc seems so solve that > > > > problem, but I have no idea if this is the right SWC to reference? And > > > > the [Managed] issue described above remains. > > > > > Velo, anyone... any pointers? > > > > > Cheers, Darren -- 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/
