Hi, On Tue, Apr 14, 2009 at 11:35 PM, Derek Chen-Becker <dchenbec...@gmail.com> wrote: > Hmmm. I wonder if the following would work: > > Model.createQuery[Author]("from Author a where a.id = > :id").setParameter("id", id).findOne > > If that works it would be more efficient since you would be doing the filter > on id in the query instead of after pulling the whole table :)
Yes, "select from net.liftweb.example.model.Authora where a.id = :id" works well; I mean that, without "select", " java.lang.IllegalArgumentException: JPQL Query should always start with SELECT/UPDATE/DELETE" will be thrown, and in current GAE/J system the class name must be fully qualified. And also, I don't know the reason, but Model.find works fine now ;-( Sincerely, -- Atsuhiko Yamanaka JCraft,Inc. 1-14-20 HONCHO AOBA-KU, SENDAI, MIYAGI 980-0014 Japan. Tel +81-22-723-2150 +1-415-578-3454 Fax +81-22-224-8773 Skype callto://jcraft/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---