abstractperson.java

来自「一个“对象--XML 映射”(Object-Xml Mapping) 的类库。 」· Java 代码 · 共 87 行

JAVA
87
字号
package net.sf.oxmled.mapping.sample.base;

import java.util.HashSet;
import java.util.Set;

import net.sf.oxmled.mapping.annotation.XMLAttribute;
import net.sf.oxmled.mapping.service.IConvertCastUtil;

/**
 * AbstractPerson generated by MyEclipse Persistence Tools
 */

public abstract class AbstractPerson implements java.io.Serializable {

	// Fields
    @XMLAttribute(castMethod=IConvertCastUtil.castWrappedLong)
	private Long id;
    @XMLAttribute
	private String number;
    @XMLAttribute
	private String name;
	private Byte type;
	private Set licenseTags = new HashSet(0);

	// Constructors

	/** default constructor */
	public AbstractPerson() {
	}

	/** minimal constructor */
	public AbstractPerson(String number, Byte type) {
		this.number = number;
		this.type = type;
	}

	/** full constructor */
	public AbstractPerson(String number, String name, Byte type, Set licenseTags) {
		this.number = number;
		this.name = name;
		this.type = type;
		this.licenseTags = licenseTags;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getNumber() {
		return this.number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Byte getType() {
		return this.type;
	}

	public void setType(Byte type) {
		this.type = type;
	}

	public Set getLicenseTags() {
		return this.licenseTags;
	}

	public void setLicenseTags(Set licenseTags) {
		this.licenseTags = licenseTags;
	}

}

⌨️ 快捷键说明

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