[Lift] Re: 1.1-SNAPSHOT and Snippet problems?

2009-10-04 Thread Thomas Rampelberg
Anyways, I was definitely screwed up ... forcing maven to actually do what it was supposed to fixed my problem. Thanks for the pointer Marius. ~Thomas On Sat, Oct 3, 2009 at 5:39 PM, Thomas Rampelberg pyronic...@gmail.com wrote: I thought that I'd just updated all the versions . from

[Lift] Re: MappedStringForeignKey and Schemifier

2009-10-03 Thread Thomas Rampelberg
I had some issues getting string foreign keys working that required changes to MetaMapper (because of how it handles autogenerated primary keys). That said, Here's some code that'll fix the issue you're currently having: class StringForeignKey[T:Mapper[T],O:KeyedMapper[String, O]]( override

[Lift] 1.1-SNAPSHOT and Snippet problems?

2009-10-03 Thread Thomas Rampelberg
I just synced up to main this morning and now whenever I try and use one of my snippets, I'm getting the traceback below. Any hints on what I'm doing wrong? The snippet in question is just the basic Util.in/Util.out that the tutorial has you write. div class=column span-17 last

[Lift] Re: 1.1-SNAPSHOT and Snippet problems?

2009-10-03 Thread Thomas Rampelberg
? Br's, Marius On Oct 3, 11:11 pm, Thomas Rampelberg pyronic...@gmail.com wrote: I just synced up to main this morning and now whenever I try and use one of my snippets, I'm getting the traceback below. Any hints on what I'm doing wrong? The snippet in question is just the basic Util.in

[Lift] Re: XML - JSON converter?

2009-09-25 Thread Thomas Rampelberg
This is really great, making XML as easy to generate as JSON was something I thought I'd never see. On Fri, Sep 25, 2009 at 7:27 AM, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Sep 25, 2009 at 6:19 AM, Timothy Perrett timo...@getintheloop.eu wrote: Sorry Dave, but the brevity

[Lift] Re: Struggling with mapping a list of objects

2009-09-24 Thread Thomas Rampelberg
I'd suggest a one to many relationship with a foreign key. For something off the top of my head (no guarantees this'll actually work): class Person extends LongKeyedMapper[Person] with IdPK { def getSingleton = Person object skills extends MappedOneToMany(Skills, Skills.person) with

[Lift] Re: Struggling with mapping a list of objects

2009-09-24 Thread Thomas Rampelberg
You can do this with Mapper using a ManyToMany relationship. To make sure we're talking about the same thing, let me try and explain. With ManyToMany, you can do both Person.find(By(Person.name, name)).map(_.skills) as well as Skills.find(By(Skill.description, description)).map(_.people) and get

[Lift] Re: Mapping a read only db view with mapper.

2009-09-24 Thread Thomas Rampelberg
You can .. override def writePermission_? = false (On a per-field basis) On Thu, Sep 24, 2009 at 2:52 PM, andythedestroyer andythedestro...@gmail.com wrote: This may be obvious but I am having trouble setting this up. I need to map a database view which isn't a problem because I just

[Lift] Re: Mapping a read only db view with mapper.

2009-09-24 Thread Thomas Rampelberg
David, just to make sure that I know what I'm talking about, if you set writePermission_? to false for each field, you could emulate the behavior? On Thu, Sep 24, 2009 at 4:41 PM, David Pollak feeder.of.the.be...@gmail.com wrote: There's no read-only support for tables in mapper at this time. 

[Lift] Re: Autogenerated PKs and MetaMapper

2009-09-23 Thread Thomas Rampelberg
-optimal.  There have been a couple of discussions of the issues on-list.  I am hoping to spend some time on this issue on Thursday.  If you've got specific requirements or specific tests, please post them. Thanks, David On Mon, Sep 21, 2009 at 9:33 PM, Thomas Rampelberg pyronic...@gmail.com