RE: [flexcoders] Re: Cairngorm / Hibernate Best Practices
See below for a good discussion on this: http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60; catid=583threadid=1169760enterthread=y#4195442 Jeff Vroom's responses (especially the second one) should help you get started. The SpringFactory is available to download at the Adobe Exchange: http://www.adobe.com/cfusion/exchange/index.cfm#loc=en_usview=sn611vie wName=Flex%20Extensionauthorid=70170511page=0scrollPos=0subcatid=0s nid=sn611itemnumber=0extid=1035406catid=0 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dreuimar Sent: Thursday, August 31, 2006 5:35 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Cairngorm / Hibernate Best Practices Thanks for the info, I've actually been using Spring predominantly for my standard J2EE web apps, but haven't used it with Flex. I know it's possible, and have been thinking of doing a Flex/Spring/Hibernate setup, but haven't yet. Is it difficult to use Spring with Flex, and where would I go to begin? Also, 4 years of a going to a Liberal Arts school forces archaic words like 'hitherto' into your vocabulary, haha. --- In flexcoders@yahoogroups.com, e baggg [EMAIL PROTECTED] wrote: Brennan, I haven't seen the word Hithero used since I was forced to read Shakespeare back in high school. Way to bring it back! Anyway, Adobe has provided Hibernate support via the Hibernate Assembler: http://livedocs.macromedia.com/flex/2/fds2javadoc/flex/data/assemblers/H ibernateAssembler.html I actually created an app that is front-to-end using the RemoteObject. I have my Java pojos which are mapped to my hibernate mapping files and I also have the AS classes that correlate to them too, using the: [Managed] [RemoteClass(alias=com.project.MyClass)] I pass all my objects to a pojo facade class which in turns invokes my Sprign beans. Within the facade, all the hibernate and trasactions are taken care. My objects are pretty light, so to avoid lazy-loading issues on the client side, i set lazy=false at the class level for all my hibernate mappings. This works well for me and I have not faced any performance issues. - Stay in the know. Pulse on the new Yahoo.com. Check it out. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Cairngorm / Hibernate Best Practices
Thanks for the info, I've actually been using Spring predominantly for my standard J2EE web apps, but haven't used it with Flex. I know it's possible, and have been thinking of doing a Flex/Spring/Hibernate setup, but haven't yet. Is it difficult to use Spring with Flex, and where would I go to begin? Also, 4 years of a going to a Liberal Arts school forces archaic words like 'hitherto' into your vocabulary, haha. --- In flexcoders@yahoogroups.com, e baggg [EMAIL PROTECTED] wrote: Brennan, I haven't seen the word Hithero used since I was forced to read Shakespeare back in high school. Way to bring it back! Anyway, Adobe has provided Hibernate support via the Hibernate Assembler: http://livedocs.macromedia.com/flex/2/fds2javadoc/flex/data/assemblers/HibernateAssembler.html I actually created an app that is front-to-end using the RemoteObject. I have my Java pojos which are mapped to my hibernate mapping files and I also have the AS classes that correlate to them too, using the: [Managed] [RemoteClass(alias=com.project.MyClass)] I pass all my objects to a pojo facade class which in turns invokes my Sprign beans. Within the facade, all the hibernate and trasactions are taken care. My objects are pretty light, so to avoid lazy-loading issues on the client side, i set lazy=false at the class level for all my hibernate mappings. This works well for me and I have not faced any performance issues. - Stay in the know. Pulse on the new Yahoo.com. Check it out. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Cairngorm / Hibernate Best Practices
Flex can't access your Spring Beans directly. Similar to SpringWeb how you set up Controllers which map to a URL pattern, your Facade (JavaPojo) which have the methods which your AS delegate will call. There is a good example with source code here: http://weblogs.macromedia.com/auhlmann/archives/2006/07/cairngorm_2_for_1.cfm --- In flexcoders@yahoogroups.com, dreuimar [EMAIL PROTECTED] wrote: Thanks for the info, I've actually been using Spring predominantly for my standard J2EE web apps, but haven't used it with Flex. I know it's possible, and have been thinking of doing a Flex/Spring/Hibernate setup, but haven't yet. Is it difficult to use Spring with Flex, and where would I go to begin? Also, 4 years of a going to a Liberal Arts school forces archaic words like 'hitherto' into your vocabulary, haha. --- In flexcoders@yahoogroups.com, e baggg e_baggg@ wrote: Brennan, I haven't seen the word Hithero used since I was forced to read Shakespeare back in high school. Way to bring it back! Anyway, Adobe has provided Hibernate support via the Hibernate Assembler: http://livedocs.macromedia.com/flex/2/fds2javadoc/flex/data/assemblers/HibernateAssembler.html I actually created an app that is front-to-end using the RemoteObject. I have my Java pojos which are mapped to my hibernate mapping files and I also have the AS classes that correlate to them too, using the: [Managed] [RemoteClass(alias=com.project.MyClass)] I pass all my objects to a pojo facade class which in turns invokes my Sprign beans. Within the facade, all the hibernate and trasactions are taken care. My objects are pretty light, so to avoid lazy-loading issues on the client side, i set lazy=false at the class level for all my hibernate mappings. This works well for me and I have not faced any performance issues. - Stay in the know. Pulse on the new Yahoo.com. Check it out. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Cairngorm / Hibernate Best Practices
Brennan, I haven't seen the word "Hithero" used since I was forced to read Shakespeare back in high school. Way to bring it back! Anyway, Adobe has provided Hibernate support via the Hibernate Assembler:http://livedocs.macromedia.com/flex/2/fds2javadoc/flex/data/assemblers/HibernateAssembler.htmlI actually created an app that is front-to-end using the RemoteObject. I have my Java pojos which are mapped to my hibernate mapping files and I also have the AS classes that correlate to them too, using the:[Managed][RemoteClass(alias="com.project.MyClass")]I pass all my objects to a pojo facade class which in turns invokes my Sprign beans. Within the facade, all the hibernate and trasactions are taken care. My objects are pretty light, so to avoid lazy-loading issues on the client side, i set lazy=false at the class level for all my hibernate mappings. This works well for me and I have not faced any performance issues. Stay in the know. Pulse on the new Yahoo.com. Check it out. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___