我有以下简化情况:
public class Owner {
private int ownerId;
private Telefon telefon;
}
public class Telefon {
private int telefonType;
如果我有任何 Telefon 对象,现在我想获取 owenerID。我不想将 ownerId 存储在 Telefon 对象中。
有什么办法吗?
茅侃侃
相关分类