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

关联关系的target类型应自动推导 #1163

Closed
wendal opened this issue Nov 1, 2016 · 4 comments
Closed

关联关系的target类型应自动推导 #1163

wendal opened this issue Nov 1, 2016 · 4 comments
Assignees
Labels
Milestone

Comments

@wendal
Copy link
Member

wendal commented Nov 1, 2016

public class Issue9001Master {

    @Id
    private int id;
    @Name
    private String name;
    
    private int gpet_id;
    
    @Many(field="master_id") // 不再需要写target=Issue9001Pet.class 因为可以推导出来
    private ArrayList<Issue9001Pet> pets;
    
    @One(field="gpet_id") // 同理
    private Issue9001Pet gpet;
}    
@wendal wendal changed the title ABC 关联关系的target类型应自动推导 Nov 1, 2016
@wendal wendal added the Dao label Nov 1, 2016
@wendal wendal added this to the 1.r.59 milestone Nov 1, 2016
@wendal wendal self-assigned this Nov 1, 2016
@wendal wendal closed this as completed in 269bdcc Nov 1, 2016
@ywjno
Copy link
Member

ywjno commented Nov 1, 2016

@ManyMany 现在还没对应这个新特性么?

@wendal
Copy link
Member Author

wendal commented Nov 1, 2016

@ywjno

@ywjno
Copy link
Member

ywjno commented Nov 1, 2016

嗯,我把相关文档给改了

@ghost
Copy link

ghost commented Dec 1, 2016

这就对了, 之前一直没用就是因为我分不清楚 到底参数写什么,
现在终于解放了

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

No branches or pull requests

2 participants