Folks,

Is it a good design / possible to create a base entity class for all my
actual entity beans? Please advise.

<example>
        The base entity bean class (e.g. BaseEntity) is used to store all
basic infomation (e.g. object id, revision no., audit information, etc.).
And all my actual entity beans (e.g. PurchaseOrderCMP, QuotationCMP, etc.)
inherits from this base class.
</example>

How I can store the information back the relational database (e.g. Oracle)
if audit information is actually a javabean? I would think I can define the
audit information as an object in my ejb-jar.xml, however, a blob field
would be used to store the whole object instead of individual attribute.  Is
"OR-mapping" the only way to resolve this?

<example>
        BaseEntity -
        objId           :String
        revNo           :Long
        auditInfo       :AuditInfo

        where AuditInfo is a javabean

        PurchaseOrderCMP extends BaseEntity
        vendor          :Vendor
        ...
        /*
        ** getter and setter of basic information should be handled by the
BaseEntity
        */
</example>

Thanks in advance.

Chris

===========================================================================
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".

Reply via email to