- 博客(6)
- 资源 (3)
- 收藏
- 关注
原创 JPA'Many2Many
Many2Many关系: Document(主动)(被动)KMFile class Document主动关联设置:指定中间表,及字段。 @ManyToMany(fetch=FetchType.LAZY, cascade={CascadeType.PERSIST}, targetEntity=KMFile.class) @JoinTable(inverseJoinColumns={@Join
2009-03-25 01:13:00 906
原创 riena
DescriptionThe Riena platform will be the foundation for building multi-tier enterprise client/server applications. As such Riena will broaden the usage of the service oriented architecture of OSG
2009-03-16 15:27:00 794
原创 superclass使用visitor模式
被访问者希望在超类中统一接收visitor访问,但不做任何处理的情况下,visitor访问的方法是访问超类参数的方法。 解决这种情况有两种方法:1)被访问者具体overwrite接收visitor的访问方法2)超类使用反射 第一种方法,如果被访问的子类太多,很罗嗦。第二种方法,简洁,但有性能问题。 增加子类,不要忘记增加visitor的访问接口。 第二种
2009-03-11 13:18:00 560
原创 EMF's teneo代码库
host: dev.eclipse.org repository: /cvsroot/modelingmodule: org.eclipse.emf/org.eclipse.emf.teneouser/password: anonymous/anonymous
2009-03-10 15:27:00 597
原创 JPA模型的代码生成
EMF这把大刀,官方工具未完善,对jpa的支持不满意,尚待些时日吧。 本文描述如何生成自己需要的jpa模型,通过annotation。1)构建模型元数据2)使用JET生成模板3)生成JPA模型4)JPA模型生成数据表 meta-->your jpa(annotation) model-->database 代码结构: 1)EModel
2009-03-10 10:39:00 894
原创 eclipse bundle类加载器
Eclipse各bundle使用各自的class loader,若需要引用其他bundle类来动态创建实例,则需要使用类所在的bundle的class loader。 下面实例演示如何使用其它bundle类。 当前plugin为rpc服务器,需要使用其它任意使用了rpc的bundle类。实现方式:在本plugin定义扩展点,定义出class loader接口--Biz
2009-03-10 10:13:00 1819
NumToWords 数字金额转换为英文
2012-07-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人