/* ================================================================== * Created [2009-4-27 下午11:32:55] by Jon.King * ================================================================== * TSS * ================================================================== * mailTo:jinpujun@hotmail.com * Copyright (c) Jon.King, 2009-2012 * ================================================================== */ package com.jinhe.tss.portal.entity; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.SequenceGenerator; import javax.persistence.Table; import com.jinhe.tss.core.persistence.IEntity; /** * 门户自定义主题信息实体 */ @Entity @Table(name = "pms_personal_theme") @SequenceGenerator(name = "personalTheme_sequence", sequenceName = "personalTheme_sequence", initialValue = 1, allocationSize = 1) public class PersonalTheme implements IEntity { @Id @GeneratedValue(strategy = GenerationType.AUTO, generator = "personalTheme_sequence") private Long id; //主键 private Long portalId; //定制页面所在门户ID private Long themeId; //定制的主题ID private Long userId; //定制人ID public PersonalTheme(){ } public PersonalTheme(Long portalId, Long userId, Long themeId) { this.portalId = portalId; this.themeId = themeId; this.userId = userId; } public Long getId() { return id; } public Long getPortalId() { return portalId; } public Long getThemeId() { return themeId; } public Long getUserId() { return userId; } public void setId(Long id) { this.id = id; } public void setPortalId(Long portalId) { this.portalId = portalId; } public void setThemeId(Long themeId) { this.themeId = themeId; } public void setUserId(Long userId) { this.userId = userId; } }