[Lift] Re: Newbie Question design pattern for ORM in Lift

2009-08-29 Thread David Pollak
On Thu, Aug 27, 2009 at 10:26 AM, rstradling ryanstradl...@gmail.comwrote: With a parser combinator I wrote to parse .sql and it outputs scala orm files. Care to share? That'd be a pretty darned useful utility! Please note it is very specific to my needs (i.e. only works with certain

[Lift] Re: Newbie Question design pattern for ORM in Lift

2009-08-28 Thread Bjarte Stien Karlsen
That looks very cool from a first glance. mvh Bjarte On Fri, Aug 28, 2009 at 5:04 AM, rstradlingryanstradl...@gmail.com wrote: git clone git://github.com/rstradling/DDLtoLiftORM.git  is the location of the git code. http://github.com/rstradling/DDLtoLiftORM is the web address I hope this

[Lift] Re: Newbie Question design pattern for ORM in Lift

2009-08-27 Thread rstradling
With a parser combinator I wrote to parse .sql and it outputs scala orm files. Please note it is very specific to my needs (i.e. only works with certain grammars (INSERTS) but that particular grammar is all I needed to process at the time) but is written in a way that could be extended to the

[Lift] Re: Newbie Question design pattern for ORM in Lift

2009-08-27 Thread rstradling
Thanks for the answers everyone. What David hit upon about wanting objects to be subclassible is the conclusion I came to that would work..if it existed. I was hoping there was a way. :(. Well, I guess Naftoli has provided a possible solution but seems more involved than I have the experience

[Lift] Re: Newbie Question design pattern for ORM in Lift

2009-08-27 Thread Naftoli Gugenheim
How do you auto-generate them? On Thu, Aug 27, 2009 at 1:03 PM, rstradling ryanstradl...@gmail.com wrote: I am using Lift 1.0 with the Mapper ORM module from Lift. I am a newbie to Scala and Lift. I have auto-generated my ORM classes from a .sql file. Given that these classes are

[Lift] Re: Newbie Question design pattern for ORM in Lift

2009-08-27 Thread rstradling
git clone git://github.com/rstradling/DDLtoLiftORM.git is the location of the git code. http://github.com/rstradling/DDLtoLiftORM is the web address I hope this is helpful to others. On Aug 27, 3:13 pm, rstradling ryanstradl...@gmail.com wrote: Thanks for the answers everyone.  What David