Hi,
I have a case where i need to index data in my entity via methods that are marked @Transient. Indexing them is no problem, but i'm hoping to get some ideas on how to maintain them in the index. Basically i want to tie a @Transient method to something being persisted to the database.
For example:
Code:
...
@column(name="foo")
public Foo getFoo()
{
return foo;
}
public void setFoo(Foo foo)
{
this.foo = foo;
}
@Transient
@Field(name="isFooFoo")
public boolean isFooFoo()
{
return (foo == bar);
}
...
When i manually index, isFooFoo gets set. What i would like to do is auto index isFooFoo when the foo column is updated.
What are some of my options here?
Thanks!