ejb
共 2 篇文章
JPQL的一些用法
关联(join) JPQL仍然支持和SQL中类似的关联语法: left out join/left join inner join left join fetch/inner join fetch left out join/left join等,都是允许符合条件的右边表达式中的Entiies 为空(需要显式使用left join/left outer join 的情况会比较少。) 例: //获取26岁人的订单,不管Order中是否有OrderItem select o from Order o left join o.orderItems where o.ower.age=26 order…
2010-06-14 20:10 · ejb · JPA · Blog · SQL · MySQL · Bean
OpenEjb连接工厂
public class BeanFactory { /** * 上下文 */ private static Context context; //权限模块ejb接口 private static com.techqy.bbjy.carve.session.IPermission permission; /** * 初始化上下文 * @return * @throws NamingException * @create by SZQ at 2009-6-11 */ private static Context loadContext() throws NamingException { if…
2010-05-21 11:53 · ejb · Apache · EJB