implements Serializable的使用,不用的后果

/* ==================================================================== * * Copyright (c) 2010 Infosys Technologies Ltd, Bangalore. All rights * reserved. * * Use is subject to license terms. */

package com.apple.sqm.domain;

import java.io.Serializable;

/***************************************************************************************************** * Functionality Description : * * External Objects called : * * Known Bugs : None * * Modification Log * Date Author Description * ------------------------------------------------------------ * Oct 10, 2011 Infosys (Mount_Guo) Created * ****************************************************************************************************/

public class CTQParameter implements Serializable{

/** * */ private static final long serialVersionUID = 1L;

private String guid; private String ctq_id; private String code; private String name; private String remarks; /** * @return the guid */ public String getGuid() { return guid; } /** * @param guid the guid to set */ public void setGuid(String guid) { this.guid = guid; } /** * @return the ctq_id */ public String getCtq_id() { return ctq_id; } /** * @param ctqId the ctq_id to set */ public void setCtq_id(String ctqId) { ctq_id = ctqId; } /** * @return the code */ public String getCode() { return code; } /** * @param code the code to set */ public void setCode(String code) { this.code = code; } /** * @return the name */ public String getName() { return name; } /** * @param name the name to set */ public void setName(String name) { this.name = name; } /** * @return the remarks */ public String getRemarks() { return remarks; } /** * @param remarks the remarks to set */ public void setRemarks(String remarks) { this.remarks = remarks; } }

/* ==================================================================== * * Copyright (c) 2010 Infosys Technologies Ltd, Bangalore. All rights * reserved. * * Use is subject to license terms. */ package com.apple.sqm.domain; import java.io.Serializable; /***************************************************************************************************** * Functionality Description : * * External Objects called : * * Known Bugs : None * * Modification Log * Date Author Description * ------------------------------------------------------------ * Oct 10, 2011 Infosys (Mount_Guo) Created * ****************************************************************************************************/ public class CTQParameter implements Serializable{ /** * */ private static final long serialVersionUID = 1L; private String guid; private String ctq_id; private String code; private String name; private String remarks; /** * @return the guid */ public String getGuid() { return guid; } /** * @param guid the guid to set */ public void setGuid(String guid) { this.guid = guid; } /** * @return the ctq_id */ public String getCtq_id() { return ctq_id; } /** * @param ctqId the ctq_id to set */ public void setCtq_id(String ctqId) { ctq_id = ctqId; } /** * @return the code */ public String getCode() { return code; } /** * @param code the code to set */ public void setCode(String code) { this.code = code; } /** * @return the name */ public String getName() { return name; } /** * @param name the name to set */ public void setName(String name) { this.name = name; } /** * @return the remarks */ public String getRemarks() { return remarks; } /** * @param remarks the remarks to set */ public void setRemarks(String remarks) { this.remarks = remarks; } }
经验分享 程序员 微信小程序 职场和发展