Giter Site home page Giter Site logo

lift-gae-jdo's Introduction

What is This?
==============
This Liftweb application will demonstrate how to manage
owned One-to-Many relation on Google App Engine for Java
through the JDO2 interface.  The code has been based on 
Derek Chen-Becker's JPADemo[1][2].


How to Try
==========
Before the compilation, a few steps are needed to be done.
  1. Download appengine-java-SDK-1.2.8.zip[3] and unzip it.
     Suppose you have unzipped it at '/tmp/' and you have
     '/tmp/appengine-java-sdk-1.2.8' directory.
  2. Replace '????' for 'sdk.dir' property in build.xml with your own.
     In this example, it should be '/tmp/appengine-java-sdk-1.2.8'.
  3. Set your application name on GAE/J to 
       'src/main/webapp/WEB-INF/appengine-web.xml' file.

Now, you are ready to run or upload this liftweb application to GAE/J.

  $ mvn package
  $ /tmp/appengine-java-sdk-1.2.8/bin/appcfg.sh update war
    or
  $ /tmp/appengine-java-sdk-1.2.8/bin/dev_appserver.sh war


Notes
=====
  * Entity models are defined in com.jcraft.lift.model package.
  * This program defines two models; Author and Book, and they are
    detachable.  Refer to those source code.
  * Author includes many instances of Book.
  * DetachOnClose and DatachOnCommit has been enabled by the default.
    Refer to 'src/main/webapp/WEB-INF/classes/META-INF/jdconfig.xml'
  * Without definitions for indexes, objects in One-to-Many relation
    must not be persisted.
    Refer to 'src/main/webapp/WEB-INF/datastore-indexes.xml'
  * The package org.scala_libs.jdo is the scala wrapper for JDO2 APIs.


TODO
====
  * By using the maven-datanucleus-plugin plugin, we will be able to
    skip steps to download datanucleus-enhancer.jar file.
  * org.scala_libs.jdo package should be independently released and
    provided as scalajdo.
 

Enjoy!


[email protected]
Nov 06 2009


[1] http://wiki.liftweb.net/index.php/Lift_and_JPA_(javax.persistence)
[2] http://github.com/dpp/liftweb/tree/72554794896a720c237c8793ed9bd907c2269048/sites/JPADemo
[3] http://code.google.com/intl/en/appengine/downloads.html#Google_App_Engine_SDK_for_Java

lift-gae-jdo's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

epabst guniorobot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.