[Lift] Derby ij quickstart?
I added derby.drda.startNetworkServer=true to derby.settings as mentioned on http://liftweb.net/index.php/Cheat_Sheet, and I figured out to add the dependency for derbynet.jar in Maven. I can connect with DbVisualize and see various system tables, but I can't see any tables lift created. Not sure what the problem is, but I'd actually rather just connect with ij to take a quick peek. I can't quite get that working: java -cp derbytools-10.2.2.0.jar org.apache.derby.tools.ij ij version 10.2 ij connect 'jdbc:derby://localhost:1527/lift_example'; ERROR 08001: No suitable driver found for jdbc:derby://localhost:1527/lift_example Can someone point out what I'm doing wrong? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Query param for SQL like?
David, it works well for me. Thank you very much for your quick response and implementation! Joachim On 21 Nov., 20:06, David Pollak [EMAIL PROTECTED] wrote: I've just committed up a Like operator in Mapper. Please give it a try and let me know how it works. On Fri, Nov 21, 2008 at 8:02 AM, David Pollak [EMAIL PROTECTED] wrote: I'll try to add the feature this weekend. On Fri, Nov 21, 2008 at 7:19 AM, Joachim A. [EMAIL PROTECTED]wrote: Hi, I'm using 0.10-SNAPSHOT and it's mapper classes. Im wondering how I can do something like select * from Test t where t.name LIKE '%test%. I've found the classes QueryParam, OprEnum and Cmp. I've read in the source code but can't see a way to extend this mechanism wih new operators. I've also found BySql and InThing but I don't know what they do :) Can I do SQL's Like operator with the mapper classes? If yes, how? Thank you very much! Joachim -- Lift, the simply functional web frameworkhttp://liftweb.net Collaborative Task Managementhttp://much4.us Follow me:http://twitter.com/dpp Git some:http://github.com/dpp -- Lift, the simply functional web frameworkhttp://liftweb.net Collaborative Task Managementhttp://much4.us Follow me:http://twitter.com/dpp Git some:http://github.com/dpp --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Derby ij quickstart?
You also need to use the derbyclient.jar e.g. java -cp derbytools-10.2.2.0.jar:derbyclient-10.2.2.0.jar or use the derby-10.2.2.10.jar which includes all classes in a single .jar instead of the module .jars. alex On Sun, Nov 23, 2008 at 10:37 AM, David Stein [EMAIL PROTECTED] wrote: I added derby.drda.startNetworkServer=true to derby.settings as mentioned on http://liftweb.net/index.php/Cheat_Sheet, and I figured out to add the dependency for derbynet.jar in Maven. I can connect with DbVisualize and see various system tables, but I can't see any tables lift created. Not sure what the problem is, but I'd actually rather just connect with ij to take a quick peek. I can't quite get that working: java -cp derbytools-10.2.2.0.jar org.apache.derby.tools.ij ij version 10.2 ij connect 'jdbc:derby://localhost:1527/lift_example'; ERROR 08001: No suitable driver found for jdbc:derby://localhost:1527/lift_example Can someone point out what I'm doing wrong? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Derby ij quickstart?
On Sun, Nov 23, 2008 at 10:58 AM, Alex Boisvert [EMAIL PROTECTED] wrote: You also need to use the derbyclient.jar e.g. java -cp derbytools-10.2.2.0.jar:derbyclient-10.2.2.0.jar or use the derby-10.2.2.10.jar which includes all classes in a single .jar instead of the module .jars. alex Thanks. I added derbyclient and now it works. I also now see lift's tables in DbVisualize. I just wasn't familiar with Derby's schema and was looking in the wrong place. Didn't realize they'd be under APP. I don't see derbynet and derbyclient in derby-10.2.2.10.jar, but I'm good to go now. Thanks again. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Response file consolidation
Excellent It would be great to having a collection of REST response for xml, json, etc based on success failure etc On Nov 22, 2008 11:21 AM, Tim Perrett [EMAIL PROTECTED] wrote: Ok - i've done the re-factor and committed. On Nov 22, 7:03 pm, Marius [EMAIL PROTECTED] wrote: As long as FQCN remains the same, it ... --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] One-to-Many mappings with Lift ORM
Hi, I'm trying to learn some Scala and Lift, and I'm currently playing with the Lift mapper. I have however stumbled upon a problem for which I don't seem to be able to find answer from the examples or by using Google. How do you create one-to-many mapping with lift mapper? I have something like class Parent extends KeyedMapper[Long, Parent] { def getSingleton = Parent def primaryKeyField = id object id extends MappedLongIndex(this) } class Child extends KeyedMapper[Long, Child] { def getSingleton = Child def primaryKeyField = id object id extends MappedLongIndex(this) object parent extends MappedLongForeignKey(this, Parent) } What do I need to do so that I could do something like parent.children.map(...) Only way I have figured out is to create function like one below in the Parent class. That will only solve problem of finding and updating them, not adding, deleting or so. def children = Child.findAll(By(Child.parent, this.id)) There probably is a correct way to do this, but at least I couldn't find it. Any help appreciated. Thanks beforehand, Juha --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] MetaRecord.asHtml
I'm writing up the chapter on Record right now (nothing like a moving target!) and I just wanted to confirm that the MetaRecord.asHtml is really intended to default to NodeSeq.Empty. Since there's a default template for form generation it seemed a little strange that there isn't a default for display. It's also a little confusing, since Field has a toXHtml method on it that defaults to a Text node and seems like it would be a perfect default. Thanks, Derek --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: MetaRecord.asHtml
Hi Derek, Glad to see your working on it. MetaRecord.asHtml is not completed. Probably would make sense to add on the Field a toNode function that would be defaulted to Text as you mentioned. Hence MetaRecord.asHtml (should we rename it to toNode as well?) will combine the toNode from the record's fields. Field.asXhtml when rendering a Record based on a provided user form template. thoughts? Br's, Marius On Nov 24, 2:20 am, Derek Chen-Becker [EMAIL PROTECTED] wrote: I'm writing up the chapter on Record right now (nothing like a moving target!) and I just wanted to confirm that the MetaRecord.asHtml is really intended to default to NodeSeq.Empty. Since there's a default template for form generation it seemed a little strange that there isn't a default for display. It's also a little confusing, since Field has a toXHtml method on it that defaults to a Text node and seems like it would be a perfect default. Thanks, Derek --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---