1 Dec 2011 01:04
Re: Some comments/suggestions from a new user
On Wed, Nov 30, 2011 at 7:33 AM, Tim <tim.ringenbach@...> wrote: > Hi all, > > I was a little bit confused by references to Hamlet and Persistent > being their own projects. I googled to see if their had their own > sites or separate documentation, but that just let me back to the > yesod website. They have their own packages and are decoupled. They can and are used separately from Yesod. > The Persistent section of the Yesod book leaves me with some > questions. Some other frameworks talk about convention over > configuration. They typically have these Model classes which > assumptions like the table name is the class name in lowercase, and > all of the fields are columns, but usually let you override these > defaults by setting special properties. Often there's a tool to > reverse engineer an existing schema and generate model classes for an > existing database, as well as doing the opposite (generating the > database from model classes, which is usually encourage over the other > direction). > > Persistent seems like it might be Convention Only, with no way to > override table or column names. I'm not sure if that's true or not, or > if that's a design decision or just a "someday" feature, I don't think > the book told me. Person sql=the-person-table firstName String sql=first_name lastName String sql=fldLastName(Continue reading)
RSS Feed