"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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to