Hi jbosses.
I got this problem getting users that belong to a given group:
ERROR: "Entity not found primaryKey = walter"
Where walter is PK of the first row.
Here's the code:
groupLocal = groupLocalHome.findByPrimaryKey("my_group");
Collection col = groupLocal.getUsers();
Iterator it = col.iterator();
while (it.hasNext()){
userLocal = (UserLocal)it.next();
name = userLocal.getName();
pass = userLocal.getPass();
}
getName and getPass can't get the rows but I know it works fine with another container.
>>>>>How can I make a business method for getting entities with a 1 to many rel. - with JBOSS?<<<<
Thanks in advance!
It sounds like your config is incorrect,
but you haven't posted it.
Regards,
Adrian