I submitted too soon;
Entities filtered with the following annotations:
| @org.hibernate.annotations.FilterDef(
| name = "accessCompanyFilter",
| parameters = [EMAIL PROTECTED](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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user