Page 1 of 1

Autogenerating CommerceBuilder Source Code using ORM

Posted: Wed Aug 20, 2008 12:20 pm
by mach7
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

Re: Autogenerating CommerceBuilder Source Code using ORM

Posted: Thu Sep 04, 2008 12:29 am
by mazhar
AbleCommerce used its own internal code generator for this purpose and it is not available/ready/built to be released publicly. I will suggest to continue working with the manual way as you are doing now. We may release the Code Generator in future but no promises...