PartEntity.java (eucalyptus-4.4.1) | : | PartEntity.java (eucalyptus-4.4.2) | ||
---|---|---|---|---|
skipping to change at line 58 | skipping to change at line 58 | |||
import com.eucalyptus.objectstorage.ObjectState; | import com.eucalyptus.objectstorage.ObjectState; | |||
import com.eucalyptus.objectstorage.exceptions.s3.AccountProblemException; | import com.eucalyptus.objectstorage.exceptions.s3.AccountProblemException; | |||
import com.eucalyptus.objectstorage.util.ObjectStorageProperties; | import com.eucalyptus.objectstorage.util.ObjectStorageProperties; | |||
import com.eucalyptus.storage.msgs.s3.Part; | import com.eucalyptus.storage.msgs.s3.Part; | |||
//TODO: make the a child-class of ObjectEntity | //TODO: make the a child-class of ObjectEntity | |||
@Entity | @Entity | |||
@OptimisticLocking(type = OptimisticLockType.NONE) | @OptimisticLocking(type = OptimisticLockType.NONE) | |||
@PersistenceContext(name = "eucalyptus_osg") | @PersistenceContext(name = "eucalyptus_osg") | |||
@Table(name = "parts", indexes = { | @Table(name = "parts", indexes = { | |||
@Index(name = "IDX_part_uuid", columnList = "part_uuid") | @Index(name = "IDX_part_uuid", columnList = "part_uuid"), | |||
@Index(name = "IDX_part_bucket_fk", columnList = "bucket_fk"), | ||||
}) | }) | |||
public class PartEntity extends S3AccessControlledEntity<ObjectState> implements Comparable { | public class PartEntity extends S3AccessControlledEntity<ObjectState> implements Comparable { | |||
@Column(name = "object_key") | @Column(name = "object_key") | |||
private String objectKey; | private String objectKey; | |||
@NotFound(action = NotFoundAction.EXCEPTION) | @NotFound(action = NotFoundAction.EXCEPTION) | |||
@ManyToOne(optional = false, targetEntity = Bucket.class, fetch = FetchType.EA GER) | @ManyToOne(optional = false, targetEntity = Bucket.class, fetch = FetchType.EA GER) | |||
@ForeignKey(name = "FK_bucket") | @ForeignKey(name = "FK_bucket") | |||
@JoinColumn(name = "bucket_fk") | @JoinColumn(name = "bucket_fk") | |||
private Bucket bucket; | private Bucket bucket; | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 2 lines changed or added |