com.ny.apps.domain.BaseEntity.java Source code

Java tutorial

Introduction

Here is the source code for com.ny.apps.domain.BaseEntity.java

Source

/**
 * 
 * @Title BaseEntity.java
 * @Description TODO
 * Copyright: Copyright (c) 2013, Smiletony and/or its affiliates. All rights reserved.
 * SMILETONY PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 * 
 * @author NY
 * @date 2013-10-18 ?11:57:30
 * 
 */
package com.ny.apps.domain;

import java.io.Serializable;

import org.json.JSONObject;

/**
 *
 * Bean?POJO?DomainBaseEnity
 * @Description <i>?JsongroupId:org.jsonartifactId:json</i>
 * @author <a href="mailto:mynameisny@qq.com">Tony Joseph</a>
 * @version 1.0
 *
 */
public class BaseEntity implements Serializable, Cloneable {
    /**
     * ?
     */
    private static final long serialVersionUID = 1L;

    /**
     * ?Json
     * @return Json
     */
    public String toJsonString() {
        return new JSONObject(this).toString();
    }

}