mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-12 04:23:13 +00:00
[DS-2728] Remove the BundleBitstream object & replace by JPA mapping
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user