New Version of Illudium Code Generator - Generate All Tables At Once
Yes, you read that right; there is indeed a new version (Build 13 ) of my Illudium PU-36 Code Generator available on the Google Code site (http://code.google.com/p/cfcgenerator). I have finally
implemented one of the most requested features - the ability to
automatically generate all tables in a DSN at once. However, I made it
better and more usable I think.
First of all, for anyone who has
heard me talk about how I was working on rewriting the whole
application for the next release, that didn't happen. As most of you
know, there hasn't been a release in about 8 months and that overly
ambitious goal is in large part why. I haven't given up on that goal as
I think it is still necessary, but I decided to implement this feature
using the existing codebase as I have some very different ideas for
future versions.
Generate All Tables for a DSN
In order to generate all tables
for a DSN, you first need to choose a save location (be careful what
you choose though as this feature will automatically begin saving files
to the chosen location when you click generate). After choosing a save
location, you can check the "Generate All Tables Same Settings?"
option. When this is chosen, it will first automatically save the files
for the selected table to the save location.
Next it will open a
small dialog showing the next table on the list and a text box with a
new path name which automatically replaces the last item in the prior
path with the current table name. You can use the default new path or
change the path to whatever you like. This allows you to run through
all the tables without needing to save all items into the same
directory for instance.
You can choose to cancel the process
which will stop processing all remaining tables or you can skip any
particular table you don't want to export. As you click submit through
all the tables, they will be automatically saved with all the
previously settings to the path you specify.
Hopefully all you
folks who emailed me about this feature will be happy (and if you love
Illudium and it saves you time, feel free to visit my wishlist).
I also plan on adding the "save all" for the currently generated table
but I have to modify the current layout to accomodate the button
somewhere. It's coming...hopefully soon. Feel free to comment or email
me if you encounter any issues with the new feature.
This is awesome... May I just add something?
Would it be too difficult to implement the ability to define the save path for each file in the template in either the YAC or the actual generator (perhaps in the new and slick popup)?
This is simply because the Services, DAOs, Gateways and Config.xml's may not all be in the same location and would need a different returntype...
Again, thank you for your time and effort to help out the community.
--
Jorge Loyo
You are right, I do see the returntype changing for all files accordingly, however, this is what i meant:
I have in my yac.xml a service, bean and gateway/dao and these files I actually save on a different location.
I save my user.cfc, userGateway.cfc and userDAO.cfc in the following location:
myapp/model/user/
But I save my userService.cfc in the following location:
myapp/services/
and my config files (coldspring.xml, mach-ii.xml, etc) in the follwing location:
myapp/config
Is this possible now? Sorry if I missed it.
Again thank you for this awesome tool
Thanks,
Nathan
P.S. I really do like this and hope I can use it at work.
