Following Up On My Bean Confusion

Posted By : todd sharp Posted At : February 25, 2007 4:54 PM Posted In: Model-Glue, Project Learn, OO

1

A few follow-ups from yesterday's post. First off, Brian noted that his generator will recognize char(35), assume a UUID and generate the code accordingly. This worked perfectly and is definitely appropriate as Brian pointed out to me because since UUID's are fixed length and do not require unicode support.

Another error on my part in that post was pointing out that MG is stricter with datatypes then CF. This is not true. I was passing the entire userBean to the saveuser() function in my service when all I really needed was to pass the fields themselves (which I accomplished by using the beans getMemento() function) as an argument collection. I'm assuming that is an appropriate use of that function since it returns a struct containing each value. Therefore Model-Glue was trying to evaluate my component as a string which obviously don't work ;)

Comments (1)

Coz's Gravatar Thanx for sharing your experiences. I am am also in the process of going OO and am taking great interest in your blog. I learned CF (and programming for that mater) from Uncle Ben's WACK. I have no formal training in programming and am entirely self taught. I have pretty much taken procedural programming as far as it can be taken. And I am no slouch either. One of my clients sites have moved over a million units over the last 2 years.... but as the sites (d)evolve, maintenance is becoming a huge burden and I know that a solid framework could help immensely.