[jboss-user] [JBoss Seam] - Re: Re-working EJB Extended Context To Use SMPC - Need Help
matt.drees
do-not-reply at jboss.com
Sun Oct 7 02:27:38 EDT 2007
"curtney" wrote : I cannot annotate it with @Name, thus unable to inject the entity manager
I really don't think that's a valid conclusion. It is true you can't/shouldn't annotate it with @Name, but concrete implementations should get injection anyway. (Someone correct me if I'm wrong)
If you can reproduce this in a simple test case, you can raise a Jira issue and I'm sure someone will look into it. If there is a bug, the Seam community would appreciate knowing about it. :-)
As far as parameterized IDs, maybe you could do something like:
| public class MyBase<T, ID extends Serializable> extends EntityHome<T> {
|
| @Override
| public ID getId() {
| return (ID) super.getId();
| }
|
| public void setId(ID id) {
| super.setId(id);
| }
|
| @Override
| public void setId(Object id) {
| throw new UnsupportedOperationException("Not correct type:" +id.getClass());
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092317#4092317
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092317
More information about the jboss-user
mailing list