On GroupEJB, u should remove the id from the create methode.
ok I will do the stuff tonight or tomorrow.
you guys are giving me lot of work with module integration ! :-) I looove it.
Bien joue noel, merci de ta contribution
I had to change some things because the original module has some evident flaws.
For instance I removed getUsers() from GroupEJB.
We have lot of users in DB and that cmr is not traversable at all !!!!
Instead I added a findUserByGroup(group,limit,offset) of UserEJBLocal which is way more efficent.
I removed also the user counting because not possible in EJB (a lack in my opinion).
Simply group.getUsers().size() is not usable if you have lot of users.
I removed auto-pk generation also. Because when a group is created you have to provide its ID. Much better control over groups. For instance group with id 0 is always visitor. Etc....
> I removed also the user counting because not possible
> in EJB (a lack in my opinion).
I guess you already know this but ejb2.1 does include COUNT (and other aggregate funtions - ejb spec. 18.104.22.168)
but I guess you need this to work on j2ee1.3 servers ;)
no I didn't know it. I'll use it when available.
jboss cmp engine is not 2.1 yet. do you know a *true* work around ?
also I've just added some lack to that module :
1.basic search, not embeded in group search.
2.possibility to have all group info for a given user, so you know all of its group and can remove it from them.