-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
78 additions
and
0 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
35 changes: 35 additions & 0 deletions
35
src/main/java/ohtuhatut/domain/InproceedingsReference.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,35 @@ | ||
package ohtuhatut.domain; | ||
|
||
import java.util.ArrayList; | ||
import javax.persistence.DiscriminatorValue; | ||
import javax.persistence.Entity; | ||
import javax.persistence.Table; | ||
|
||
@Table(name = "Reference") | ||
@DiscriminatorValue("inproceedings") | ||
@Entity | ||
public class InproceedingsReference extends Reference{ | ||
public InproceedingsReference() { | ||
setType("inproceedings"); | ||
|
||
mandatoryFields = new ArrayList<>(); | ||
mandatoryFields.add("author"); | ||
mandatoryFields.add("title"); | ||
mandatoryFields.add("booktitle"); | ||
mandatoryFields.add("year"); | ||
|
||
optionalFields = new ArrayList<>(); | ||
/*optionalFields.add("editor"); | ||
optionalFields.add("volume"); | ||
optionalFields.add("series"); | ||
optionalFields.add("pages"); | ||
optionalFields.add("address"); | ||
optionalFields.add("month"); | ||
optionalFields.add("organization"); | ||
optionalFields.add("publisher"); | ||
optionalFields.add("note"); | ||
optionalFields.add("key");*/ | ||
|
||
populateFields(); | ||
} | ||
} |
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
7 changes: 7 additions & 0 deletions
7
src/main/java/ohtuhatut/repository/InproceedingsReferenceRepository.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,7 @@ | ||
package ohtuhatut.repository; | ||
|
||
import ohtuhatut.domain.InproceedingsReference; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface InproceedingsReferenceRepository extends JpaRepository<InproceedingsReference, Long> { | ||
} |
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