1 |
9479da48
|
Andreas Müller
|
package eu.etaxonomy.cdm.model.common;
|
2 |
|
|
|
3 |
|
|
import javax.persistence.ManyToOne;
|
4 |
|
|
|
5 |
|
|
import org.hibernate.annotations.Cascade;
|
6 |
|
|
import org.hibernate.annotations.CascadeType;
|
7 |
|
|
|
8 |
|
|
import eu.etaxonomy.cdm.model.agent.Agent;
|
9 |
|
|
|
10 |
|
|
public interface IEvent {
|
11 |
|
|
|
12 |
|
|
public abstract TimePeriod getTimeperiod();
|
13 |
|
|
|
14 |
|
|
public abstract void setTimeperiod(TimePeriod timeperiod);
|
15 |
|
|
|
16 |
|
|
@ManyToOne
|
17 |
|
|
@Cascade( { CascadeType.SAVE_UPDATE })
|
18 |
|
|
public abstract Agent getActor();
|
19 |
|
|
|
20 |
|
|
public abstract void setActor(Agent actor);
|
21 |
|
|
|
22 |
|
|
}
|