-
1. Re: Group Module Finished
noel.rocher Apr 28, 2003 12:20 PM (in response to noel.rocher)Forgot :
On GroupEJB, u should remove the id from the create methode. -
2. Re: Group Module Finished
julien1 Apr 28, 2003 1:08 PM (in response to noel.rocher)ok I will do the stuff tonight or tomorrow.
you guys are giving me lot of work with module integration ! :-) I looove it. -
3. Re: Group Module Finished
marc.fleury Apr 28, 2003 5:30 PM (in response to noel.rocher)Bien joue noel, merci de ta contribution
-
4. Re: Group Module Finished
julien1 Apr 29, 2003 5:58 PM (in response to noel.rocher)It's integrated.
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....
julien -
5. Re: Group Module Finished
andersdahlberg Apr 29, 2003 6:13 PM (in response to noel.rocher)> 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. 11.2.7.2)
but I guess you need this to work on j2ee1.3 servers ;)
/Anders -
6. Re: Group Module Finished
julien1 Apr 29, 2003 7:24 PM (in response to noel.rocher)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.
julien