Design of accounts

Anyone know best ideas/sites for the proper modelling of accounts using ejbsI would like to record and query transactions for up to 30 000 clients + 10 000 agentsEach client can have more than one accountAny advice is greatly appreciated
[279 byte] By [r035198xa] at [2007-10-3 0:23:47]
# 1
what kind? bank accounts?who told you that ejbs were the way to go?what's the difference between clients and agents?if this is all the info you have to go on, then no wonder you don't know how to model them.%
duffymoa at 2007-7-14 17:16:03 > top of Java-index,Other Topics,Patterns & OO Design...
# 2

Not Bank accounts

A company(owner of the software) has created accounts for all clients and agents that do bussiness with them. The client and agent accounts are independent(No diff in the modelling).

I had thought of making a transaction ejb (entity with CMP) as follows:

Transaction(transID, accountID, type, Amount, Descr, Date&time, Balance)

type can be Debit or Credit

The account ejb would then identify the owner of the account

Is this the way to go since there will typically be about 5 transactions on each account every month?

Hope i've shed more light

r035198xa at 2007-7-14 17:16:03 > top of Java-index,Other Topics,Patterns & OO Design...
# 3

> Not Bank accounts

> A company(owner of the software) has created accounts

> for all clients and agents that do bussiness with

> them. The client and agent accounts are

> independent(No diff in the modelling).

> I had thought of making a transaction ejb (entity

> with CMP) as follows:

Why do you think you need EJBs?

> Transaction(transID, accountID, type, Amount, Descr,

> Date&time, Balance)

>

>type can be Debit or Credit

What's the different behavior between Debit and Credit?

Wouldn't it be more object-oriented to have a base Account class with Debit and Credit subclasses?

> would then identify the owner of the account

>

> Is this the way to go since there will typically be

> about 5 transactions on each account every month?

"The" way to go? No. It's one way to do it, and perhaps not the best way.

%

duffymoa at 2007-7-14 17:16:03 > top of Java-index,Other Topics,Patterns & OO Design...