Download
Amalegeni via maven
As of 2017-05-01, Amalegeni version 1.1.5 is available via maven. Add this repository to your pom.xml:
<repositories>
..
..
<repository>
<id>co.wmo</id>
<url>http://wmo.co/maven2</url>
</repository>
..
..
</repositories>
and add this dependency:
<dependency>
<groupId>co.wmo</groupId>
<artifactId>amalegeni</artifactId>
<version>1.1.5</version>
<scope>compile</scope>
</dependency>
Master detail example using maven
Download this masterdetail_mvn.tgz example code: it's the same as Master Detail, but now using Maven: no need to manually install any *.jar file anymore. After unpacking the tgz file, run the script 'run.sh'. Prequisites: - java and maven installed
- a local Postgres database, with user 'amalegeni' (with password 'amalegeni')
- passwordless database login is setup : (just add line: "localhost:5432:*:amalegeni:amalegeni" to ~/.pgpass)
Amalegeni core file
Download 1.1
Download the latest file here: Older versions: - 2013-03-07 amalegeni-1.1.3.tgz. Minor fixes plus added 'notest' keyword for ignoring test initialization code.
- 2012-10-03 amalegeni-1.1.2.tgz. Bugfix: java.sql.Date for returning simple types (change to csae template).
- 2012-09-25 amalegeni-1.1.1.tgz. New features: injection and easy caching with Redis (experimental). Improved logging (executed sql statements printed in trace log). Also the templates have been changed such that they have become incompatible with version 1.0.x template.
Download 1.0
Note: the templates of release 1.0.x are incompatible with the new 1.1.x templates.
Install
I put the amalegeni file under /opt, and then add a softlink from /opt/amalegeni to /opt/amalegeni-X.Y.
Script
Create a script called 'amalegeni' in your ~/bin directory, which contains this:
#!/bin/bash
# define AMALEGENI_HOME
export AH=/opt/amalegeni
# create a classpath
export CP=$CLASSPATH:$AH/amalegeni.jar
java -cp $CP amalegeni.Main $*
Make this script executable.
chmod +x amalegeni
Amelegeni source
Later. If impatient then mail me..
SVN log
svnlog |