[Lift] Newbie Question design pattern for ORM in Lift

2009-08-27 Thread rstradling
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 auto-generated I would prefer not to edit them directly and provide additional functionality via inheritance. Say I

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

2009-08-27 Thread rstradling
to the full grammar (at least that was my intent :).. On Aug 27, 1:09 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: 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

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

2009-08-27 Thread rstradling
to this thread with the location. On Aug 27, 1:35 pm, David Pollak feeder.of.the.be...@gmail.com wrote: 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

[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

[Lift] Re: Mapper subclasses

2009-09-08 Thread rstradling
I am trying to do what is mentioned below but am struggling with the object side of things for my particular case. This all relates back to trying to auto-generate some classes that I posted back a while ago on. I would love to generate 1 file that has the trait and the object in it that I then

[Lift] Testing snippets that depend on a user logged in

2009-10-01 Thread rstradling
I have a class called class Trainer { def showPeople(xhtml : Group) : NodeSeq = { val user : User = User.currentUser.open_! ... } } I then want to write a unit test to test that returns proper xml. The test is written as so def testValue() = { val xml = xml:group

[Lift] Re: Testing snippets that depend on a user logged in

2009-10-01 Thread rstradling
in {       ... do testing here     }   } } Hope this helps. On Thu, Oct 1, 2009 at 8:55 AM, rstradling ryanstradl...@gmail.com wrote: I have a class called class Trainer {   def showPeople(xhtml : Group) : NodeSeq = {      val user : User = User.currentUser.open_

[Lift] Re: Testing snippets that depend on a user logged in

2009-10-02 Thread rstradling
to your wiki page: http://wiki.github.com/dpp/liftweb/how-to-unit-test-lift-snippets-wit... Eric you may want to add a specs version. Bill On Thu, Oct 1, 2009 at 3:03 PM, rstradling ryanstradl...@gmail.com wrote: Awesome!!! Thanks guys for the help.  It now works. I put a how-to wiki

[Lift] Bind with a map collection

2009-10-06 Thread rstradling
Hello everyone, I have the following code... case class item(name : String) class demo { def exampleFour(xhtml : NodeSeq) : NodeSeq = { val map = Map(Test - List(item(1), item(2), item(3)), Vehicles - List(item(Bike), item(Automobile)) ) val articles = List(

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-19 Thread rstradling
Take my input or vote of confidence with a grain of salt... I had to use java.util.Calendar recently and noticed some of the issues with it that you mention. For my case, I created a light wrapper for my use of java.util.Calendar that redefined the relevant statics (Monday, Tuesday, etc) as