View on GitHub

Tape

A lightweight Java data mapping library

Download this project as a .zip file Download this project as a tar.gz file

Build Status Maven Central License

What is Tape?

Tape is a lightweight data mapping library, designed as a fluent API over JDBC.

What does it look like?

Following is a simple illustration of how Tape may be used.

// Describe the mapping for Items and Products
Table<Product> products = ...
Table<Item> items = ...

// Select all items whose product name is 'Bulldog' using the given connection
List<Item> bulldogs = Select.from(items)
                            .join(products, "items.product_id = products.id")
                            .where("products.name = ?", "Bulldog")
                            .list(connection);

How does it work?

Tape is designed to be:

Tape is not:

The intention is simply to make it fun and easy to write data access code without the need to resort to an ORM framework.

Learn More

For further details and other examples, head to the Wiki or take a look at the tests.