d.java

来自「hibernate 开源框架的代码 jar包希望大家能喜欢」· Java 代码 · 共 62 行

JAVA
62
字号
//$Id: D.java 4599 2004-09-26 05:18:27Z oneovthafew $package org.hibernate.test.legacy;public class D {	private Long id;	private float amount;	private A reverse;	public A inverse;		public D() {		// try to induce an infinite loop in the lazy-loading machinery		setAmount(100.0f);		getAmount();	}		/**	 * Returns the amount.	 * @return float	 */	public float getAmount() {		return amount;	}		/**	 * Returns the id.	 * @return long	 */	public Long getId() {		return id;	}		/**	 * Sets the amount.	 * @param amount The amount to set	 */	public void setAmount(float amount) {		this.amount = amount;	}		/**	 * Sets the id.	 * @param id The id to set	 */	public void setId(Long id) {		this.id = id;	}		public A getReverse() {		return reverse;	}	public void setReverse(A a) {		reverse = a;	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?