On this page, I will walk through a few features of the plugin and how it is intented to work.

Create a Configuration File

Create Mapping Files

Use the Generated Objects

Assuming a simple example like person, the following snippet is an example of how the generated code can be used:

// load the configuration file
_RootDAO.initialize();

PersonDAO dao = new PersonDAO();
// find all people
List people = dao.findAll();
// find a single person
Long id = new Long(3);
Person person = dao.load(id);
// update the person
person.setFirstName("Joe");
dao.update(person);
// delete the person
dao.delete(id);