Seam instantiates (javabean) components with a no-arg constructor, so this won't help, unless you yourself instantiate an entityHome using "new", which you shouldn't ever be doing.
class PersonHome extends EntityHome< Person > { ... }
class PersonHome extends EntityHome< Person > { public PersonHome() { super( Person.class ); } ... }
"damianharvey" wrote:
...only updatedMessage(), deletedMessage() and createdMessage() refer to entityClass rather than getEntityClass.
"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 > { ... }
haveclass PersonHome extends EntityHome< Person > { public PersonHome() { super( Person.class ); }
class PersonHome extends EntityHome< Person > { public PersonHome() { setEntityClass(Person.class); }
"matt.drees" wrote:
right?