Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

子类映射无法实现 #13

Open
GoogleCodeExporter opened this issue Mar 29, 2016 · 0 comments
Open

子类映射无法实现 #13

GoogleCodeExporter opened this issue Mar 29, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

问题
   我有一个
Amodel{
     private String a1;
     private String a2;
     public Cmodel getCmodel() {
        Cmodel c=new Cmodel();
        c.setC1("c1value");
        c.setC2("c2value");

        return c;
    }
}
public class Bmodel {
    private String b1;
    private String b2;
    private String b3;
}
public class Cmodel {
    private String c1;
    private String c2;
}

   现在A映射到B,关系如下
   a1->b1
   a2->b2
   cmodel.c1->b3 //无法实现

请问最后一步如何配置实现

Original issue reported on code.google.com by [email protected] on 8 Oct 2013 at 6:55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant