Ebean

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

// simple queryCustomer customer = Ebean.find(Customer.class, 1);

// more complex queryQuery query = Ebean.createQuery(Order.class);query.join("customer");query.join("customer.billingAddress");query.join("customer.shippingAddress");query.join("details");query.join("details.product", "name");

query.where().eq("shipDate", today);List order = query.findList();

See also

[http://www.avaje.org Ebean Home]

Hibernate

Toplink

Ibatis


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • AutoFetch — [http://www.cs.utexas.edu/ aibrahim/autofetch/ AutoFetch] is a mechanism for automatically tuning Object Relational Mapping queries.Ali Ibrahim and William Cook at the University of Texas developed the idea of AutoFetch including an… …   Wikipedia

  • List of object-relational mapping software — This is a list of well known object relational mapping software. This list is neither up to date nor all inclusive.Java*Carbonado, open source framework, backed by Berkeley DB or JDBC *Cayenne, apache, open source for java *Ebean, open source ORM …   Wikipedia

  • Motor de persistencia — Saltar a navegación, búsqueda En la actualidad existen distintos motores de persistencia. Estos motores facilitan el mapeo objeto relacional de atributos entre una base de datos relacional tradicional y suplen la funcionalidad de una base de… …   Wikipedia Español

  • Data access object — This article is about the data access object design pattern in object oriented software design. For the Microsoft library of the same name, see Data Access Objects. In computer software, a data access object (DAO) is an object that provides an… …   Wikipedia

  • Anexo:Motores de persistencia — Esta es una lista alfabética de los principales motores de mapeo objeto relacional, indicando si son libres o comerciales. Contenido 1 ColdFusion 2 Common Lisp 3 Java 4 JavaScript …   Wikipedia Español

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”