[DS-2728] Remove the BundleBitstream object & replace by JPA mapping

This commit is contained in:
KevinVdV
2015-08-27 12:51:28 +02:00
parent f1060aac7b
commit ae19c42a7b
78 changed files with 362 additions and 596 deletions

View File

@@ -61,9 +61,8 @@ public class Bitstream extends DSpaceObject implements DSpaceObjectLegacySupport
@JoinColumn(name = "bitstream_format_id")
private BitstreamFormat bitstreamFormat;
@OneToMany(mappedBy = "bitstream", fetch = FetchType.LAZY)
@OrderBy("bitstreamOrder asc")
private List<BundleBitstream> bundles = new ArrayList<>();
@ManyToMany(fetch = FetchType.LAZY, mappedBy = "bitstreams")
private List<Bundle> bundles = new ArrayList<>();
@OneToOne(fetch = FetchType.LAZY, mappedBy="logo")
private Community community;
@@ -278,12 +277,12 @@ public class Bitstream extends DSpaceObject implements DSpaceObjectLegacySupport
* @return array of <code>Bundle</code> s this bitstream appears in
* @throws SQLException
*/
public List<BundleBitstream> getBundles() throws SQLException
public List<Bundle> getBundles() throws SQLException
{
return bundles;
}
void setBundles(List<BundleBitstream> bundles) {
void setBundles(List<Bundle> bundles) {
this.bundles = bundles;
}