Java 的轻量级 ORM 框架,Ujorm 1.22 发布

fmms 13年前
     <a href="/misc/goto?guid=4958327188829602876" target="_blank">Ujorm</a>是一个新的开源Java版ORM框架,Ujorm的作 者目标是开发一个足够敏捷的ORM框架作为Java应用的持久层,以适合快速迭代开发的敏捷团队。Ujorm的第一个优势是性能上的优势,从一个简单的 SELECT来时,Ujorm的性能要远远高于同类框架。当然Ujorm还包括有:类型安全的查询参数,更小的性能开销,和最简化的实体解决方案。    <br />    <pre class="brush:java; toolbar: true; auto-links: false;">  Order order = new Order();    order.setDate(new Date());    order.setNote("My order");      Item item = new Item();    item.setOrder(order);    item.setNote("Yellow table");      Session session = ormHandler.createSession();    session.save(order);    session.save(item);      session.commit();    session.close();</pre>    <p>Ujorm 1.22 发布,改进内容:</p>    <ul>     <li>The UjoProperty interface extends the CriterionMaker now for a simpler Criterion building. </li>     <li>A new annotation parameter called converter can be assigned for a special reading<span class="truncate_more"> data from/to ResultSet. <br /> </span></li>     <li><span class="truncate_more">A new method UjoComparator.sort() is implemented, as well as a better type safe using Java generics. <br /> </span></li>     <li><span class="truncate_more">Solid database names of foreign columns name constraints are implemented. <br /> </span></li>     <li><span class="truncate_more">The right parameter of Criterion can be an indirect property. <br /> </span></li>     <li><span class="truncate_more">The default implementation toString() of the AbstractUjo object is improved</span></li>    </ul>