[transfer-dev] Transaction error when access property not defined
If the access property of a function is not defined, it defaults to public. But Transfer is looking for it during during the creation of the advise method creation, because an Element ACCESS is undefined in METADATA.: error is thrown if it is not explicitly defined. can this be fixed to use the default of public when it is undefined? --~--~-~--~~~---~--~~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups transfer-dev group. To post to this group, send email to transfer-dev@googlegroups.com To unsubscribe from this group, send email to transfer-dev-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en -~--~~~~--~~--~--~---
[transfer-dev] Re: ManyToMany Relationships order property not working
Hey Mark, here are the relevant declarations: object name=Bilder id name=BildID type=numeric / property name=Filename type=string / property name=OrderNum type=numeric / /object !-- PROJEKTE -- package name=Projekte object name=Projekte decorator=athome.model.ProjekteDecorator id name=ProjektID type=numeric / ... manytomany name=Bilder table=ProjekteBilder link to=Projekte.Projekte column=FK_ProjektID / link to=Bilder column=FK_BildID / collection type=arrayorder property=OrderNum order=asc / /collection /manytomany /object /package the ProjekteBilder table which connects the relationship doesn't have to be declared as an object, right? the relationship and its generated methods work fine, just the sort order doesn't. Thanks! On Mar 13, 7:06 am, Mark Mandel mark.man...@gmail.com wrote: Chris, What does the rest of the config for that object look like? Mark On Fri, Mar 13, 2009 at 2:52 AM, Chris H 3darkli...@gmail.com wrote: yes, i first had it in the ProjekteBilder Table, which did throw an error. it is now in the Bilder Table and no errors is thrown, but the resulting array is not sorted by that column. thanks! On Mar 12, 2:06 pm, Bob Silverberg bob.silverb...@gmail.com wrote: Oops, that should have read Although I would have expected Transfer to throw an error if the OrderNum were not in the Bilder table On Thu, Mar 12, 2009 at 9:05 AM, Bob Silverberg bob.silverb...@gmail.comwrote: In which table is the column OrderNum? I'm guessing that maybe it's in the ProjekteBilder table? If so, you won't have access to it. The order property must point to a property in the Bilder table, in your example. Although I would have expected Transfer to throw an error is the OrderNum were not in the Bilder table, so maybe I'm totally off base. Bob On Thu, Mar 12, 2009 at 7:29 AM, Chris H 3darkli...@gmail.com wrote: hey, i have my relationship set up like this: manytomany name=Bilder table=ProjekteBilder link to=Projekte.Projekte column=FK_ProjektID / link to=Bilder column=FK_BildID / collection type=arrayorder property=OrderNum order=asc // collection /manytomany the collection is not sorted by the specified property though, even if i call a manual sortBilder() on the TO i've tried reinitializing the application, discardAll() on the cache, even restarted ColdFusion, no help. any ideas? thanks in advance! -- Bob Silverberg www.silverwareconsulting.com -- Bob Silverbergwww.silverwareconsulting.com -- E: mark.man...@gmail.com W:www.compoundtheory.com --~--~-~--~~~---~--~~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups transfer-dev group. To post to this group, send email to transfer-dev@googlegroups.com To unsubscribe from this group, send email to transfer-dev-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en -~--~~~~--~~--~--~---
[transfer-dev] Re: ManyToMany Relationships order property not working
never mind, i was updating the order column with manual SQL and of course the cache didn't pick this up. still have to wrap my head around this new workflow with Transfer ;D i called discardByClassAndKey() on the parent object after the manual update and all is good now. thanks for all your replies though! On Mar 13, 9:56 am, Chris H 3darkli...@gmail.com wrote: Hey Mark, here are the relevant declarations: object name=Bilder id name=BildID type=numeric / property name=Filename type=string / property name=OrderNum type=numeric / /object !-- PROJEKTE -- package name=Projekte object name=Projekte decorator=athome.model.ProjekteDecorator id name=ProjektID type=numeric / ... manytomany name=Bilder table=ProjekteBilder link to=Projekte.Projekte column=FK_ProjektID / link to=Bilder column=FK_BildID / collection type=arrayorder property=OrderNum order=asc //collection /manytomany /object /package the ProjekteBilder table which connects the relationship doesn't have to be declared as an object, right? the relationship and its generated methods work fine, just the sort order doesn't. Thanks! On Mar 13, 7:06 am, Mark Mandel mark.man...@gmail.com wrote: Chris, What does the rest of the config for that object look like? Mark On Fri, Mar 13, 2009 at 2:52 AM, Chris H 3darkli...@gmail.com wrote: yes, i first had it in the ProjekteBilder Table, which did throw an error. it is now in the Bilder Table and no errors is thrown, but the resulting array is not sorted by that column. thanks! On Mar 12, 2:06 pm, Bob Silverberg bob.silverb...@gmail.com wrote: Oops, that should have read Although I would have expected Transfer to throw an error if the OrderNum were not in the Bilder table On Thu, Mar 12, 2009 at 9:05 AM, Bob Silverberg bob.silverb...@gmail.comwrote: In which table is the column OrderNum? I'm guessing that maybe it's in the ProjekteBilder table? If so, you won't have access to it. The order property must point to a property in the Bilder table, in your example. Although I would have expected Transfer to throw an error is the OrderNum were not in the Bilder table, so maybe I'm totally off base. Bob On Thu, Mar 12, 2009 at 7:29 AM, Chris H 3darkli...@gmail.com wrote: hey, i have my relationship set up like this: manytomany name=Bilder table=ProjekteBilder link to=Projekte.Projekte column=FK_ProjektID / link to=Bilder column=FK_BildID / collection type=arrayorder property=OrderNum order=asc // collection /manytomany the collection is not sorted by the specified property though, even if i call a manual sortBilder() on the TO i've tried reinitializing the application, discardAll() on the cache, even restarted ColdFusion, no help. any ideas? thanks in advance! -- Bob Silverberg www.silverwareconsulting.com -- Bob Silverbergwww.silverwareconsulting.com -- E: mark.man...@gmail.com W:www.compoundtheory.com --~--~-~--~~~---~--~~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups transfer-dev group. To post to this group, send email to transfer-dev@googlegroups.com To unsubscribe from this group, send email to transfer-dev-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en -~--~~~~--~~--~--~---
[transfer-dev] ManyToMany Relationships order property not working
hey, i have my relationship set up like this: manytomany name=Bilder table=ProjekteBilder link to=Projekte.Projekte column=FK_ProjektID / link to=Bilder column=FK_BildID / collection type=arrayorder property=OrderNum order=asc // collection /manytomany the collection is not sorted by the specified property though, even if i call a manual sortBilder() on the TO i've tried reinitializing the application, discardAll() on the cache, even restarted ColdFusion, no help. any ideas? thanks in advance! --~--~-~--~~~---~--~~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups transfer-dev group. To post to this group, send email to transfer-dev@googlegroups.com To unsubscribe from this group, send email to transfer-dev-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en -~--~~~~--~~--~--~---
[transfer-dev] Re: ManyToMany Relationships order property not working
yes, i first had it in the ProjekteBilder Table, which did throw an error. it is now in the Bilder Table and no errors is thrown, but the resulting array is not sorted by that column. thanks! On Mar 12, 2:06 pm, Bob Silverberg bob.silverb...@gmail.com wrote: Oops, that should have read Although I would have expected Transfer to throw an error if the OrderNum were not in the Bilder table On Thu, Mar 12, 2009 at 9:05 AM, Bob Silverberg bob.silverb...@gmail.comwrote: In which table is the column OrderNum? I'm guessing that maybe it's in the ProjekteBilder table? If so, you won't have access to it. The order property must point to a property in the Bilder table, in your example. Although I would have expected Transfer to throw an error is the OrderNum were not in the Bilder table, so maybe I'm totally off base. Bob On Thu, Mar 12, 2009 at 7:29 AM, Chris H 3darkli...@gmail.com wrote: hey, i have my relationship set up like this: manytomany name=Bilder table=ProjekteBilder link to=Projekte.Projekte column=FK_ProjektID / link to=Bilder column=FK_BildID / collection type=arrayorder property=OrderNum order=asc // collection /manytomany the collection is not sorted by the specified property though, even if i call a manual sortBilder() on the TO i've tried reinitializing the application, discardAll() on the cache, even restarted ColdFusion, no help. any ideas? thanks in advance! -- Bob Silverberg www.silverwareconsulting.com -- Bob Silverbergwww.silverwareconsulting.com --~--~-~--~~~---~--~~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups transfer-dev group. To post to this group, send email to transfer-dev@googlegroups.com To unsubscribe from this group, send email to transfer-dev-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en -~--~~~~--~~--~--~---
[transfer-dev] Re: Cache not updating
there are no caching options set in the transfer config, so they're the defaults. the cache updates correctly for 1-2 of the objects, but not for most of the others. if it helps, i'm updating via Ajax with a Remote Proxy that was generated with ColdSpring. But this works fine for one of the objects, so that can't be it. What could be a cause for this if the database is updated fine but after a reload of the page the old values are still displayed? thanks! On Jan 27, 1:51 pm, Chris Peterson overrid...@gmail.com wrote: sounds like you have your cache in perhaps 2 different spots, or the save is happening under a different application name? Care to post the cache portion of your transfer config? Chris Peterson On Tue, Jan 27, 2009 at 7:30 AM, Chris H 3darkli...@gmail.com wrote: Hey, this is my first full application i'm doing with Transfer and i'm having a problem with the cache. Most cached objects don't get updated on save(), but the changes are visible in the database. Only when I do an ?init=true (which reinits Model-Glue ColdSpring) are the TransferObjects updated. any ideas? thanks in advance! -- Hey! I dont tell you how to tell me what to do, so dont tell me how to do what you tell me to do! ~ Bender (Futurama) --~--~-~--~~~---~--~~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups transfer-dev group. To post to this group, send email to transfer-dev@googlegroups.com To unsubscribe from this group, send email to transfer-dev-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en -~--~~~~--~~--~--~---
[transfer-dev] Re: Cache not updating
well, the Remote Proxy is using the same beanFactory that is defined as Application.beanFactory. i though about this too, the thing is, the one Object that works is using the same Remoty Proxy for its updates and there are no problems there. it's calling the same function to update its values as the other ones that don't work. On Jan 27, 2:12 pm, Matt Williams mgw...@gmail.com wrote: It sounds like somehow when you get the transfer bean that you are saving it is not pulling the cached version. How do you get that bean and populate it? The Remote Proxy could be the issue if it is somehow getting setup with a different instance of Transfer. Matt Williams On Jan 27, 8:04 am, Chris H 3darkli...@gmail.com wrote: there are no caching options set in the transfer config, so they're the defaults. the cache updates correctly for 1-2 of the objects, but not for most of the others. if it helps, i'm updating via Ajax with a Remote Proxy that was generated with ColdSpring. But this works fine for one of the objects, so that can't be it. What could be a cause for this if the database is updated fine but after a reload of the page the old values are still displayed? thanks! On Jan 27, 1:51 pm, Chris Peterson overrid...@gmail.com wrote: sounds like you have your cache in perhaps 2 different spots, or the save is happening under a different application name? Care to post the cache portion of your transfer config? Chris Peterson On Tue, Jan 27, 2009 at 7:30 AM, Chris H 3darkli...@gmail.com wrote: Hey, this is my first full application i'm doing with Transfer and i'm having a problem with the cache. Most cached objects don't get updated on save(), but the changes are visible in the database. Only when I do an ?init=true (which reinits Model-Glue ColdSpring) are the TransferObjects updated. any ideas? thanks in advance! -- Hey! I dont tell you how to tell me what to do, so dont tell me how to do what you tell me to do! ~ Bender (Futurama) --~--~-~--~~~---~--~~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups transfer-dev group. To post to this group, send email to transfer-dev@googlegroups.com To unsubscribe from this group, send email to transfer-dev-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en -~--~~~~--~~--~--~---
[transfer-dev] Re: Cache not updating
thanks anyway man! i'm at a dead-end and this is a production site that should go online soon, so any help/suggestions would be welcome. Mark, anyone? ;D On Jan 27, 3:34 pm, jonathanburnham jonathanburn...@gmail.com wrote: I can't speak to that. I haven't yet started using the Transfer cache. On Tue, Jan 27, 2009 at 9:26 AM, Chris H 3darkli...@gmail.com wrote: i tried it with Application.objvarname.setProperty()... but no go. should i try setting the cache options in the transfer config file to a different scope? On Jan 27, 2:59 pm, jonathanburnham jonathanburn...@gmail.com wrote: scope your vars by adding the scope in dot notation. So when you update your object, instead of objvarname.setProperty()use scope.objvarname.setProperty() On Tue, Jan 27, 2009 at 8:56 AM, Chris H 3darkli...@gmail.com wrote: jonathanburnham: i'm guessing that is it. so how would i go about always using the same scope? On Jan 27, 2:51 pm, jonathanburnham jonathanburn...@gmail.com wrote: Is it possible the object exists in two different scopes? Maybe the object that is updating the database is in request, and what is generating your output is in a persistant scope? On Tue, Jan 27, 2009 at 8:43 AM, Chris H 3darkli...@gmail.com wrote: well, the Remote Proxy is using the same beanFactory that is defined as Application.beanFactory. i though about this too, the thing is, the one Object that works is using the same Remoty Proxy for its updates and there are no problems there. it's calling the same function to update its values as the other ones that don't work. On Jan 27, 2:12 pm, Matt Williams mgw...@gmail.com wrote: It sounds like somehow when you get the transfer bean that you are saving it is not pulling the cached version. How do you get that bean and populate it? The Remote Proxy could be the issue if it is somehow getting setup with a different instance of Transfer. Matt Williams On Jan 27, 8:04 am, Chris H 3darkli...@gmail.com wrote: there are no caching options set in the transfer config, so they're the defaults. the cache updates correctly for 1-2 of the objects, but not for most of the others. if it helps, i'm updating via Ajax with a Remote Proxy that was generated with ColdSpring. But this works fine for one of the objects, so that can't be it. What could be a cause for this if the database is updated fine but after a reload of the page the old values are still displayed? thanks! On Jan 27, 1:51 pm, Chris Peterson overrid...@gmail.com wrote: sounds like you have your cache in perhaps 2 different spots, or the save is happening under a different application name? Care to post the cache portion of your transfer config? Chris Peterson On Tue, Jan 27, 2009 at 7:30 AM, Chris H 3darkli...@gmail.com wrote: Hey, this is my first full application i'm doing with Transfer and i'm having a problem with the cache. Most cached objects don't get updated on save(), but the changes are visible in the database. Only when I do an ?init=true (which reinits Model-Glue ColdSpring) are the TransferObjects updated. any ideas? thanks in advance! -- Hey! I dont tell you how to tell me what to do, so dont tell me how to do what you tell me to do! ~ Bender (Futurama) --~--~-~--~~~---~--~~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups transfer-dev group. To post to this group, send email to transfer-dev@googlegroups.com To unsubscribe from this group, send email to transfer-dev-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en -~--~~~~--~~--~--~---
[transfer-dev] Re: Cache not updating
there's nothing to debug really (though i do with Firebug). changing data via the Remote Proxy/Ajax works fine and the database is updated, but when i reload the page, the old data is displayed. if i do an ? init=true i see the correct data. so i'm lost on how to tell Transfer, without doing an init for every request, how to update the cache =D On Jan 27, 4:46 pm, John Whish john.wh...@googlemail.com wrote: Are you using ColdFire to debug?http://coldfire.riaforge.org/blog/index.cfm/2009/1/25/ColdFire-13172172 --~--~-~--~~~---~--~~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups transfer-dev group. To post to this group, send email to transfer-dev@googlegroups.com To unsubscribe from this group, send email to transfer-dev-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en -~--~~~~--~~--~--~---
[transfer-dev] Re: Cache not updating
thanks for your replies! i'm only defining Transfer once in ColdSpring.xml: bean id=TransferFactory class=transfer.TransferFactory constructor-arg name=datasourcePathvalue/config/ TransferDatasource.xml.cfm/value/constructor-arg constructor-arg name=configPathvalue/config/Transfer.xml.cfm/ value/constructor-arg constructor-arg name=definitionPathvalue/model/TransferData/ value/constructor-arg /bean bean id=Transfer class=transfer.com.Transfer factory- bean=transferFactory factory-method=getTransfer / could it be a ColdSpring problem? what confuses me is that it works for one Object via Remote Proxy/Ajax calls, but not for the others. On Jan 27, 4:53 pm, Chris H 3darkli...@gmail.com wrote: there's nothing to debug really (though i do with Firebug). changing data via the Remote Proxy/Ajax works fine and the database is updated, but when i reload the page, the old data is displayed. if i do an ? init=true i see the correct data. so i'm lost on how to tell Transfer, without doing an init for every request, how to update the cache =D On Jan 27, 4:46 pm, John Whish john.wh...@googlemail.com wrote: Are you using ColdFire to debug?http://coldfire.riaforge.org/blog/index.cfm/2009/1/25/ColdFire-13172172 --~--~-~--~~~---~--~~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups transfer-dev group. To post to this group, send email to transfer-dev@googlegroups.com To unsubscribe from this group, send email to transfer-dev-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en -~--~~~~--~~--~--~---
[transfer-dev] Re: Cache not updating
Well, there is just one bean with all the remote methods that's injected all the external beans it needs. those external beans all extend an AbstractGateway with a generic update function. which is why i'm confused, because the object that works is calling the same thing generic update function as the others that don't. here are the procedures that function calls: cfset var UpdateTO = get( TransferClassName = Arguments.TransferClassName, ID = Arguments.ID ) cfinvoke component=#UpdateTO# method=set#Arguments.Field# cfinvokeargument name=#Arguments.Field# value=#Arguments.Value# /cfinvoke cfset getTransfer().save( UpdateTO ) thanks for your time Chris! On Jan 27, 5:21 pm, Chris Peterson overrid...@gmail.com wrote: can you paste the config in coldspring.xml for a non-working remote method, and a working one, then paste the contents of a non-working service call (that fails to persist) and the one that persists properly? Chris On Tue, Jan 27, 2009 at 11:19 AM, Chris H 3darkli...@gmail.com wrote: damn, now i was thinking this must be it, a simple change and all should be good, but still no go. argh! On Jan 27, 5:12 pm, Chris Peterson overrid...@gmail.com wrote: add singleton=true to your transfer config perhaps? =) Chris On Tue, Jan 27, 2009 at 10:56 AM, Chris H 3darkli...@gmail.com wrote: thanks for your replies! i'm only defining Transfer once in ColdSpring.xml: bean id=TransferFactory class=transfer.TransferFactory constructor-arg name=datasourcePathvalue/config/ TransferDatasource.xml.cfm/value/constructor-arg constructor-arg name=configPathvalue/config/Transfer.xml.cfm/ value/constructor-arg constructor-arg name=definitionPathvalue/model/TransferData/ value/constructor-arg /bean bean id=Transfer class=transfer.com.Transfer factory- bean=transferFactory factory-method=getTransfer / could it be a ColdSpring problem? what confuses me is that it works for one Object via Remote Proxy/Ajax calls, but not for the others. On Jan 27, 4:53 pm, Chris H 3darkli...@gmail.com wrote: there's nothing to debug really (though i do with Firebug). changing data via the Remote Proxy/Ajax works fine and the database is updated, but when i reload the page, the old data is displayed. if i do an ? init=true i see the correct data. so i'm lost on how to tell Transfer, without doing an init for every request, how to update the cache =D On Jan 27, 4:46 pm, John Whish john.wh...@googlemail.com wrote: Are you using ColdFire to debug? http://coldfire.riaforge.org/blog/index.cfm/2009/1/25/ColdFire-13172172 -- Hey! I dont tell you how to tell me what to do, so dont tell me how to do what you tell me to do! ~ Bender (Futurama) -- Hey! I dont tell you how to tell me what to do, so dont tell me how to do what you tell me to do! ~ Bender (Futurama) --~--~-~--~~~---~--~~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups transfer-dev group. To post to this group, send email to transfer-dev@googlegroups.com To unsubscribe from this group, send email to transfer-dev-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en -~--~~~~--~~--~--~---
[transfer-dev] readByProperty and readByPropertyMap always returning new object
just getting into Transfer and i'm running into my first problem: this works just fine: cfset Local.UserTO = Transfer.get( User, 1 ) and it returns a record with Username = Admin but both of these will always return a new(empty) TO even though the properties are all correct. any ideas? cfset Local.UserTO = Transfer.readByProperty( User, Username, Admin ) cfset Local.PropertyMap.Username = Admin cfset Local.UserTO = Transfer.readByPropertyMap( User, Local.PropertyMap ) thanks in advance! --~--~-~--~~~---~--~~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups transfer-dev group. To post to this group, send email to transfer-dev@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en -~--~~~~--~~--~--~---