[jboss-user] [JBoss Seam] - Re: Batch Index using Hibernate Search and Seam
mat
do-not-reply at jboss.com
Mon Nov 5 10:50:01 EST 2007
I submitted too soon;
Entities filtered with the following annotations:
| @org.hibernate.annotations.FilterDef(
| name = "accessCompanyFilter",
| parameters = {@org.hibernate.annotations.ParamDef(name = "currentAccessCompany", type="integer")}
| )
| @org.hibernate.annotations.Filter(
| name = "accessCompanyFilter",
| condition = "READ_ACCESS_COMPANY = :currentAccessCompany"
| )
| public class Order implements Serializable {
|
| ...
|
| @Column(name = "READ_ACCESS_COMPANY", nullable = false)
| @org.hibernate.search.annotations.Field(
| index = org.hibernate.search.annotations.Index.UN_TOKENIZED,
| store = org.hibernate.search.annotations.Store.YES
| )
| @org.hibernate.search.annotations.FieldBridge(impl = PaddedIntegerBridge.class)
| public int getReadAccessCompany() {
| return readAccessCompany;
| }
|
| public void setReadAccessCompany(int readAccessCompany) {
| this.readAccessCompany = readAccessCompany;
| }
|
|
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101856#4101856
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101856
More information about the jboss-user
mailing list