import uk.ac.bbsrc.tgac.miso.core.security.SecurableByProfile;
@MappedSuperclass
public abstract class AbstractPartition implements Partition {
public static final Long UNSAVED_ID = 0L;
@Id
<BUG>@GeneratedValue(strategy = GenerationType.AUTO)
private long id = AbstractPartition.UNSAVED_ID;</BUG>
@ManyToOne(targetEntity = SecurityProfile.class, cascade = CascadeType.ALL)
@JoinColumn(name = "securityProfile_profileId")
private SecurityProfile securityProfile = null;

import uk.ac.bbsrc.tgac.miso.core.security.SecurableByProfile;
@MappedSuperclass
public abstract class AbstractPartition implements Partition {
public static final Long UNSAVED_ID = 0L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "partitionId")
private long id = AbstractPartition.UNSAVED_ID;
@ManyToOne(targetEntity = SecurityProfile.class, cascade = CascadeType.ALL)
@JoinColumn(name = "securityProfile_profileId")
private SecurityProfile securityProfile = null;
