Ebean ORM - ORM similar to JPA

Discussions

News: Ebean ORM - ORM similar to JPA

  1. Ebean ORM - ORM similar to JPA (4 messages)

    The Avaje Ebean project provides an Object Relational Mapping Persistence Layer similar to the JPA API, but without the need for the EntityManager or any other session object (with the exception of a single Ebean object.) It includes finding objects by predicates and uses a code generator to manage schemas. Ebean provides the usual features of:
    • EJB3-like ORM mapping
    • Cascading Save and Delete
    • Lazy loading
    • Transaction Management and Logging
    • Statement Batching
    • Caching
    • Clustering
    • Lucene Text Search Integration
    To understand how Ebean manages to provide this with a "Session Less" architecture we need to have a look at Optimistic Concurrency Checking and see how it relates to EJB3 Architecture. There are also whitepapers relating to Lazy Loading in Ebean and how Transaction Isolation effects this.

    Threaded Messages (4)

  2. Hmm... well actually[ Go to top ]

    Just to note that the postings get edited... and in this case I want to just clarify the (with exception of a single Ebean object) comment. The single Ebean object is in fact a singleton, and as such provides a static API to save, delete find objects. It does not represents a Session object. The Code generator generates EJB3 annotated Entity Beans. If people where interested they could use those beans with an EJB3 server if they wanted to. Ebean uses EJB3 ORM mapping and is expected to be 100% compatible with EJB3 ORM annotations (OneToOne, ManyToOne etc etc).
  3. EJB3 Compatible ORM Mapping[ Go to top ]

    Also, just to clarify the "EJB3-like ORM mapping". Ebean uses EJB3 ORM mapping annotations. The intention is to be 100% compatible with EJB3 ORM Mapping. However, Ebean automatically finds all your JOINS, determines the 'owning side' of relationships, determines the optionality, and perhaps makes more use of Naming Conventions. The idea, being to keep the Deployment annotations as simple and clean as possible.
  4. Any one tried this before[ Go to top ]

    I'm interested in feedback of anyone that used this in their project. Also if you used EJB3 can you give us your experience of the differences between the two.
  5. Re: Any one tried this before[ Go to top ]

    Good question Matt. Its possibly not obvious so I'd just like to point out that people have only been downloading this for about 5 days (and 2 of those where the weekend). So, although its a very good question I'm not sure you'll get an answer just yet given that its so 'new'. I have used it quite a bit and built avaje.org with it but I understand thats not really what you are asking. Let me know if there is a specific question I can answer for you. Cheers, Rob.