- Ebean
Ebean is an
object-relational mapping product written in Java.It is designed to be simpler to use and understand than JPA (Java Persistence API) or JDO (Java Data Objects) products.
Simple API
Ebean has a simpler API than JPA. It achieves this through its 'Session Less' architecture. Ebean does not require a JPA EntityManager or JDO PersistenceManager and this removes the concepts of detached/attached beans and the issues associated with flushing/clearing and 'session management' of EntityManager's. This adds up to make Ebean's API much easier to learn understand and use.
Especially if you are using Java Standard Edition
Relational features
Although Ebean has full ORM features (equivalent to JPA) it also has incorporated 'SQL/Relational' features. The idea being that many development efforts require control over the exact sql, calling stored procedures or are more simply solved with 'Relational' approaches. The ultimate goal for Ebean is to combine the best ORM features from JPA with the best 'Relational' features from products like IBatis into a single persistence framework.
Object Relational Mapping
Ebean uses the same mapping as JPA with its @Entity, @Table, @OneToMany etc annotations and xml. The mapping of Entity beans should be compatible between Ebean and JPA.
Going beyond JPA Ebean supports Java Generics and fetching "Partial" objects with is Query object.
Examples
See also
[http://www.avaje.org Ebean Home]
Wikimedia Foundation. 2010.