Hello.
I have a following problem.
There are three tables in database schema:
+---------+-----------+----------+---------+---
User: | userId | username | password | .... | ..
+---------+-----------+----------+---------+---
+---------+-----------+----------+---------+---
Group: | groupId | groupname | .... | .... | ..
+---------+-----------+----------+---------+---
+----------+----------+
Groups: | groupId | userId |
+----------+----------+
"User" and "group" tables hold data for users and groups respectively and
"groups" table keeps track of the relation between these tables. "groups"
table is indexed by both fields so it is fast to find answer to questions:
"For which groups user X belongs to?" and "Who belongs to group X?".
How to design EJB entitys ?
I know there should be userBeen entity and groupBeen entity.
How merge those two entitys? Have I use EJB userGroupBeen entity and session
EJB.
I will be grateful for small example.
I have found archive message "EJB 2.0 CMP design question" with similar
problem, so I have used its example. Archive message hasn't got an answer.
:(
Best regards.
Kristopher Zielinski
[EMAIL PROTECTED]
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".