Java持久层框架 Easy Java Persistence 2.9 发布
jopen 13年前
This release fixes a problem where extra column information wasn't seen (select as) during object loading. It reworks object loading for 40% faster loads. It is now faster <span class="truncate_more"> across the board than JPA。<br /> </span>EJP是一个强大并且易于使用的关系数据库持久化Java API。EJP的主要特性包括: <br /> <br /> 1、对象/关系(object/relational)自动映射(A-O/RM) <br /> 2、自动处理所有关联 <br /> 3、自动持久化跟踪 <br /> <br /> EJP不需要映射注释或XML配置,并且不需要继承任何类或实现任何接口。EJP只用到了Plain Old Java Objects (POJOs)对象。到目前为止,EJP是Java开源中最简单的持久化API。 <br /> <pre class="brush:java; toolbar: true; auto-links: false;"> public static void main(String[] args) { DatabaseManager dbm = DatabaseManager.getDatabaseManager(...); dbm.saveObject(new Customer("Smith", "John")); Customer customer; if ((customer = dbm.loadObject(new Customer("Smith"))) != null) { customer.getSupport().add(new Support(...)); dbm.saveObject(customer); } Collection<Customer> list = new ArrayList<Customer>(); list = dbm.loadObjects(list, Customer.class); ... }</pre>项目地址:http://www.easierjava.com/