[jboss-user] [JBoss Seam] - Re: Further extending an EntityHome

matt.drees do-not-reply at jboss.com
Tue Sep 25 13:09:43 EDT 2007


"mustaghattack" wrote : 
  | Of course. But I didn't think it in that way ... You mainly use EntityHome with inheritance so instead of :
  | 
  |   | class PersonHome extends EntityHome< Person > {
  |   | ...
  |   | }
  |   | 
  | 
  | have 
  | 
  | 
  |   | class PersonHome extends EntityHome< Person > {
  |   |    public PersonHome() {
  |   |       super( Person.class );
  |   |    }
  |   | 
  | 

Ah, ok, gotcha.  My bad.

However, I don't think you'd need to modify EntityHome to get that kind of behavior.  You could do

  | class PersonHome extends EntityHome< Person > {
  |    public PersonHome() {
  |       setEntityClass(Person.class);
  |    }
  | 
right?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088529#4088529

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4088529



More information about the jboss-user mailing list