ObjectEntity.java (eucalyptus-4.4.1) | : | ObjectEntity.java (eucalyptus-4.4.2) | ||
---|---|---|---|---|
skipping to change at line 73 | skipping to change at line 73 | |||
import com.eucalyptus.storage.msgs.s3.VersionEntry; | import com.eucalyptus.storage.msgs.s3.VersionEntry; | |||
import com.google.common.collect.Maps; | import com.google.common.collect.Maps; | |||
@Entity | @Entity | |||
@OptimisticLocking(type = OptimisticLockType.NONE) | @OptimisticLocking(type = OptimisticLockType.NONE) | |||
@PersistenceContext(name = "eucalyptus_osg") | @PersistenceContext(name = "eucalyptus_osg") | |||
@Table(name = "objects", indexes = { | @Table(name = "objects", indexes = { | |||
@Index(name = "IDX_object_key", columnList = "object_key"), | @Index(name = "IDX_object_key", columnList = "object_key"), | |||
@Index(name = "IDX_object_uuid", columnList = "object_uuid"), | @Index(name = "IDX_object_uuid", columnList = "object_uuid"), | |||
@Index(name = "IDX_version_id", columnList = "version_id"), | @Index(name = "IDX_version_id", columnList = "version_id"), | |||
@Index(name = "IDX_object_bucket_fk", columnList = "bucket_fk"), | ||||
@Index(name = "IDX_object_sort", columnList = "object_key, object_last_modif | ||||
ied desc"), | ||||
}) | }) | |||
public class ObjectEntity extends S3AccessControlledEntity<ObjectState> implemen ts Comparable { | public class ObjectEntity extends S3AccessControlledEntity<ObjectState> implemen ts Comparable { | |||
@Transient | @Transient | |||
private static Logger LOG = Logger.getLogger(ObjectEntity.class); | private static Logger LOG = Logger.getLogger(ObjectEntity.class); | |||
@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) | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 3 lines changed or added |