Revision a784f00f
Added by Katja Luther about 14 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/CdmBase.java | ||
---|---|---|
23 | 23 |
import javax.persistence.ManyToOne; |
24 | 24 |
import javax.persistence.MappedSuperclass; |
25 | 25 |
import javax.persistence.Transient; |
26 |
import javax.validation.constraints.NotNull; |
|
27 | 26 |
import javax.validation.constraints.Min; |
27 |
import javax.validation.constraints.NotNull; |
|
28 | 28 |
import javax.xml.bind.annotation.XmlAccessType; |
29 | 29 |
import javax.xml.bind.annotation.XmlAccessorType; |
30 | 30 |
import javax.xml.bind.annotation.XmlAttribute; |
... | ... | |
40 | 40 |
import org.hibernate.annotations.NaturalId; |
41 | 41 |
import org.hibernate.annotations.Type; |
42 | 42 |
import org.hibernate.search.annotations.DocumentId; |
43 |
import org.hibernate.search.annotations.Field; |
|
44 |
import org.hibernate.search.annotations.FieldBridge; |
|
43 | 45 |
import org.joda.time.DateTime; |
44 | 46 |
|
47 |
import eu.etaxonomy.cdm.hibernate.DateTimeBridge; |
|
45 | 48 |
import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper; |
46 | 49 |
import eu.etaxonomy.cdm.jaxb.DateTimeAdapter; |
47 | 50 |
import eu.etaxonomy.cdm.jaxb.UUIDAdapter; |
... | ... | |
104 | 107 |
@Type(type="dateTimeUserType") |
105 | 108 |
@Basic(fetch = FetchType.LAZY) |
106 | 109 |
@Match(MatchMode.IGNORE) |
110 |
@Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED) |
|
111 |
@FieldBridge(impl = DateTimeBridge.class) |
|
107 | 112 |
private DateTime created; |
108 | 113 |
|
109 | 114 |
@XmlElement (name = "CreatedBy") |
Also available in: Unified diff
merge cate-development2 branch with trunk