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 |
|
Also available in: Unified diff