mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-09 11:03:12 +00:00
Fix dspace-api module per new code style
This commit is contained in:
@@ -7,12 +7,21 @@
|
||||
*/
|
||||
package org.dspace.eperson;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.FetchType;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import org.dspace.content.Collection;
|
||||
import org.dspace.core.Context;
|
||||
import org.dspace.core.ReloadableEntity;
|
||||
|
||||
import javax.persistence.*;
|
||||
|
||||
/**
|
||||
* Database entity representation of the subscription table
|
||||
*
|
||||
@@ -24,8 +33,8 @@ public class Subscription implements ReloadableEntity<Integer> {
|
||||
|
||||
@Id
|
||||
@Column(name = "subscription_id", unique = true, nullable = false)
|
||||
@GeneratedValue(strategy = GenerationType.SEQUENCE ,generator="subscription_seq")
|
||||
@SequenceGenerator(name="subscription_seq", sequenceName="subscription_seq", allocationSize = 1)
|
||||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "subscription_seq")
|
||||
@SequenceGenerator(name = "subscription_seq", sequenceName = "subscription_seq", allocationSize = 1)
|
||||
private Integer id;
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@@ -39,10 +48,8 @@ public class Subscription implements ReloadableEntity<Integer> {
|
||||
/**
|
||||
* Protected constructor, create object using:
|
||||
* {@link org.dspace.eperson.service.SubscribeService#subscribe(Context, EPerson, Collection)}
|
||||
*
|
||||
*/
|
||||
protected Subscription()
|
||||
{
|
||||
protected Subscription() {
|
||||
|
||||
}
|
||||
|
||||
@@ -65,4 +72,4 @@ public class Subscription implements ReloadableEntity<Integer> {
|
||||
void setePerson(EPerson ePerson) {
|
||||
this.ePerson = ePerson;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user