I have a question is bothering me ...
We are converting our present web-application from
jsp/servlet to jsp/servlet/ejb.
We have a question that, Does J2EE-EJB support to code
entitnybeans with multiple tables(parent/child/childs)?
child table should be maintained seperately and also with it's parent and same for the remaining all the relations..
We are not using any mapping tools,we would like to
use BMP Entity Beans to do this if it supports,but not seen any good example how to do handle this situation...
I have seen lot of
discussions,every one has question,some comments,but
not clear answer,please direct me to good reference/article on this topic or give me clue to proceed to handle this situation,if possible.
Please reply at your earliest.
thanks,
Discussions
EJB programming & troubleshooting: design multiple tables with BMP Entity Bean without mapping tool
-
design multiple tables with BMP Entity Bean without mapping tool (3 messages)
- Posted by: ravi appala
- Posted on: April 20 2001 13:56 EDT
Threaded Messages (3)
- design multiple tables with BMP Entity Bean without mapping tool by Anil Singhal on April 20 2001 14:17 EDT
- design multiple tables with BMP Entity Bean without mapping tool by ravi appala on April 20 2001 14:55 EDT
- design multiple tables with BMP Entity Bean without mapping tool by ravi appala on May 05 2001 12:32 EDT
- design multiple tables with BMP Entity Bean without mapping tool by ravi appala on April 20 2001 14:55 EDT
-
design multiple tables with BMP Entity Bean without mapping tool[ Go to top ]
- Posted by: Anil Singhal
- Posted on: April 20 2001 14:17 EDT
- in response to ravi appala
Ravi,
With BMP you code your own persistence logic (via JDBC), so you can definitely support Parent/Child relationships. Even though you can do it many ways (since you have full control over your database access logic), I will suggest looking at the dependent value objects pattern. There is an excellent article and Example Code :) on this site. Check http://www2.theserverside.com/patterns/depbmp.jsp
-Anil
-
design multiple tables with BMP Entity Bean without mapping tool[ Go to top ]
- Posted by: ravi appala
- Posted on: April 20 2001 14:55 EDT
- in response to Anil Singhal
I have seen the article you have adviced,it is good one.But it has some conditions like..
'Since our addresses and job entries are dependent value objects, they do not have their own identity outside of their parent Resume entity bean, and thus they do not have their own primary key, instead they are identified by a resumeID column in the addresses and job entries table.....', Which will not be true in realtime always,most of the time these child tables should be able to be maintained seperately and also with parent.Another thing is these tables could be interacted directly thru web-tier,then how we can notify the changes in the child tables to it's parents,If you look at in depth with broad scope,there are many problems that we should handle and did not find the best way,
Would anyone please advice or continue the discussion..
Thanks
-
design multiple tables with BMP Entity Bean without mapping tool[ Go to top ]
- Posted by: ravi appala
- Posted on: May 05 2001 00:32 EDT
- in response to ravi appala
I have been waiting for answers and to continue the discussion, but not seen anyone attempting to answer the question.