IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Okay, we don't typically do that
That's more of an OR layer between the apps and the db. Our objects typically depend on a unique identifier being passed in to the constructor. If the object doesn't alreayd exist (in the db) the app first has to call a static method in a separate library file to create the record in the db and return the id. Then the id can be used to create the object.

We've got a bad history of badly-written classes that can be used both for pre-existing records and for creating new ones. To start using the business objects as an OR layer would require cleaning up a lot more code first. Like the fact that probably over half our pages still have direct db access. I'd like to fix that mess before worring about an OR layer.
===

Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats].
[link|http://DocHope.com|http://DocHope.com]
New It's not an OR layer.
How the class gets loaded from the database is immaterial. The validation is separate from that load, which is entirely the point.
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New Not what you said / I heard
You said the data may come from the db, or it may come from somewhere else. I was about to say that if the data didn't come out of the db then it must be a new record, until I remembered a report I did where there's a single select to get all the data. For each row of the results I create an object by passing in all the data, so that I can then use the output formatting methods of the object.

Hmm, I've been preaching lately that our object constructors should be more lightweight, only hitting the db as much as we need to for the current operation. (Our worst case is an object that has at least six different init methods depending on which data you're working with, and someone decided it would be easier to just call all of them in the constructor.)
===

Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats].
[link|http://DocHope.com|http://DocHope.com]
New You missed one.
It could come from the database for display, it could come from a "new item" form, or it could come from an edit form.
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
     Question on the java Spring tutorial - (drewk) - (7)
         That's just the command object. - (admin) - (6)
             So is PriceIncrease.java part of model, view or controller? - (drewk) - (5)
                 The reason for the validators - (admin) - (4)
                     Okay, we don't typically do that - (drewk) - (3)
                         It's not an OR layer. - (admin) - (2)
                             Not what you said / I heard - (drewk) - (1)
                                 You missed one. - (admin)

5 out of 7, perfect.
67 ms