package org.pp.modules.sys.model;

import org.pp.modules.sys.base.BaseFile;
import org.pp.modules.sys.service.UserService;

import com.jfinal.aop.Aop;

/**
 * Generated by JFinal.
 */
@SuppressWarnings("serial")
public class File extends BaseFile<File> {
	private User user;

	public User getUser() {
		if(user == null && getUploadUserId() != null) {
			user = Aop.get(UserService.class).findCache(getUploadUserId());
		}
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
}
