Is it possible to implement dynamic attributes in EJB3? What I mean by "dynamic" is that Session Bean may decide (and tell to Entity Bean), which attribute to get/set (i.e. which database column to use for persisting the value).
@Entity
public class MyEntityBean implements Serializable {
// Maybe some annotations here
public String getAttribute(String columnName) {
// Implementation here
}
// Maybe some annotations here
public void setAttribute(String columnName, String value) {
// Implementation here
}
}