mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 07:23:08 +00:00
In Hibernate 6, columnDefinition of "integer" should be @JdbcTypeCode(SqlTypes.INTEGER)
This commit is contained in:
@@ -72,7 +72,7 @@ public class BitstreamFormat implements Serializable, ReloadableEntity<Integer>
|
|||||||
@ElementCollection(fetch = FetchType.EAGER)
|
@ElementCollection(fetch = FetchType.EAGER)
|
||||||
@CollectionTable(name = "fileextension", joinColumns = @JoinColumn(name = "bitstream_format_id"))
|
@CollectionTable(name = "fileextension", joinColumns = @JoinColumn(name = "bitstream_format_id"))
|
||||||
@CollectionId(
|
@CollectionId(
|
||||||
column = @Column(name = "file_extension_id", columnDefinition = "integer"),
|
column = @Column(name = "file_extension_id"),
|
||||||
generator = "fileextension_seq"
|
generator = "fileextension_seq"
|
||||||
)
|
)
|
||||||
@CollectionIdJavaType(IntegerJavaType.class)
|
@CollectionIdJavaType(IntegerJavaType.class)
|
||||||
|
@@ -19,6 +19,8 @@ import jakarta.persistence.SequenceGenerator;
|
|||||||
import jakarta.persistence.Table;
|
import jakarta.persistence.Table;
|
||||||
import org.dspace.core.Context;
|
import org.dspace.core.Context;
|
||||||
import org.dspace.core.ReloadableEntity;
|
import org.dspace.core.ReloadableEntity;
|
||||||
|
import org.hibernate.annotations.JdbcTypeCode;
|
||||||
|
import org.hibernate.type.SqlTypes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class represents a relationship
|
* This class represents a relationship
|
||||||
@@ -94,7 +96,8 @@ public class Relationship implements ReloadableEntity<Integer> {
|
|||||||
* or the item on that side is the most recent version that is relevant to the given relationship.
|
* or the item on that side is the most recent version that is relevant to the given relationship.
|
||||||
* This column affects what version of an item appears on search pages or the relationship listings of other items.
|
* This column affects what version of an item appears on search pages or the relationship listings of other items.
|
||||||
*/
|
*/
|
||||||
@Column(name = "latest_version_status", columnDefinition = "integer")
|
@Column(name = "latest_version_status")
|
||||||
|
@JdbcTypeCode(SqlTypes.INTEGER)
|
||||||
private LatestVersionStatus latestVersionStatus = LatestVersionStatus.BOTH;
|
private LatestVersionStatus latestVersionStatus = LatestVersionStatus.BOTH;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -20,6 +20,8 @@ import jakarta.persistence.SequenceGenerator;
|
|||||||
import jakarta.persistence.Table;
|
import jakarta.persistence.Table;
|
||||||
import org.dspace.core.Context;
|
import org.dspace.core.Context;
|
||||||
import org.dspace.core.ReloadableEntity;
|
import org.dspace.core.ReloadableEntity;
|
||||||
|
import org.hibernate.annotations.JdbcTypeCode;
|
||||||
|
import org.hibernate.type.SqlTypes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class representing a RelationshipType
|
* Class representing a RelationshipType
|
||||||
@@ -116,7 +118,8 @@ public class RelationshipType implements ReloadableEntity<Integer> {
|
|||||||
/**
|
/**
|
||||||
* The value indicating whether relationships of this type should be ignored on the right/left/neither.
|
* The value indicating whether relationships of this type should be ignored on the right/left/neither.
|
||||||
*/
|
*/
|
||||||
@Column(name = "tilted", columnDefinition = "integer")
|
@Column(name = "tilted")
|
||||||
|
@JdbcTypeCode(SqlTypes.INTEGER)
|
||||||
private Tilted tilted;
|
private Tilted tilted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user