child.java
来自「用Java实现的23个常用设计模式源代码」· Java 代码 · 共 49 行
JAVA
49 行
//$Id: Child.java,v 1.1.2.1 2003/11/08 02:25:29 oneovthafew Exp $package org.hibernate.test;public class Child { private Parent parent; private int count; private int x; public int getX() { return x; } public void setX(int x) { this.x = x; } public Parent getParent() { return parent; } public void setParent(Parent parent) { this.parent = parent; } public int getCount() { return count; } public void setCount(int count) { this.count = count; } public long getId() { return parent.getId(); } private void setId(long id) { } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?