StrataFrame Forum

is there a shortcut to creating all business objects at once

http://forum.strataframe.net/Topic13542.aspx

By Bo - 1/17/2008

First off, let me state that other than going thru the tutorials about 4 or 5 months ago, I am brand new to StrataFrame so please excuse my dumb questions.  BigGrin

So I'm building a Business object library and according to the help files you have to add a class to your project and then use the Business Object Mapper (BOM) to configure the class.  Is there a way to point the BOM to a database and have it create classes for all tables at once or do I have to do it one-by-one?  Thanks!

By Trent L. Taylor - 1/17/2008

Is there a way to point the BOM to a database and have it create classes for all tables at once or do I have to do it one-by-one?

At the moment you first have to manually create the BusinessObject class then map it.  We have had this request in the past, but the truth is that this generally isn't an issue when you start to work with your application because you are going to work with a limited number of BOs as you build your app...so build them all at once hasn't really hindered anyones development process to my knowledge.  Hope that makes sense Smile

By Bo - 1/17/2008

Thanks, but I'm lazy, me thinks its time to write a template in CodeSmith Smile
By Richard Keller - 1/18/2008

 When I started , I had the same feeling and wanting all of my DB tables mapped instantially, but as I went along I began to understand that each BO is unique in itself including ENUM mapping, Null handling, relationships, etc.   Each class should be looked at as an individual and programmed accordingly.   It works well as once you have done this you can almost forget about the class and use accordingly.  I especially love the ENUM side allowing for easy programming later.

Richard

By Trent L. Taylor - 1/18/2008

Thanks for yoru input, Richard....that is what I was trying to say! BigGrin