[Lift] Re: JPA w/Scala

2008-09-08 Thread Tim Perrett
Just been doing some more debugging on this - it appears that the correct values are being passed through and are assigned to an entity instance, but they blow up when trying to do the em.merge(author) call. The stack trace I get is: ### AUTHOR [EMAIL PROTECTED] ### AUTHOR ID 0 ### AUTHOR NAME

[Lift] Re: JPA w/Scala

2008-09-08 Thread Oliver Lambert
You know I always forget those long winded archetype creation commands and thinking about this I guess I would hope for something more. Something like specify a set of tables (and stuff) and have LiftBuilder go and create mappings, validation and default html for me. I haven't looked at it

[Lift] Re: Scripting and Maven scala plugin

2008-09-08 Thread Jesse Eichar
Hi, I sent you an email to your gmail account did you get it? It has the patch oh. I will try to find the maven-scala mailing list Jesse On Sep 6, 7:16 pm, David Bernard [EMAIL PROTECTED] wrote: I don't known, but now I could access the site. You're goal is a great extension, and need to up

[Lift] Re: Missing Scala class?

2008-09-08 Thread Jorge Ortiz
What version of Lift and what version of Scala are you using? (The version of Scala that you use must match the version of Scala that was used to compile your version of Lift.) --j On Mon, Sep 8, 2008 at 10:37 AM, Kris Nuttycombe [EMAIL PROTECTED] wrote: Hi, all, I'm not sure whether this

[Lift] Re: JPA w/Scala

2008-09-08 Thread Oliver Lambert
I think sql server uses @GeneratedValue(strategy=GenerationType.IDENTITY) You could try this instead of GenerationType.AUTO (though this should translate to the above) Oliver On 09/09/2008, at 12:43 AM, Tim Perrett wrote: Hmmm, I've tried: @Id @GeneratedValue(){val strategy =

[Lift] Re: JPA w/Scala

2008-09-08 Thread Oliver Lambert
or, you could try @GeneratedValue(strategy = GenerationType.AUTO, generator = system-guid) @GenericGenerator(name = system-guid, strategy = guid) with or without the Microsoft driver property name=driverClassName

[Lift] Re: JPA w/Scala

2008-09-08 Thread Tim Perrett
Hey all, Very strange, I re-wrote the classes in Java and I still see the same issue!!! What on earth could be going on here? I tried calling persist rather than merge, but it appeared to have no impact. Cheers Tim --~--~-~--~~~---~--~~ You received this

[Lift] Re: One further: JPA + JTA + Lift

2008-09-08 Thread Oliver
It looks a little like the RequestVar has had its lifecycle closing hook called by the time you call getSubscriptions Try touch/get the subscriptions before you pass them into the bind. cheers Oliver On Tue, Sep 9, 2008 at 7:31 AM, Kris Nuttycombe [EMAIL PROTECTED]wrote: I've been following

[Lift] Re: JPA w/Scala

2008-09-08 Thread Oliver
Doesn't look right. The id is the primary key - it could now be inserted with a value of 100, always. I can do an insert here with @Id @GeneratedValue(){val strategy = GenerationType.AUTO} Still works without GeneratedValue being present. My pom dependencies are dependency

[Lift] Maven Issue

2008-09-08 Thread lloy0076
Hi There, I'm following the instructions here: http://liftweb.net/index.php/HowTo_start_a_new_liftwebapp ...and I can build the liftone application. However...when I do this: ^Cbash-3.00$ mvn jetty:run -U