日期:2014-05-20 浏览次数:20683 次
@MappedSuperclass
public abstract class IdEntity implements Serializable {
protected Logger log = LoggerFactory.getLogger(getClass());
protected String id = null;
@Id
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")
@Column(length = 32, name="id_")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}