小编sha*_*fak的帖子

如何在hibernate中创建列包含实体类中的一些属性

我想在实体缝中属性.但我不想在数据库中创建列.例如我的实体是;

    @Entity
    public class Category extends Item implements Serializable {

    private static final long serialVersionUID = -1154500438874768209L;
        private List<Product> example;
    private List<Item> children;

    public void addChild(Item child) {
        if (children == null) {
            children = new ArrayList<Item>();
    }

    if (!children.contains(child)) {
        children.add(child);
    }
     }

     @OneToMany(cascade = CascadeType.ALL)
     public List<Item> getChildren() {
            return children;
     }

     public void setChildren(List<Item> children) {
          this.children = children;
     }

     public void setExample(List<Product> example) {
       this.example = example;
     }

     public List<Product> getExample() {
       return example;
     }
   } …
Run Code Online (Sandbox Code Playgroud)

database-design entity entity-relationship seam hibernate-annotations

1
推荐指数
1
解决办法
3437
查看次数

打印BizTalk Orchestration的硬拷贝

我想在BizTalk 2010解决方案中打印我的业务流程.在会议期间,硬拷贝更有助于理解,所以我想打印我的编排.

你对这个问题有什么想法吗?

c# printing biztalk biztalk-2010 biztalk-orchestrations

1
推荐指数
1
解决办法
273
查看次数