[jboss-user] [EJB 3.0] - Dynamic attributes
hasijutu
do-not-reply at jboss.com
Thu Nov 16 04:26:53 EST 2006
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
| }
|
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986427#3986427
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986427
More information about the jboss-user
mailing list