Skip to content
/ gahaha Public

Gahaha - Simple ORM of Apache Groovy for sample codes.

License

Notifications You must be signed in to change notification settings

koji-k/gahaha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gahaha - Simple ORM of Apache Groovy for sample codes.

During the experiment now.

usage

Gahaha is not yet provided on Maven repository etc.
So, please clone this repository and execute gradle build.
Then you can find build/libs/gahaha-{VERSION}.jar.
So, you have to include this jar file into your classpath.
e.x.) groovy -cp gahaha-0.1.jar:. test.groovy

test.groovy is like following.

import gahaha.*

class Person {
    String name
    Integer age
}

Gahaha.gahanize(Person)
Person a = new Person(name:"Gahaha!", age:31).save()
assert a.id == 1
assert a.name == "Gahaha!"
assert a.age == 31

new Person(name:"TEST").save()
assert Person.count() == 2
Person.list().each { Person person ->
    println "Hello ${person.name}(${person.age})!"
}

About

Gahaha - Simple ORM of Apache Groovy for sample codes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages