Hi there!
I want to write a get- and a set-method in my entity bean that doesn't map a table attribute.
I'm using EJB3.0 with Hibernate persistence like shown in the examples, but there is no example showing what I want and I haven't found the solution in the Hibernate documentation.
It would be very appreciated to get a solution from you.
Thank you very much!
Peter
try to annotate the property with @Transient
example:
@Entity public class Test{ int val1; int val2; public int getVal1(); public int getVal2(); @Transient public int getSum(){ return val1+val2; } }