Apache Empire-db is an Open Source relational data persistence component which allows database vendor independent dynamic query definition as well as safe and simple data retrieval and updating. Compared to most other solutions like e.g. Hibernate, TopLink, iBATIS or JPA implementations, Empire-db takes a considerably different approach, with a special focus on compile-time safety, reduced redundancies and improved developer productivity.
The classic approach (e.g. JPA, Hibernate) |
Empire-db | |
---|---|---|
Database schema definition | XML or annotations | Java object model |
Data and metadata access | Static JavaBeans used for simple data transfer. No or cumbersome metadata support. |
Dynamic beans with metadata available through comprehensible and concise object hierarchy. |
Dynamic query definition | String-based query language or object based API requiring column / property names to be provided as string literals. Usually works with full database entities. |
Type-safe, string-free and intuitive API. Build any SQL statement including the select clause and use it with any POJO not just full featured entity beans. |