Revision f1a25720
Added by Katja Luther over 6 years ago
- ID f1a25720755daa96e8838a617a660dfced7b9f31
- Parent 23e50194
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/occurrence/GatheringEvent.java | ||
---|---|---|
9 | 9 |
|
10 | 10 |
package eu.etaxonomy.cdm.model.occurrence; |
11 | 11 |
|
12 |
import java.time.temporal.Temporal; |
|
12 | 13 |
import java.util.Calendar; |
13 | 14 |
import java.util.HashSet; |
14 | 15 |
import java.util.Set; |
... | ... | |
40 | 41 |
import org.hibernate.search.annotations.Field; |
41 | 42 |
import org.hibernate.search.annotations.IndexedEmbedded; |
42 | 43 |
import org.hibernate.search.annotations.NumericField; |
43 |
import org.joda.time.Partial; |
|
44 | 44 |
|
45 | 45 |
import eu.etaxonomy.cdm.model.agent.AgentBase; |
46 | 46 |
import eu.etaxonomy.cdm.model.common.EventBase; |
... | ... | |
277 | 277 |
*/ |
278 | 278 |
|
279 | 279 |
@Transient |
280 |
public Partial getGatheringDate(){
|
|
280 |
public Temporal getGatheringDate(){
|
|
281 | 281 |
if(this.getTimeperiod()!=null){ |
282 | 282 |
return this.getTimeperiod().getStart(); |
283 | 283 |
} |
284 | 284 |
return null; |
285 | 285 |
} |
286 | 286 |
|
287 |
public void setGatheringDate(Partial gatheringDate){
|
|
287 |
public void setGatheringDate(Temporal gatheringDate){
|
|
288 | 288 |
this.setTimeperiod(TimePeriod.NewInstance(gatheringDate)); |
289 | 289 |
} |
290 | 290 |
|
Also available in: Unified diff
first implementation for change from joda time to java8 time