-
Notifications
You must be signed in to change notification settings - Fork 492
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2964 from IQSS/24-add-DataCite-DOI-Support
#24 add data cite doi support
- Loading branch information
Showing
26 changed files
with
1,496 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 90 additions & 0 deletions
90
src/main/java/edu/harvard/iq/dataverse/DOIDataCiteRegisterCache.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
/* | ||
* To change this license header, choose License Headers in Project Properties. | ||
* To change this template file, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
package edu.harvard.iq.dataverse; | ||
|
||
|
||
import java.io.Serializable; | ||
import javax.persistence.Column; | ||
import javax.persistence.Entity; | ||
import javax.persistence.GeneratedValue; | ||
import javax.persistence.GenerationType; | ||
import javax.persistence.Id; | ||
import javax.persistence.Lob; | ||
import javax.persistence.NamedQueries; | ||
import javax.persistence.NamedQuery; | ||
import org.hibernate.validator.constraints.NotBlank; | ||
|
||
/** | ||
* | ||
* @author luopc | ||
*/ | ||
@NamedQueries( | ||
@NamedQuery( name="DOIDataCiteRegisterCache.findByDoi", | ||
query="SELECT d FROM DOIDataCiteRegisterCache d WHERE d.doi=:doi") | ||
) | ||
@Entity | ||
public class DOIDataCiteRegisterCache implements Serializable{ | ||
|
||
private static final long serialVersionUID = 8030143094734315681L; | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long id; | ||
|
||
@NotBlank | ||
@Column(unique=true) | ||
private String doi; | ||
|
||
@NotBlank | ||
private String url; | ||
|
||
@NotBlank | ||
private String status; | ||
|
||
@NotBlank | ||
@Lob | ||
private String xml; | ||
|
||
public Long getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Long id) { | ||
this.id = id; | ||
} | ||
|
||
public String getDoi() { | ||
return doi; | ||
} | ||
|
||
public void setDoi(String doi) { | ||
this.doi = doi; | ||
} | ||
|
||
public String getStatus() { | ||
return status; | ||
} | ||
|
||
public void setStatus(String status) { | ||
this.status = status; | ||
} | ||
|
||
public String getXml() { | ||
return xml; | ||
} | ||
|
||
public void setXml(String xml) { | ||
this.xml = xml; | ||
} | ||
|
||
public String getUrl() { | ||
return url; | ||
} | ||
|
||
public void setUrl(String url) { | ||
this.url = url; | ||
} | ||
} |
Oops, something went wrong.