i want to do something like that:
Code:
@Entity
class A {
private int relevance;
private int field1;
public int getField1() {
return field1;
}
public void setField1(int field1) {
this.field1 = field1;
}
@Formula("MY_PACKAGE.RELEVANCE_FUNCTION(field1,:variable)")
public int getRelevance() {
return relevance;
}
public void setRelevance(int relevance) {
this.relevance = relevance;
}
}
as you can see I need to execute RELEVANCE_FUNCTION from MY_PACKAGE, but I also need to pass :variable, which is not a part of A class - it can be resolved only on runtime..
any chance I can do such formula?