Hi,
Is there a way to default all of the methods in an Entity to transient, and then overriding those getters where I want to be persisted? For example, I have a class with one property I like persisted, the other 10 properties should not. This is what I do now:
Code:
@Entity
public class TestClass {
public Long getId() {
}
@Transient
public String getA() {
}
@Transient
public String getB() {
}
@Transient
public String getC() {
}
...
...
}
As you can see, most of the getters I annotate with @Transient, which is somewhat of a pain. I hope there is a way to default them to Transient. Thanks.
-nefi