@MappedSuperclass
公共抽象類BaseEntity實現 org.springframework.security.acls.model.ObjectIdentity {是有可能在兩個字段和getter方法限定@Columnprivate static final long serialVersionUID = 7620579745392806460L; @Transient private String type; private Long id; @Column(name = "owner_user_id") private Long ownerUserId; @Column(name="id" , unique=true, updatable=false, nullable=false) @Id @GeneratedValue(strategy = GenerationType.AUTO) public Long getId() { return this.id; }
}
我的問題是,它允許幾個領域,我可以定義@Column屬性和少數訪問或。
第二個問題:是否有任何方法可以爲類集定義單獨的休眠序列。但是障礙是id字段是在BaseEntity類中定義的。
第三題:請給我提供很好的教程在哪裏可以找到更多的性能提升
第四題:我們有一個休眠序列上相同的BD運行多個門戶網站。是否可以在實體工廠級定義休眠序列?
感謝