Autogenerating CommerceBuilder Source Code using ORM
Posted: Wed Aug 20, 2008 12:20 pm
My company has purchased AbleCommerce7 and the CommerceBuilder source code. Our particular use case is somewhat different than traditional eCommerce, and requires that we modify the AC7 database and CommerceBuilder source.
It looks like the existing CommerceBuilder source was autogenerated, at least in part, by an Object Relational Mapping (ORM) tool (my guess is CodeSmith, but I'm not sure). This technique dramatically reduces errors, and provides a common data access pattern.
We have added a number of fields to the database schema. So far, we have manually added support for these fields to CommerceBuilder by copying and modifying similar code. This has worked OK so far, but it is slow and prone to errors.
We would like to migrate to an automated technique for creating the data access code. What is the best way to do this? The most convenient thing would probably be to get our hands on the script that AbleCommerce uses to autogen the CommerceBuilder source. My guess, though, is that this script is proprietary, and you aren't eager to give it out. What, then, do you suggest we do?
-Thanks,
J
It looks like the existing CommerceBuilder source was autogenerated, at least in part, by an Object Relational Mapping (ORM) tool (my guess is CodeSmith, but I'm not sure). This technique dramatically reduces errors, and provides a common data access pattern.
We have added a number of fields to the database schema. So far, we have manually added support for these fields to CommerceBuilder by copying and modifying similar code. This has worked OK so far, but it is slow and prone to errors.
We would like to migrate to an automated technique for creating the data access code. What is the best way to do this? The most convenient thing would probably be to get our hands on the script that AbleCommerce uses to autogen the CommerceBuilder source. My guess, though, is that this script is proprietary, and you aren't eager to give it out. What, then, do you suggest we do?
-Thanks,
J