ActiveJDBC is a Java implementation of the Active Record design pattern developed by Igor Polevoy. It was inspired by ActiveRecord ORM from Ruby on Rails. It is based on a set of conventions and does not require configuration.
Contents
Writing models
Similar to Ruby on Rails, the ActiveJDBC infers meta data from a database. The result is that models do not require setters and getters.
Creating and updating records
Creation of and saving new records in a table:
or the same on one line:
And for updating an existing record:
Finding records
ActiveJDBC does not have a query language. Search criteria are written in abbreviated SQL.
Related projects
While ActiveJDBC is a general purpose Java ORM, it served as a first building block for ActiveWeb
References
ActiveJDBC Wikipedia(Text) CC BY-SA