Hi, I have a situation where I need to retrieve data from a table that provide dependant data and am not sure what is the best way to go about doing. I have provided some details of what need to do and how I have approached it thus far. First, on the db side I have a Product table and for each product there may be a number of attributes stored in another table (product_attribute) I started to create an entity bean using cmp and it works for the fields in the product table, but am not sure how to deal with providing a String[] getAttribute(String Name)and setAttribute(String name, String value) Is it possible to have in a cmp based entity bean a set of methods that do their own database transactions? If so how would they work with the container? More importantly, is the above approach an incorrect way of modeling? Should the attributes be represented instead by a an entity bean themselves and then use a session bean to create the association? Thanks in advance for your help. Tom. ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com =========================================================================== 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".
