Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
8baf0e2a
Commit
8baf0e2a
authored
Sep 16, 2013
by
Matija Obreza
Browse files
Boost FaoInsitute
parent
dc65b0ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/crophub/rest/common/model/impl/FaoInstitute.java
View file @
8baf0e2a
...
...
@@ -30,6 +30,7 @@ import javax.persistence.UniqueConstraint;
import
org.crophub.rest.common.lucene.genesys.FaoInstituteBridge
;
import
org.hibernate.annotations.Index
;
import
org.hibernate.search.annotations.Boost
;
import
org.hibernate.search.annotations.ClassBridge
;
import
org.hibernate.search.annotations.DocumentId
;
import
org.hibernate.search.annotations.Field
;
...
...
@@ -40,7 +41,7 @@ import org.hibernate.search.annotations.Store;
@Table
(
name
=
"faoinstitute"
,
uniqueConstraints
=
@UniqueConstraint
(
columnNames
=
{
"code"
}))
@org
.
hibernate
.
annotations
.
Table
(
appliesTo
=
"faoinstitute"
,
indexes
=
{
@Index
(
columnNames
=
{
"code"
},
name
=
"code_FAOINSTITUTE"
)
})
@Indexed
@ClassBridge
(
name
=
"body"
,
impl
=
FaoInstituteBridge
.
class
)
@ClassBridge
(
name
=
"body"
,
impl
=
FaoInstituteBridge
.
class
,
boost
=
@Boost
(
10
)
)
public
class
FaoInstitute
extends
GeoEntity
implements
java
.
io
.
Serializable
{
/**
...
...
@@ -96,7 +97,7 @@ public class FaoInstitute extends GeoEntity implements java.io.Serializable {
}
@Column
(
length
=
300
)
@Field
(
name
=
"title"
,
store
=
Store
.
YES
)
@Field
(
name
=
"title"
,
store
=
Store
.
YES
)
public
String
getFullName
()
{
return
this
.
fullName
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment