Revision 65556fd5
Added by Andreas Müller about 16 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/reference/BookSection.java | ||
---|---|---|
18 | 18 |
import org.hibernate.annotations.Cascade; |
19 | 19 |
import org.hibernate.annotations.CascadeType; |
20 | 20 |
|
21 |
import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase; |
|
21 | 22 |
import eu.etaxonomy.cdm.strategy.cache.reference.BookDefaultCacheStrategy; |
22 | 23 |
import eu.etaxonomy.cdm.strategy.cache.reference.BookSectionDefaultCacheStrategy; |
23 | 24 |
import eu.etaxonomy.cdm.strategy.cache.reference.INomenclaturalReferenceCacheStrategy; |
... | ... | |
39 | 40 |
return result; |
40 | 41 |
} |
41 | 42 |
|
42 |
public static BookSection NewInstance(Book inBook, String pages, String sectionTitle ){
|
|
43 |
public static BookSection NewInstance(Book inBook, TeamOrPersonBase author, String sectionTitle, String pages ){
|
|
43 | 44 |
BookSection result = new BookSection(); |
44 | 45 |
result.setInBook(inBook); |
45 | 46 |
result.setTitle(sectionTitle); |
46 | 47 |
result.setPages(pages); |
48 |
result.setAuthorTeam(author); |
|
47 | 49 |
return result; |
48 | 50 |
} |
49 | 51 |
|
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/reference/ReferenceBase.java | ||
---|---|---|
42 | 42 |
//flag to subselect only references that could be useful for nomenclatural citations. If a reference is used as a |
43 | 43 |
//nomenclatural reference in a name this flag should be automatically set |
44 | 44 |
private boolean isNomenclaturallyRelevant; |
45 |
private Agent authorTeam;
|
|
45 |
private TeamOrPersonBase authorTeam;
|
|
46 | 46 |
//this flag will be set to true if the parseName method was unable to successfully parse the name |
47 | 47 |
private boolean hasProblem = false; |
48 | 48 |
|
... | ... | |
50 | 50 |
|
51 | 51 |
@ManyToOne |
52 | 52 |
@Cascade({CascadeType.SAVE_UPDATE}) |
53 |
public Agent getAuthorTeam(){
|
|
53 |
public TeamOrPersonBase getAuthorTeam(){
|
|
54 | 54 |
return this.authorTeam; |
55 | 55 |
} |
56 | 56 |
|
Also available in: Unified diff