Re: [Lift] Re: QueryParams and joins

2010-01-06 Thread Timothy Perrett
Remove the lift-core dependency and separately specify lift-webkit, lift-common and lift-util. That should resolve your issue... its probally a problem with the transitive dependencies in maven. Cheers, Tim On 5 Jan 2010, at 22:17, Ross Mellgren wrote: It looks like you probably have some

[Lift] Re: QueryParams and joins

2010-01-06 Thread Mads Hartmann
How would that dependency tag look? Right now it looks like this: dependency groupIdnet.liftweb/groupId artifactIdlift-core/artifactId version1.1-M8/version /dependency On Jan 6, 10:06 am, Timothy Perrett timo...@getintheloop.eu wrote: Remove the lift-core dependency and

Re: [Lift] Re: QueryParams and joins

2010-01-06 Thread Indrajit Raychaudhuri
Mads, Since you are using mapper, having dependency on lift-mapper should suffice. Other dependencies would be pulled in transitively. So having this dependency tag should do. dependency groupIdnet.liftweb/groupId artifactIdlift-mapper/artifactId version1.1-M8/version /dependency

[Lift] Re: QueryParams and joins

2010-01-06 Thread Mads Hartmann
Again, I really appreciate you guys helping me out :) @Indrajit I just tried with the dependency you declared as the only lift related dependency. I get the following error. dependency groupIdnet.liftweb/groupId artifactIdlift-mapper/artifactId version1.1-M8/version /dependency [INFO]

Re: [Lift] Re: QueryParams and joins

2010-01-06 Thread Indrajit Raychaudhuri
Mads, Can you please send me the pom.xml? Cheers, Indrajit On 06/01/10 4:50 PM, Mads Hartmann wrote: Again, I really appreciate you guys helping me out :) @Indrajit I just tried with the dependency you declared as the only lift related dependency. I get the following error. dependency

[Lift] Re: QueryParams and joins

2010-01-06 Thread Mads Hartmann
Sure thing, here it is: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http:// www.w3.org/2001/XMLSchema-instance xsi:schemaLocation=http:// maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdscalableKvidr/groupId

Re: [Lift] Re: QueryParams and joins

2010-01-06 Thread Jeppe Nejsum Madsen
Mads Hartmann mads...@gmail.com writes: Again, I really appreciate you guys helping me out :) @Indrajit I just tried with the dependency you declared as the only lift related dependency. I get the following error. dependency groupIdnet.liftweb/groupId artifactIdlift-mapper/artifactId

[Lift] Re: QueryParams and joins

2010-01-06 Thread Mads Hartmann
Aha! It almost compiles now. There's just one last error: [INFO] Compiling 8 source files to /Users/Mads/Projects/scalableKvidr2/ target/classes at 1262780161026 [ERROR] /Users/Mads/Projects/scalableKvidr2/src/main/scala/bootstrap/ liftweb/Boot.scala:61: error: type mismatch; [INFO] found :

Re: [Lift] Re: QueryParams and joins

2010-01-06 Thread Indrajit Raychaudhuri
Ok, few points: 1. Full, Box etc. have a different package location now. Ensure import net.liftweb.common._ wherever you have Full, Box etc. 2. scala.version should be 2.7.7 scala.version2.7.7/scala.version 3. scala-library dependency is redundant. You can remove that. 4. This shouldn't

[Lift] Re: QueryParams and joins

2010-01-06 Thread Mads Hartmann
And the boot file looks like this: package bootstrap.liftweb import _root_.net.liftweb.util._ import _root_.net.liftweb.http._ import _root_.net.liftweb.sitemap._ import _root_.net.liftweb.sitemap.Loc._ import Helpers._ import _root_.net.liftweb.mapper.{DB, ConnectionManager, Schemifier,

[Lift] Re: QueryParams and joins

2010-01-06 Thread Mads Hartmann
@Indrajit Raychaudhuri, I've applied your changes On Jan 6, 1:22 pm, Mads Hartmann mads...@gmail.com wrote: And the boot file looks like this: package bootstrap.liftweb import _root_.net.liftweb.util._ import _root_.net.liftweb.http._ import _root_.net.liftweb.sitemap._ import

[Lift] Re: QueryParams and joins

2010-01-06 Thread Mads Hartmann
It compiles and works now! :) Thanks a lot for your help everyone On Jan 6, 1:29 pm, Mads Hartmann mads...@gmail.com wrote: @Indrajit Raychaudhuri, I've applied your changes On Jan 6, 1:22 pm, Mads Hartmann mads...@gmail.com wrote: And the boot file looks like this: package

Re: [Lift] Re: QueryParams and joins

2010-01-05 Thread David Pollak
Lift uses the SQL IN statement rather than joins. This has a negative impact for users of MySQL and Derby. Try: TagUser.findAll(By(TagUser.tag, this), In(TagUser.user, User.id, OrderBy(User.followers_count, Descending), MaxRows[User](10))) On Mon, Jan 4, 2010 at 11:10 PM, Mads Hartmann

[Lift] Re: QueryParams and joins

2010-01-05 Thread Mads Hartmann
Sure thing, it's quite long though :) Just one thing, i added the following for it to compile (I want to return List[User] not List[TagUser] : .map(_.user.obj.open_!) So in all it looks like this def getTopUsers(in: Int) :List[User] = { TagUser.findAll(By(TagUser.tag, this.id),

[Lift] Re: QueryParams and joins

2010-01-05 Thread Mads Hartmann
I've got this in my pom.xml dependency groupIdnet.liftweb/groupId artifactIdlift-core/artifactId version1.0/version /dependency On Jan 5, 8:54 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Jan 5, 2010 at 11:51 AM, Mads Hartmann mads...@gmail.com wrote:

Re: [Lift] Re: QueryParams and joins

2010-01-05 Thread David Pollak
On Tue, Jan 5, 2010 at 12:10 PM, Mads Hartmann mads...@gmail.com wrote: I've got this in my pom.xml dependency groupIdnet.liftweb/groupId artifactIdlift-core/artifactId version1.0/version /dependency Ah hah! I'd strongly recommend you upgrade to Lift 1.1-M8. It's

Re: [Lift] Re: QueryParams and joins

2010-01-05 Thread Ross Mellgren
It looks like you probably have some other dependencies somewhere or old jars pointing to the old lift version. Please first try mvn clean jetty:run, and if that doesn't work, run mvn dependency:tree to try and find where the other version of lift- webkit is coming from. If you're still

[Lift] Re: QueryParams and joins

2010-01-04 Thread Mads Hartmann
My ultimate goal would be to only pull out the top x users. I'm currently using the following code to achieve this: TagUser.findAll(By(TagUser.tag, this.id)).map(_.user.obj.open_!) .sort(_.followers_count.is _.followers_count.is) .take(x) But im concerned that this creates