org.hibernate.search.annotations.Field Java Examples
The following examples show how to use
org.hibernate.search.annotations.Field.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PFUserDO.java From projectforge-webapp with GNU General Public License v3.0 | 6 votes |
/** * Returns string containing all fields (except the password) of given user object (via ReflectionToStringBuilder). * @param user * @return */ @Override public String toString() { return (new ReflectionToString(this) { @Override protected boolean accept(final java.lang.reflect.Field f) { return super.accept(f) && !"password".equals(f.getName()) && !"stayLoggedInKey".equals(f.getName()) && !"passwordSalt".equals(f.getName()) && !"authenticationToken".equals(f.getName()); } }).toString(); }
Example #2
Source File: GenericRepository.java From javaee-lab with Apache License 2.0 | 5 votes |
protected List<SingularAttribute<?, ?>> buildIndexedAttributes(Class<E> type) { List<SingularAttribute<?, ?>> ret = newArrayList(); for (Method m : type.getMethods()) { if (m.getAnnotation(Field.class) != null) { ret.add(metamodelUtil.toAttribute(jpaUtil.methodToProperty(m), type)); } } return ret; }
Example #3
Source File: ScriptDO.java From projectforge-webapp with GNU General Public License v3.0 | 5 votes |
/** * Returns string containing all fields (except the file) of given object (via ReflectionToStringBuilder). * @param user * @return */ @Override public String toString() { return (new ReflectionToString(this) { @Override protected boolean accept(final java.lang.reflect.Field f) { return super.accept(f) && !"file".equals(f.getName()) && !"script".equals(f.getName()) && !"scriptBackup".equals(f.getName()); } }).toString(); }
Example #4
Source File: TeamCalDO.java From projectforge-webapp with GNU General Public License v3.0 | 5 votes |
/** * Returns string containing all fields (except the externalSubscriptionCalendarBinary) of given object (via ReflectionToStringBuilder). * @param user * @return */ @Override public String toString() { return (new ReflectionToString(this) { @Override protected boolean accept(final java.lang.reflect.Field f) { return super.accept(f) && !"externalSubscriptionCalendarBinary".equals(f.getName()) && !"externalSubscriptionHash".equals(f.getName()); } }).toString(); }
Example #5
Source File: LicenseDO.java From projectforge-webapp with GNU General Public License v3.0 | 5 votes |
/** * Returns string containing all fields (except the file1/file2) of given object (via ReflectionToStringBuilder). * @param user * @return */ @Override public String toString() { return (new ReflectionToString(this) { @Override protected boolean accept(final java.lang.reflect.Field f) { return super.accept(f) && !"file1".equals(f.getName()) && !"file2".equals(f.getName()); } }).toString(); }
Example #6
Source File: ScriptDO.java From projectforge-webapp with GNU General Public License v3.0 | 4 votes |
@Field(index = Index.TOKENIZED, store = Store.NO) @Column(length = 255, nullable = false) public String getName() { return name; }
Example #7
Source File: ScriptDO.java From projectforge-webapp with GNU General Public License v3.0 | 4 votes |
@Transient @Field(index = Index.TOKENIZED, store = Store.NO) public String getScriptAsString() { return convert(script); }
Example #8
Source File: ScriptDO.java From projectforge-webapp with GNU General Public License v3.0 | 4 votes |
@Field(index = Index.TOKENIZED, store = Store.NO) @Column(length = 4000) public String getDescription() { return description; }
Example #9
Source File: ScriptDO.java From projectforge-webapp with GNU General Public License v3.0 | 4 votes |
@Field(index = Index.TOKENIZED, store = Store.NO) @Column(length = PARAMETER_NAME_MAX_LENGTH) public String getParameter1Name() { return parameter1Name; }
Example #10
Source File: ScriptDO.java From projectforge-webapp with GNU General Public License v3.0 | 4 votes |
@Field(index = Index.TOKENIZED, store = Store.NO) @Column(length = PARAMETER_NAME_MAX_LENGTH) public String getParameter2Name() { return parameter2Name; }
Example #11
Source File: ScriptDO.java From projectforge-webapp with GNU General Public License v3.0 | 4 votes |
@Field(index = Index.TOKENIZED, store = Store.NO) @Column(length = PARAMETER_NAME_MAX_LENGTH) public String getParameter3Name() { return parameter3Name; }
Example #12
Source File: ScriptDO.java From projectforge-webapp with GNU General Public License v3.0 | 4 votes |
@Field(index = Index.TOKENIZED, store = Store.NO) @Column(length = PARAMETER_NAME_MAX_LENGTH) public String getParameter4Name() { return parameter4Name; }
Example #13
Source File: ScriptDO.java From projectforge-webapp with GNU General Public License v3.0 | 4 votes |
@Field(index = Index.TOKENIZED, store = Store.NO) @Column(length = PARAMETER_NAME_MAX_LENGTH) public String getParameter5Name() { return parameter5Name; }
Example #14
Source File: ScriptDO.java From projectforge-webapp with GNU General Public License v3.0 | 4 votes |
@Field(index = Index.TOKENIZED, store = Store.NO) @Column(length = PARAMETER_NAME_MAX_LENGTH) public String getParameter6Name() { return parameter5Name; }